/tradecraft:generate-snapshot --output path --prettyfrom tradecraft
Generates a codebase health snapshot analyzing git history, code complexity, debt markers, and dependencies to identify refactoring hotspots and track technical debt over time.
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.
This skill generates a comprehensive code health snapshot using the analysis modules in analysis/.
# From repository root
python -m analysis.snapshot --output analysis-snapshot.json
Add --pretty flag to also print the JSON to stdout.
Note: The snapshot is written to the repository root (analysis-snapshot.json). This path is ignored by .gitignore.
The snapshot contains these sections:
summary - High-level metrics dashboardfiles_with_changes: Number of files with git changestotal_churn: Total lines added + deletedhigh_complexity_files: Count of files with high complexitytodo_count, fixme_count: Debt marker countscircular_dependency_count: Architectural issuessingle_author_file_ratio: Bus factor indicatorpriority_hotspots - Top 20 refactoring candidatesFiles sorted by priority_score = change_count × max_complexity
{
"path": "src/features/terminal/terminalManager.ts",
"change_count": 45,
"churn": 1200,
"max_complexity": 18,
"priority_score": 810
}
High priority_score = frequently changed AND complex = prime refactoring target.
git_analysis - Change patternshotspots: Most frequently changed filestemporal_coupling: Files that change together (hidden dependencies)bus_factor: Knowledge concentration riskscomplexity - Code complexity metricsby_language.typescript: TypeScript file metrics (max_complexity, avg_complexity, function_count)high_complexity_functions: Functions with cyclomatic complexity > 10debt_indicators - Technical debt markersdebt_markers.by_type: TODO, FIXME, HACK comments by typelarge_files: Files exceeding 500 lines of codelong_functions: Functions exceeding 50 linesdependencies - Module coupling analysiscircular_dependencies: Cycles in import graphhighly_coupled_modules: Modules with fan-out > 10hub_modules: Modules with fan-in > 10layer_violations: Lower layers importing from higher layerspriority_score descendingFiles with coupling_ratio > 0.8 changing together indicate:
Files with author_count = 1 and change_count >= 3:
Any cycles in the import graph:
User: What should we work on next?
Agent: Let me generate a snapshot and analyze it...
[generates snapshot]
Based on the snapshot:
Top 3 priority items:
1. **src/features/terminal/terminalManager.ts** (priority: 810)
- 45 changes, complexity 18
- High churn indicates active development area
- Recommend: Split terminal concerns into separate modules
2. **src/managers/common/nativePythonFinder.ts** (priority: 540)
- 30 changes, complexity 18
- Multiple FIXME markers found
- Recommend: Address type guards and cache issues
3. **src/features/interpreterSelection.ts** (priority: 360)
- 24 changes, complexity 15
- Temporal coupling with settings files
- Recommend: Reduce coupling with settings module
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