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
tools
TQX (tqx.trade) HK/US stock quant workflow via tqx-cli: cross-sectional factor analysis, event-driven strategy backtests on the panda_backtest engine, and agent-driven automated paper trading. Use when the user wants to run factor IC/IR analysis, backtest a Python trading strategy on Hong Kong or US stocks, or set up agent-automated trading (e.g. "backtest a moving-average strategy on AAPL", "analyze a momentum factor on HK stocks", "let the agent trade my paper account").
tools
中学物理实验教学参赛方案套件。包含四个完整实验(单摆测g、声悬浮测声速、向心力定量演示仪、电磁阻尼定量研究),每套含固件源码、3D打印图纸、教学PPT、教学文稿、采购清单、调试手册、视频分镜脚本、模拟器。Use when a teacher/student needs a complete, classroom-ready physics experiment package for competition or teaching.
development
End-to-end blog management for AI agents. Write, import, build, preview, and publish articles using the blog template. Covers draft workflow, article import, SEO, OG images, and deployment.
development
ESP8266/ESP32 + 磁簧开关/霍尔传感器 单摆测重力加速度实验套件。 硬件搭建→固件烧录→数据采集→Web仪表盘→g值计算→教学文档,一站式完成。 Use when the user wants to build a pendulum g-measurement experiment, measure gravity with a micro-controller, or needs a complete physics experiment package with hardware + firmware + dashboard + teaching materials.