1247/trade-simulator/SKILL.md
Multi-agent scenario analysis for traders using MiroFish swarm intelligence architecture. LLM-powered market participant simulation with behavioral reasoning, cascade analysis, and post-sim interviews.
npx skillsauth add starchild-ai-agent/community-skills @1247/trade-simulatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Multi-agent scenario analysis for traders. Not a spreadsheet — a behavioral simulation. Built on MiroFish's swarm intelligence architecture, adapted from social simulation to market simulation.
This skill implements MiroFish's 5-stage prediction pipeline, replacing social media environments with financial markets:
| MiroFish Stage | Original (Social) | Our Adaptation (Markets) | |---|---|---| | 1. Graph Construction | Zep knowledge graph from news/docs | Market State Graph from live Coinglass/HL data | | 2. Environment Setup | Twitter/Reddit agent profiles | Market participant profiles (Whale, MM, Retail, etc.) | | 3. Simulation | OASIS dual-platform social interaction | Round-based market interaction with LLM reasoning | | 4. Report Generation | ReACT report with Zep tools | ReACT report with market data tools | | 5. Deep Interaction | Interview any social agent | Interview any market participant |
oasis_profile_generator.py) — agents don't use if/else rules. Each agent has a persona prompt and "thinks" each round via LLM callsimulation_config_generator.py) — describe scenario in natural language, LLM generates agent roster, parameters, event timeline, activity patternsreport_agent.py) — multi-step reasoning with tool use: plan outline → generate sections → cite evidence → synthesize predictionszep_tools.py Interview system) — chat with any agent after simulation to understand their reasoningskills/trade-simulator/
├── SKILL.md # This file
└── scripts/
├── mirofish_engine.py # Core engine — 5-stage pipeline
├── market_graph.py # Stage 1: Market state graph builder
├── profile_generator.py # Stage 2: LLM agent profile generation
├── simulation_runner.py # Stage 3: Round-based market simulation
├── report_agent.py # Stage 4: ReACT report generation
└── interview.py # Stage 5: Post-sim agent interviews
Agent: "Run a trade simulation: What happens to my BTC short if ETF inflows spike 500%?"
The engine will:
After any simulation:
Agent: "Interview the whale agent — why did they cover at round 4?"
Agent: "Ask the market maker about their liquidity decision"
| Data | Tool | What It Feeds |
|---|---|---|
| Open Interest | cg_open_interest() | Market leverage state |
| Funding Rates | funding_rate() | Positioning sentiment |
| Liquidation Levels | cg_liquidations() | Cascade trigger points |
| Whale Positions | cg_hyperliquid_whale_positions() | Whale agent calibration |
| Long/Short Ratios | long_short_ratio() | Crowd positioning |
| Orderbook Depth | hl_orderbook() | MM agent calibration |
| ETF Flows | cg_btc_etf_flows() | Institutional flow context |
| Price/OHLC | cg_ohlc_history() | Price context |
| Social Sentiment | lunar_coin() | Retail agent behavior |
python3 skills/trade-simulator/scripts/mirofish_engine.py
development
OpenSea API integration for NFT and token discovery, marketplace intelligence, and order/transaction workflows. Use when working with OpenSea data or trading flows (e.g. collection stats, trending collections/tokens, NFT metadata, listings/offers, swap quotes, transaction receipt polling).
development
Generate a warm, healing parallel-universe fairy tale (~1000 words) plus 3 cohesive storybook illustrations, themed "if this person had never been born, what would the world miss." Output is a polished HTML storybook that can be previewed and published. Use when the user wants a personalized "if I had never been born" / "如果我没出生" tale for a real person — input is a name, age, and 3 key life events. Great for birthdays, memorials, encouragement gifts, or healing keepsakes.
development
Onboard a user to Phala Cloud and deploy a verifiable Starchild TEE agent — a minimal FastAPI runtime running inside an Intel TDX confidential VM, plus a published chat dashboard with attestation verification. Use when the user wants to "try TEE", "run an agent in a confidential VM", "deploy to Phala", or replicate the internal Starchild TEE test setup.
tools
Trade on Polymarket prediction markets (CLOB V2) from a Privy EOA wallet. Search markets, place/cancel orders, manage positions. No private key handling. Use when the user wants to bet on event outcomes (e.g. "buy YES at 0.65 on the ceasefire market", "what are my open positions", "close my Trump bet").