generate-snapshot

Generates a codebase health snapshot analyzing git history, complexity, debt markers, and dependencies.

1|Updated Aug 31, 2026
One-click install
npx skills add https://github.com/nguyenhungtran18/skill-and-tool-tracker --skill generate-snapshot-nguyenhungtran18
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: generate-snapshot
Source: https://github.com/nguyenhungtran18/skill-and-tool-tracker/tree/main/skills/generate-snapshot
Command: npx skills add https://github.com/nguyenhungtran18/skill-and-tool-tracker --skill generate-snapshot-nguyenhungtran18

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams struggle to identify which parts of a codebase need refactoring most urgently. This Skill produces a structured JSON health snapshot that surfaces refactoring hotspots, technical debt markers, circular dependencies, and knowledge silo risks so planning decisions are grounded in data. ## Core Features & Use Cases - Priority Hotspot Detection: Ranks files by priority score (change count multiplied by max complexity) to find the top 20 refactoring candidates. - Git History Analysis: Identifies frequently changed files, temporal coupling between files, and bus factor risks from single-author files. - Debt & Dependency Metrics: Counts TODO/FIXME/HACK markers, flags large files and long functions, and detects circular dependencies and layer violations. - Use Case: Before a sprint planning session, run the snapshot to get a ranked list of refactoring priorities, then present the top three hotspots with churn and complexity evidence to the team. ## Quick Start Ask the agent to generate a codebase snapshot by running python -m analysis.snapshot --output analysis-snapshot.json from the repository root and summarize the top refactoring priorities.

Frequently Asked Questions about generate-snapshot

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a codebase health snapshot?▼

Run python -m analysis.snapshot --output analysis-snapshot.json from the repository root. Add the --pretty flag to also print the JSON to stdout. The output file is written to the repository root and is ignored by .gitignore.

How to find refactoring hotspots in a codebase?▼

The snapshot ranks files by priority_score, calculated as change_count multiplied by max_complexity. Files with high scores change frequently and are complex, making them prime candidates for splitting into smaller modules or adding tests.

What metrics does the codebase snapshot include?▼

The snapshot includes summary metrics, priority hotspots, git analysis (hotspots, temporal coupling, bus factor), complexity metrics per language, debt indicators (TODO/FIXME counts, large files, long functions), and dependency analysis including circular dependencies.

Can the snapshot detect knowledge silos and bus factor risks?▼

Yes, the git_analysis section reports bus factor data. Files with author_count of 1 and change_count of 3 or more indicate knowledge concentration risk, suggesting documentation or pair programming for those areas.

What are the limitations of snapshot-based code analysis?▼

The analysis depends on git history depth and static complexity metrics, so it cannot judge code readability or business value. Temporal coupling and complexity scores are heuristics that require human interpretation before committing to refactoring work.