Agent skill

Copy Trading

by agiprolabs in agiprolabs/claude-trading-skills

Wallet evaluation, monitoring, and copy-trade strategy design for Solana DEX trading

MITAuto-check passedBusiness, Finance & HR

Install Copy Trading

skills CLI
$ npx skills add agiprolabs/claude-trading-skills --skill copy-trading -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install agiprolabs/claude-trading-skills copy-trading --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/agiprolabs/claude-trading-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/copy-trading .claude/skills/copy-trading && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
copy-trading
GitHub stars
410
Token cost
~2.4k tokens
SKILL.md length
1,141 words
Files
6 (incl. scripts, references)
Skills in repo
68
Repo updated
First seen
Licence
MIT

At a glance

Wallet evaluation, monitoring, and copy-trade strategy design for Solana DEX trading

  • Works in 6 steps: Discovery → Evaluation → Filtering → …
  • Tasks that involve Trading and backtesting
  • SKILL.md covers What Copy Trading Means on…, The Copy-Trade Pipeline, Wallet Scoring for Copy… and Position Sizing for Copy Trades, plus 3 more sections
  • Runs Python scripts from its folder

What it does

Copy Trading is an agent skill from agiprolabs/claude-trading-skills. Wallet evaluation, monitoring, and copy-trade strategy design for Solana DEX trading

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `references/execution_strategy.md`, `references/risk_framework.md` and `references/wallet_discovery.md`).

It sits in Business, Finance & HR, covering Trading and backtesting. It works with Solana. The repository describes itself as: 68 trading, DeFi, and quantitative finance Agent Skills. Works with Claude Code, Cursor, Codex, Gemini CLI, and 30+ other tools. The licence is MIT.

When your agent uses it

  • Tasks that involve Trading and backtesting

Example prompts

  • “/copy-trading”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Discovery
  2. Evaluation
  3. Filtering
  4. Monitoring
  5. Execution
  6. Risk Management

What it can do on your machine

Read from SKILL.md and the folder at commit 981e1d7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Copy Trading loads about 2.4k tokens when it runs, and up to ~8.3k if it reads all its reference files. Until then it costs about 24 tokens; SKILL.md has 1,141 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~24
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from agiprolabs/claude-trading-skills at commit 981e1d7, republished under its MIT licence (© agiprolabs). 1,141 words, ~2,410 tokens.

Download SKILL.mdSave it as .claude/skills/copy-trading/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
copy-trading
description
Wallet evaluation, monitoring, and copy-trade strategy design for Solana DEX trading

Copy Trading

Wallet evaluation, monitoring, and copy-trade strategy design for Solana DEX trading. Identify profitable wallets on-chain, evaluate whether their edge is real and replicable, monitor their activity in real time, and execute proportionally-sized trades with independent risk controls.

What Copy Trading Means on Solana

Copy trading is the practice of monitoring one or more wallets that have demonstrated consistent profitability and replicating their trades in your own wallet. On Solana, every DEX swap is publicly visible on-chain within seconds, making it technically feasible to detect and follow any wallet's activity.

How It Differs from TradFi Copy Trading
DimensionTradFi (eToro, etc.)Solana On-Chain
Data sourcePlatform-reported P&LVerifiable on-chain transactions
LatencyMinutes to hoursSeconds (websocket) to sub-second (gRPC)
Front-running riskLowHigh (MEV bots, sandwich attacks)
Trade costCommissions + spreadGas + slippage + priority fees
CapacityHigh (large-cap equities)Low (micro-cap tokens have thin liquidity)
Signal decaySlowFast (PumpFun tokens move in minutes)
TransparencyPartial (delayed reporting)Full (every transaction is public)

The core tradeoff: Solana provides perfect transparency but introduces execution risk. The wallet you copy got a price that no longer exists by the time you trade.

The Copy-Trade Pipeline

Stage 1 — Discovery

Find wallets with strong track records. Sources include:

  • SolanaTracker Top Traders: GET /top-traders/{token} returns the highest-PnL wallets for any token
  • Birdeye Trader Rankings: wallet-level P&L leaderboards by token or globally
  • On-chain leaderboards: community-built dashboards (GMGN, Cielo, Arkham)
  • Social signals: wallets shared on Twitter/X or Telegram alpha groups
  • Your own analysis: run token-holder-analysis on a token that performed well, then profile the top holders

