/tradecraft:smart-skill-routerfrom tradecraft
Routes user requests to the best skill(s) using intent analysis, scoring, dependency resolution, and bundle detection across a 265+ skill ecosystem.
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.
User Request
|
v
+------------------+
| Query Analyzer | <-- Extract intent, domain, keywords
+------------------+
|
v
+------------------+
| Skill Matcher | <-- skills_index.json (instant lookup)
+------------------+
|
v
+------------------+
| Ranking Engine | <-- Score: relevance + tags + priority + deps
+------------------+
|
v
+------------------+
| Dependency | <-- skills_graph.json (load prerequisites)
| Resolver |
+------------------+
|
v
+------------------+
| Bundle Detector | <-- If query spans a bundle, activate it
+------------------+
|
v
Execute Top Skills (max 3-5 concurrently)
import sys
sys.path.insert(0, r'C:\Users\Mamoud\.claude\skills')
from skill_router import find_skill, route_query, resolve_deps, get_bundle
# Search by keyword
results = find_skill("liquidity")
# Search by tags
results = find_skill(tags=["orderflow", "liquidity"])
# Full routing with scoring
top_skills = route_query("analyze liquidity trap on EURUSD H1")
# Dependency chain
deps = resolve_deps("ict-smart-money")
# Get a bundle
bundle = get_bundle("scalping")
python C:\Users\Mamoud\.claude\skills\skill_router.py search "breakout strategy"
python C:\Users\Mamoud\.claude\skills\skill_router.py route "analyze smart money on gold"
python C:\Users\Mamoud\.claude\skills\skill_router.py deps ict-smart-money
python C:\Users\Mamoud\.claude\skills\skill_router.py bundle scalping
python C:\Users\Mamoud\.claude\skills\skill_router.py stats
python C:\Users\Mamoud\.claude\skills\skill_router.py info risk-and-portfolio
score = relevance + tag_match + dependency_bonus + priority - overlap_penalty
Where:
relevance = keyword match in name (+10) or description (+5)
tag_match = keyword match in tags (+8 per tag)
dependency_bonus = +3 if a matched skill depends on this one
priority = skill priority value (1-10)
overlap_penalty = -2 if another higher-scoring skill covers same topic
| Bundle | Skills | Use When |
|---|---|---|
| scalping | session-scalping, order-flow-delta, liquidity-analysis, scalping-framework, trendline-sr-vision | Fast intraday trades |
| quant | statistics-timeseries, backtesting-sim, monte-carlo, strategy-validation, vectorized-backtester | Quantitative analysis |
| risk | risk-and-portfolio, risk-of-ruin, tail-risk-hedging, drawdown-playbook, drawdown-recovery | Risk assessment |
| smc | ict-smc, ict-smart-money, ict-smart-money, liquidity-order-flow-mapper, smart-money-trap-detector, market-structure-bos-choch | Smart money analysis |
| chart-vision | chart-vision, chart-vision-ai, chart-vision-renderer, chart-annotation-overlay, chart-image-preprocessor, trendline-sr-vision | Chart image analysis |
| mean-reversion | mean-reversion-engine, mean-reversion-oscillators, capitulation-mean-reversion, divergence-strategy-engine | Fade/reversion trades |
| trend | trend-following-systems, trend-breakout, breakout-strategy-engine, ma-ribbon-strategy, ichimoku-complete | Trend following |
| news | news-intelligence, news-sentiment, news-sentiment-nlp-engine, social-sentiment-scraper, economic-calendar | News/sentiment analysis |
| portfolio | portfolio-optimization, portfolio-optimizer, portfolio-allocation, portfolio-optimization | Portfolio construction |
| mt5 | mt5-ea-code-generator, mt5-chart-browser, mt5-integration, mt5-integration, ea-code-generator | MT5 development |
| session | session-profiler, session-trading, session-scalping, session-scalping, session-breakout-strategies | Session-based trading |
| fibonacci | fibonacci-strategy-engine, fibonacci-harmonic-wave, harmonic-pattern-engine, elliott-wave-engine | Fib/harmonic analysis |
| azure | azure-ai, azure-deploy, azure-prepare, azure-diagnostics, azure-compute, ... (18 skills) | Azure cloud work |
When the user makes a request:
route_query() to get ranked skills| File | Purpose |
|---|---|
skills_index.json | Compiled index of all 265 skills (instant lookup) |
skills_graph.json | Dependency graph, bundles, hierarchy |
skill_router.py | Search, route, resolve CLI + importable module |
skill_health.py | Usage tracking, confidence scoring |
skill_cache.py | Result caching for expensive operations |
skill_usage.json | Persistent usage statistics |
SKILLS_MAP.md | Human-readable documentation |
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