Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Master Moon Dev's Ai Agents Github with 48+ specialized agents, multi-exchange support, LLM abstraction, and autonomous trading capabilities across crypto markets
.claude/skills/microck-moon-dev-trading-agents/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 106% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 101% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 76% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 72% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 140% | 0% |
Expert knowledge for working with Moon Dev's experimental AI trading system that orchestrates 48+ specialized AI agents for cryptocurrency trading across Hyperliquid, Solana (BirdEye), Asterdex, and Extended Exchange.
Use this skill when:
For New Users: This repo uses Python 3.10.9. If using conda, the README shows setting up an environment named tflow, but you can name it whatever you want. If you don't use conda, standard pip/venv works fine too.
bash# Activate your Python environment (conda, venv, or whatever you use) # Example with conda: conda activate tflow # Example with venv: source venv/bin/activate # Use whatever environment manager you prefer # Run main orchestrator (controls multiple agents) python src/main.py # Run individual agent python src/agents/trading_agent.py python src/agents/risk_agent.py python src/agents/rbi_agent.py # Update requirements after adding packages pip freeze > requirements.txt
src/
├── agents/ # 48+ specialized AI agents (<800 lines each)
├── models/ # LLM provider abstraction (ModelFactory)
├── strategies/ # User-defined trading strategies
├── scripts/ # Standalone utility scripts
├── data/ # Agent outputs, memory, analysis results
├── config.py # Global configuration
├── main.py # Main orchestrator loop
├── nice_funcs.py # Core trading utilities (~1,200 lines)
├── nice_funcs_hl.py # Hyperliquid-specific functions
├── nice_funcs_extended.py # Extended Exchange functions
└── ezbot.py # Legacy trading controllerAgents (src/agents/)
LLM Integration (src/models/)
ModelFactory.create_model('anthropic')Trading Utilities
nice_funcs.py: Core functions (Solana/BirdEye)nice_funcs_hl.py: Hyperliquid exchangenice_funcs_extended.py: Extended Exchange (X10)Configuration
config.py: Trading settings, risk limits, agent behavior.env: API keys and secrets (never expose these)Trading: trading_agent, strategy_agent, risk_agent, copybot_agent
Market Analysis: sentiment_agent, whale_agent, funding_agent, liquidation_agent, chartanalysis_agent
Content: chat_agent, clips_agent, tweet_agent, video_agent, phone_agent
Research: rbi_agent (codes backtests from videos/PDFs), research_agent, websearch_agent
Specialized: sniper_agent, solana_agent, tx_agent, million_agent, polymarket_agent, compliance_agent, swarm_agent
See AGENTS.md for complete list with descriptions.
bash# Activate your environment first python src/agents/[agent_name].py
Each agent is standalone and can run independently.
bashpython src/main.py
Runs multiple agents in loop based on ACTIVE_AGENTS dict in main.py.
Edit agent file or config:
pythonEXCHANGE = "hyperliquid" # or "birdeye", "extended"
Then import corresponding functions:
pythonif EXCHANGE == "hyperliquid": from src import nice_funcs_hl as nf elif EXCHANGE == "extended": from src import nice_funcs_extended as nf
Edit src/config.py:
pythonAI_MODEL = "claude-3-haiku-20240307" # Fast, cheap # AI_MODEL = "claude-3-sonnet-20240229" # Balanced # AI_MODEL = "claude-3-opus-20240229" # Most powerful
Or use ModelFactory per-agent:
pythonfrom src.models.model_factory import ModelFactory model = ModelFactory.create_model('deepseek') # or 'openai', 'groq', etc. response = model.generate_response(system_prompt, user_content, temperature, max_tokens)
pythonpython src/agents/rbi_agent.py
Provide: YouTube URL, PDF, or trading idea text → DeepSeek-R1 extracts strategy logic → Generates backtesting.py compatible code → Executes backtest, returns metrics
See WORKFLOWS.md for more examples.
pip freeze > requirements.txtCreating new agents:
python# 1. Use ModelFactory for LLM from src.models.model_factory import ModelFactory model = ModelFactory.create_model('anthropic') # 2. Store outputs in src/data/ output_dir = "src/data/my_agent/" # 3. Make independently executable if __name__ == "__main__": # Standalone logic here # 4. Follow naming: [purpose]_agent.py # 5. Add to config.py if needed
backtesting.py library (NOT built-in indicators)pandas_ta or talib for indicatorssrc/data/rbi/BTC-USD-15m.csvconfig.py: Trading settings
MONITORED_TOKENS, EXCLUDED_TOKENSusd_size, max_usd_order_sizeCASH_PERCENTAGE, MAX_LOSS_USD, MAX_GAIN_USDSLEEP_BETWEEN_RUNS_MINUTES, ACTIVE_AGENTSAI_MODEL, AI_MAX_TOKENS, AI_TEMPERATURE.env: Secrets (NEVER expose)
BIRDEYE_API_KEY, MOONDEV_API_KEY, COINGECKO_API_KEYANTHROPIC_KEY, OPENAI_KEY, DEEPSEEK_KEY, GROQ_API_KEY, GEMINI_KEYSOLANA_PRIVATE_KEY, HYPER_LIQUID_ETH_PRIVATE_KEY, RPC_ENDPOINTX10_API_KEY, X10_PRIVATE_KEY, X10_PUBLIC_KEY, X10_VAULT_IDHyperliquid (nice_funcs_hl.py)
market_buy(), market_sell(), get_position(), close_position()BirdEye/Solana (nice_funcs.py)
token_overview(), token_price(), get_ohlcv_data()Extended Exchange (nice_funcs_extended.py)
See docs/hyperliquid.md, docs/extended_exchange.md for exchange-specific guides.
Config/Input → Agent Init → API Data Fetch → Data Parsing →
LLM Analysis (via ModelFactory) → Decision Output →
Result Storage (CSV/JSON in src/data/) → Optional Trade ExecutionAdd new package:
bash# Make sure your environment is activated first pip install package-name pip freeze > requirements.txt
Read market data:
pythonfrom src.nice_funcs import token_overview, get_ohlcv_data, token_price overview = token_overview(token_address) ohlcv = get_ohlcv_data(token_address, timeframe='1H', days_back=3) price = token_price(token_address)
Execute trade (Hyperliquid):
pythonfrom src import nice_funcs_hl as nf nf.market_buy("BTC", usd_amount=100, leverage=10) position = nf.get_position("BTC") nf.close_position("BTC")
Execute trade (Extended):
pythonfrom src import nice_funcs_extended as nf nf.market_buy("BTC", usd_amount=100, leverage=15) position = nf.get_position("BTC") nf.close_position("BTC")
Current branch: main Main branch for PRs: main
Recent commits:
Modified files (current):
Main docs (docs/):
CLAUDE.md: Project overview and development guidelineshyperliquid.md, hyperliquid_setup.md: Hyperliquid exchangeextended_exchange.md: Extended Exchange (X10) setuprbi_agent.md: Research-Based Inference agentwebsearch_agent.md: Web search capabilitiesswarm_agent.md: Multi-agent coordination[agent_name].md: Individual agent docsREADME files:
README.md: Project overviewsrc/models/README.md: LLM provider guideMAX_LOSS_USD, MINIMUM_BALANCE_USDSLEEP_BETWEEN_RUNS_MINUTES)This is an experimental, educational project:
Goal: Democratize AI agent development through practical trading examples.
For complete agent list, see AGENTS.md For workflow examples, see WORKFLOWS.md For architecture details, see ARCHITECTURE.md
Built with 🌙 by Moon Dev
"Never over-engineer, always ship real trading systems."
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 15,289 | 16,275 | +6% | 1 | 1 | 0% | 2,932 | 6,032 | +106% | 0 | 0 | — |
case-02 | fail→pass | 12,422 | 8,230 | -34% | 1 | 1 | 0% | 2,201 | 4,423 | +101% | 0 | 0 | — |
case-03 | fail→pass | 10,155 | 2,424 | -76% | 1 | 1 | 0% | 1,827 | 3,208 | +76% | 0 | 0 | — |
case-04 | pass→pass | 12,999 | 5,906 | -55% | 1 | 1 | 0% | 2,241 | 3,896 | +74% | 0 | 0 | — |
case-05 | pass→pass | 10,465 | 5,085 | -51% | 1 | 1 | 0% | 1,553 | 3,622 | +133% | 0 | 0 | — |
case-06 | fail→pass | 15,481 | 6,398 | -59% | 1 | 1 | 0% | 2,185 | 3,759 | +72% | 0 | 0 | — |
case-07 | pass→pass | 15,107 | 9,933 | -34% | 1 | 1 | 0% | 2,249 | 4,589 | +104% | 0 | 0 | — |
case-08 | pass→pass | 14,538 | 5,161 | -64% | 1 | 1 | 0% | 2,281 | 3,730 | +64% | 0 | 0 | — |
case-09 | fail→pass | 7,935 | 1,551 | -80% | 1 | 1 | 0% | 1,262 | 3,025 | +140% | 0 | 0 | — |
case-10 | fail→pass | 11,961 | 3,180 | -73% | 1 | 1 | 0% | 2,053 | 3,400 | +66% | 0 | 0 | — |
case-11 | fail→pass | 11,929 | 2,964 | -75% | 1 | 1 | 0% | 2,130 | 3,230 | +52% | 0 | 0 | — |
case-12 | fail→pass | 7,272 | 2,182 | -70% | 1 | 1 | 0% | 1,079 | 3,167 | +194% | 0 | 0 | — |
case-13 | pass→pass | 10,985 | 5,627 | -49% | 1 | 1 | 0% | 1,662 | 3,726 | +124% | 0 | 0 | — |
case-14 | fail→pass | 7,338 | 3,800 | -48% | 1 | 1 | 0% | 1,190 | 3,159 | +165% | 0 | 0 | — |
case-15 | fail→pass | 12,082 | 7,567 | -37% | 1 | 1 | 0% | 1,855 | 4,093 | +121% | 0 | 0 | — |
case-16 | fail→pass | 7,937 | 1,900 | -76% | 1 | 1 | 0% | 1,464 | 3,137 | +114% | 0 | 0 | — |
case-17 | pass→pass | 13,779 | 4,976 | -64% | 1 | 1 | 0% | 2,047 | 3,637 | +78% | 0 | 0 | — |
case-18 | fail→pass | 10,741 | 3,324 | -69% | 1 | 1 | 0% | 1,892 | 3,340 | +77% | 0 | 0 | — |
case-19 | fail→pass | 6,352 | 1,659 | -74% | 1 | 1 | 0% | 1,116 | 3,013 | +170% | 0 | 0 | — |
case-20 | pass→pass | 7,305 | 4,919 | -33% | 1 | 1 | 0% | 1,154 | 3,615 | +213% | 0 | 0 | — |
case-21 | pass→pass | 5,919 | 4,472 | -24% | 1 | 1 | 0% | 1,058 | 3,526 | +233% | 0 | 0 | — |
case-22 | pass→pass | 3,338 | 2,944 | -12% | 1 | 1 | 0% | 520 | 3,208 | +517% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +59 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.