See references/wallet_discovery.md for detailed source documentation and scoring methodology.

Stage 2 — Evaluation

Every discovered wallet must pass quantitative evaluation before it enters a copy list. Use the wallet-profiling skill for deep behavioral analysis, then apply copy-trade-specific criteria.

Minimum thresholds:

MetricMinimumWhy
Trade count (30d)>= 50Statistical significance
Win rate>= 55%Edge above random
Profit factor>= 1.5Wins meaningfully exceed losses
Last activeWithin 7 daysStill trading, not abandoned
Distinct tokens traded>= 10Not a one-token wonder
Max single-trade % of total PnL< 40%Not reliant on one lucky hit
Bot probability< 30%Human-like timing patterns

Run scripts/evaluate_wallet.py for a comprehensive copy-trade suitability assessment.

Stage 3 — Filtering

After evaluation, apply additional filters:

  • Consistency check: rolling 7-day win rate should not swing below 40% in any period
  • Style compatibility: understand whether the wallet is a sniper, scalper, or swing trader — your infrastructure must match their speed
  • Size compatibility: if they trade 500 SOL per position and you have 10 SOL total, proportional sizing may be too small to cover fees
  • Sybil check: use the sybil-detection skill to verify the wallet is not part of a wash-trading cluster
Stage 4 — Monitoring

Once a wallet passes evaluation and filtering, set up real-time monitoring.

Monitoring approaches (fastest to simplest):

  1. Yellowstone gRPC: sub-second latency, streams all transactions for subscribed wallets
  2. Helius Enhanced WebSocket: near-real-time with parsed transaction data
  3. Polling via RPC: getSignaturesForAddress every 5-10 seconds — simple but slower

See references/execution_strategy.md for implementation details on each approach.

Stage 5 — Execution

When a monitored wallet executes a swap:

  1. Detect the transaction (via monitoring infrastructure)
  2. Parse the trade: token address, direction (buy/sell), size
  3. Validate the token: check liquidity, holder distribution, honeypot risk
  4. Size the position: proportional to your portfolio, not theirs
  5. Execute via Jupiter aggregator with appropriate slippage tolerance
  6. Record the copy trade with attribution to the source wallet
Stage 6 — Risk Management

Copy trades require independent risk controls that do not depend on the copied wallet's behavior.

See references/risk_framework.md for the complete framework.

Key limits:

ControlRecommended ValuePurpose
Max allocation per wallet10-20% of portfolioDiversification across signal sources
Max concurrent copy positions3-5Prevent overexposure
Per-trade stop loss-15% to -25%Independent downside protection
Daily copy-trade loss limit-5% of portfolioCircuit breaker
Weekly copy-trade loss limit-10% of portfolioLonger-term circuit breaker
Show full SKILL.md (494 more words)Show less

Wallet Scoring for Copy Suitability

Composite score from 0-100 based on weighted criteria:

copy_score = (
    trade_count_score * 0.15 +
    win_rate_score * 0.20 +
    profit_factor_score * 0.25 +
    consistency_score * 0.20 +
    recency_score * 0.10 +
    human_probability_score * 0.10
)

Component calculations:

  • Trade count score: min(trade_count / 200, 1.0) * 100 — maxes out at 200 trades
  • Win rate score: max((win_rate - 0.40) / 0.30, 0) * 100 — scaled from 40% to 70%
  • Profit factor score: min((pf - 1.0) / 3.0, 1.0) * 100 — scaled from 1.0 to 4.0
  • Consistency score: (1.0 - std_dev_of_rolling_win_rate) * 100 — lower variance = higher score
  • Recency score: max(1.0 - days_since_last_trade / 14, 0) * 100 — decays over 14 days
  • Human probability score: (1.0 - bot_probability) * 100

Interpretation:

ScoreRatingAction
80-100ExcellentStrong copy-trade candidate
60-79GoodSuitable with monitoring
40-59MarginalProceed with caution, reduce allocation
0-39PoorDo not copy

Position Sizing for Copy Trades

Three approaches, from simplest to most nuanced:

Fixed Amount

Use a constant SOL amount per copy trade (e.g., 0.5 SOL). Simple but ignores the wallet's conviction level.

Proportional

