/tradecraft:ai-trading-crewfrom tradecraft
Simulates a 50-agent AutoGen trading firm for US equities with 8 specialized teams, risk veto, and Devil's Advocate challenge. Uses Alpaca paper trading and Polygon data.
Ships in tradecraft. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
USE FOR:
50-agent AutoGen system simulating a collaborative trading firm for US equities.
Head Coach (Supervisor)
↑ synthesis
┌──────────┬──────────┼──────────┬──────────┐
│ │ │ │ │
Technical Fundamental Macro Sentiment Quant
(7 agents) (7 agents) (6 agents) (6 agents) (6 agents)
│ │ │ │ │
└──────────┴──────────┼──────────┴──────────┘
│
Risk Management (5 agents) ← VETO POWER
│ approved?
Execution & Ops (5 agents)
Strategy & Special (8 agents)
│
Devil's Advocate ← contrarian challenge
│
Final Decision + Order
| Team | Agents | Specialty |
|---|---|---|
| Technical Analysis | 7 | Chart patterns, indicators, price action |
| Fundamental Analysis | 7 | Earnings, P/E, balance sheet, moat |
| Macro & Economics | 6 | Fed policy, rates, sectors, macro |
| Sentiment & News | 6 | News NLP, social sentiment, analyst ratings |
| Quantitative | 6 | Statistical models, factor analysis, signals |
| Risk Management | 5 | VETO authority over all trades |
| Execution & Ops | 5 | Order routing, timing, slippage management |
| Strategy & Special | 8 | Special situations, M&A, catalysts |
1. Input: python main.py --symbol AAPL
2. Teams debate internally via AutoGen GroupChat
→ Each team reaches internal consensus
3. Team leaders report to Head Coach
→ Cross-team synthesis
4. Risk Management review
→ Can VETO any trade (overrides Head Coach)
5. Devil's Advocate challenges recommendation
→ Forces bull/bear stress test
6. Head Coach final decision
7. Human approval gate (configurable)
8. Execution team submits order to Alpaca
git clone https://github.com/omer475/ai-trading-crew
cd agents
pip install -r requirements.txt
cp .env.example .env
.env keys required:
OPENAI_API_KEY="sk-..."
ALPACA_API_KEY="..."
ALPACA_SECRET_KEY="..."
POLYGON_API_KEY="..."
# Full 50-agent analysis
python main.py --symbol AAPL
# Quick 5-agent test mode
python main.py --symbol NVDA --test
# Output: consensus decision + rationale + risk assessment + order
# Each team runs internal debate
groupchat = autogen.GroupChat(
agents=[tech_agent_1, tech_agent_2, ..., tech_agent_7],
messages=[],
max_round=5
)
manager = autogen.GroupChatManager(groupchat=groupchat, llm_config=llm_config)
class RiskManager(autogen.AssistantAgent):
def check_veto(self, proposal: dict) -> bool:
if proposal["position_size"] > self.max_risk:
return True # VETO
if proposal["volatility"] > self.vol_threshold:
return True # VETO
return False # Approved
import chromadb
client = chromadb.Client()
collection = client.get_or_create_collection("trading_knowledge")
# Query before analysis
results = collection.query(
query_texts=["AAPL earnings history semiconductor cycle"],
n_results=5
)
| Feature | AI Trading Crew | TradingAgents | AutoHedge |
|---|---|---|---|
| Agent count | 50 agents | ~8 agents | ~4 agents |
| Veto mechanism | Risk team veto | Risk approval | Risk gate |
| Contrarian agent | Devil's Advocate | Bearish researcher | No |
| Framework | AutoGen | LangGraph | Swarms |
| Knowledge base | ChromaDB RAG | None | None |
| Markets | US stocks only | US stocks | Solana crypto |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mahmoud20138/tradecraft --plugin tradecraft169 skills in this plugin
/agent-developmentThis skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins./agentic-storageAgentic storage architecture — persistent memory for AI agents using MCP, immutable versioning, sandboxing, and intent validation. Covers the stateless problem in LLM agents, RAG limitations (read-only), MCP protocol (JSON-RPC, resources, tools), storage safety layers, and agent file system design. Source: IBM Technology (Martin Keen), March 2026. Use this skill for "agentic storage", "agent memory", "persistent agent state", "MCP storage", "agent file system", "agent hard drive", "stateless agent problem", "agent work product", "immutable versioning", "agent sandboxing", "intent validation", "agent safety layers", "agent context window limits", "storage for AI agents", "agent persistence", "autonomous agent storage", "agent audit trail". Works with mcp-integration, trading-brain, agents, trade-psychology-coach.
Other plugins' skills for the same job