Match the copied wallet's allocation as a percentage of their estimated portfolio:

python
your_size = (their_trade_size / their_estimated_portfolio) * your_portfolio

Requires estimating their total portfolio, which can be imprecise.

Confidence-Scaled

Base amount multiplied by your confidence in the wallet:

python
your_size = base_amount * (copy_score / 100) * conviction_multiplier

Where conviction_multiplier is higher for wallets with longer track records.

Anti-Patterns to Avoid

Copying Bots

Bots have sub-second execution and often use MEV strategies. You cannot match their latency. By the time you detect their trade, the opportunity is gone or you become the exit liquidity. Use the bot probability score to filter these out.

Survivorship Bias

A wallet with 1000% returns from one PumpFun token is not necessarily skilled. Look for wallets with consistent performance across many tokens, not outlier wins. The max-single-trade-PnL filter catches this.

Blind Following

Never copy a trade without understanding what the token is. At minimum, run basic safety checks: liquidity depth, holder concentration, contract verification. A 2-second check can prevent buying a honeypot.

No Independent Exits

The copied wallet may have information you do not have. They may exit for reasons unrelated to the trade. Always maintain your own stop loss. Never rely solely on mirroring their exit.

Correlation Risk

If you copy 5 wallets and they all buy the same token, you have 5x the intended exposure. Track aggregate position across all copy sources and enforce portfolio-level limits.

Ignoring Capacity

A wallet profiting on tokens with $50K daily volume cannot be copied at scale. If your trade is 10% of daily volume, you will move the price against yourself.

Integration with Other Skills

SkillHow It Integrates
wallet-profilingDeep behavioral analysis of candidate wallets
sybil-detectionVerify wallet is not part of a wash-trading ring
token-holder-analysisSafety check tokens before copying a buy
liquidity-analysisVerify sufficient liquidity to enter/exit
helius-apiWebSocket monitoring and transaction parsing
jupiter-api / jupiter-swapTrade execution via aggregator
slippage-modelingEstimate execution cost of the copy trade
position-sizingPortfolio-aware sizing for copy positions
risk-managementPortfolio-level risk controls

Files

References
  • references/wallet_discovery.md — Sources and methods for finding copy-trade candidates
  • references/execution_strategy.md — Monitoring infrastructure and execution approaches
  • references/risk_framework.md — Portfolio-level risk controls for copy trading
Scripts
  • scripts/evaluate_wallet.py — Comprehensive copy-trade suitability scoring for a wallet
  • scripts/monitor_wallet.py — Real-time wallet transaction monitoring with trade alerts

© agiprolabs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (scripts, references) in skills/copy-trading of agiprolabs/claude-trading-skills.

  • SKILL.md
  • references/execution_strategy.md
  • references/risk_framework.md
  • references/wallet_discovery.md
  • scripts/evaluate_wallet.py
  • scripts/monitor_wallet.py

Open the folder on GitHubat commit 981e1d7

Compare with similar skills

Copy Trading next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Copy Trading compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Copy Trading this skillagiprolabs/claude-trading-skills410—~2.4kAutomated safety check: PassMIT
Prismirfndi/prism-liquidity-agent124—~1.5kAutomated safety check: PassMIT
Solana Sniper Botnpc-live/clawfirm156—~913Automated safety check: NotesNone
Solana Payments Wallets Tradingnpc-live/clawfirm1561 repos~4.7kAutomated safety check: PassMIT
Gmgn PortfolioGMGNAI/gmgn-skills609—~5.8kAutomated safety check: NotesMIT
Trading Signalbinance/binance-skills-hub1.1k—~682Automated safety check: PassNone

Similar skills

  • Prism

    irfndi/prism-liquidity-agent

    Operate Prism, an autonomous Solana DLMM liquidity agent for Meteora pools.

    124 GitHub stars~1.5k tokensUpdated 13 days ago
    Business, Finance & HRAuto-check passed
  • Solana Sniper Bot

    npc-live/clawfirm

    Autonomous Solana token sniper and trading bot. An agent skill from npc-live/clawfirm.

    156 GitHub stars~913 tokensUpdated 3 mo ago
    Business, Finance & HRAuto-check: notes
  • Pay people in SOL or USDC, buy and sell tokens, check prices, discover trending and new tokens, create and manage Solana wallets, stake SOL, earn yield through lending and managed vaults, borrow…

    156 GitHub starsUsed in 1 repo~4.7k tokens
    Business, Finance & HRAuto-check passed
  • Gmgn Portfolio

    GMGNAI/gmgn-skills

    Analyze one or many crypto wallets by address — holdings, batch realized/unrealized P&L, win rate, trading history, performance stats, specific token balance, and tokens created by a developer…

    609 GitHub stars~5.8k tokensUpdated 12 days ago
    Business, Finance & HRAuto-check: notes
  • Trading Signal

    binance/binance-skills-hub

    Per-trade smart-money signals — each result is a discrete buy or sell event from a tracked smart-money wallet, with trigger price, current price, max gain since trigger, and exit rate.

    1.1k GitHub stars~682 tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Bags

    alsk1992/CloddsBot

    Bags.fm - Complete Solana token launchpad with creator monetization

    3k GitHub stars~864 tokensUpdated 8 days ago
    Business, Finance & HRAuto-check passed

More from agiprolabs/claude-trading-skills

All 68 skills in this repo
  • Backtrader

    agiprolabs/claude-trading-skills

    Event-driven backtesting with bar-by-bar execution, complex order types, multiple analyzers, and custom indicators

    410 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Birdeye API

    agiprolabs/claude-trading-skills

    Solana token market data via Birdeye — prices, OHLCV, trades, token metadata, security checks, and trader activity

    410 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Coingecko API

    agiprolabs/claude-trading-skills

    Broad crypto market data from CoinGecko covering 13,000+ tokens.

    410 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Cointegration Analysis

    agiprolabs/claude-trading-skills

    Cointegration testing for pairs trading using Engle-Granger, Johansen, and rolling stability analysis

    410 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Correlation Analysis

    agiprolabs/claude-trading-skills

    Cross-asset correlation analysis including rolling correlation, hierarchical clustering, tail dependence, and regime-dependent correlation

    410 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Cost Basis Engine

    agiprolabs/claude-trading-skills

    Multi-method cost basis computation including specific identification, FIFO, LIFO, HIFO, and proportional average cost with partial sell handling

    410 GitHub stars~3.1k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Copy Trading

What does Copy Trading do?

Wallet evaluation, monitoring, and copy-trade strategy design for Solana DEX trading. Copy Trading is an agent skill from agiprolabs/claude-trading-skills.

When should I use Copy Trading?

Copy Trading fits situations like: tasks that involve Trading and backtesting.

How do I install Copy Trading in Claude Code?

Run `npx skills add agiprolabs/claude-trading-skills --skill copy-trading -a claude-code`. Or copy the skill folder (skills/copy-trading in agiprolabs/claude-trading-skills) into .claude/skills/copy-trading in your project. Claude Code loads it when a task matches its description.

How do I install Copy Trading in Codex?

Run `npx skills add agiprolabs/claude-trading-skills --skill copy-trading -a codex`. Or copy the skill folder (skills/copy-trading in agiprolabs/claude-trading-skills) into .agents/skills/copy-trading in your project. Codex loads it when a task matches its description.

Can I use Copy Trading in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add agiprolabs/claude-trading-skills --skill copy-trading -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/copy-trading, .gemini/skills/copy-trading, .github/skills/copy-trading and .opencode/skills/copy-trading in your project.

What does Copy Trading need to run?

Going by SKILL.md and its folder, Copy Trading needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Copy Trading access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Copy Trading safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Copy Trading use?

Copy Trading is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Copy Trading use?

About 2.4k tokens (SKILL.md is roughly 9.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.9k tokens, read only when the agent opens those files.

What are the alternatives to Copy Trading?

Skills that share tags, products or a category with Copy Trading: Prism (irfndi/prism-liquidity-agent, 124 stars), Solana Sniper Bot (npc-live/clawfirm, 156 stars), Solana Payments Wallets Trading (npc-live/clawfirm, 156 stars) and Gmgn Portfolio (GMGNAI/gmgn-skills, 609 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Copy Trading?

agiprolabs (a GitHub user) maintains it in agiprolabs/claude-trading-skills, which has 410 GitHub stars. The repository holds 68 skills in this directory. The repository was last updated on September 3, 2026.

Source: agiprolabs/claude-trading-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.