← ClaudeAtlas

tsa-health-watchlisted

Project & file health grading + dead-code detection + watch-daemon for grade drops. Answer "how healthy is this codebase", "what's rotting", "which files need attention", "alert me when something degrades" in one workflow. Use when: - Triaging a codebase: "what should we clean up first?" - Pre-PR check: "did this change make health worse?" - User asks "any dead code?" / "any rotting hot spots?" - Starting long-running session, want auto-alerts on degradation - Project-wide quality reporting Replaces: 5-10 grep/read calls + manual heuristics + spreadsheet (~20k tokens) with 2-3 MCP calls (~2k tokens).
aimasteracc/tree-sitter-analyzer · ★ 36 · AI & Automation · score 78
Install: claude install-skill aimasteracc/tree-sitter-analyzer
# tsa-health-watch — Project + file health in one pass > Grades files A→F across 6 dimensions (complexity, structure, dependencies, > duplication, size, git-hotspot). Daemon mode alerts on grade drops live. ## When to use | Goal | Tool | |---------------------------------|-------------------------------------| | Project portrait + worst files | `check_project_health` | | One-file deep dive | `check_file_health` | | Top hubs + sensory neurons | `codegraph_overview` | | Find dead functions | `codegraph_dead_code` | | Complexity hotspots (visualize) | `codegraph_complexity_heatmap` | | Watch & alert on degradation | `--watch-health` CLI (Bash) | ## Procedure ### One-shot triage (cold-start health audit) Fan out in one message: 1. `check_project_health` with `max_files: 20` — grade distribution + worst-20 2. `codegraph_dead_code` with `limit: 50` — pruning candidates 3. `codegraph_overview` — hub functions + entry points + 0-degree leaves Read the verdict. If `D/F` files exist in worst-20, drill into each with `check_file_health` to get the per-dimension breakdown + recommendation. ### Single-file investigation ``` check_file_health(file_path="<path>") ``` Returns: - `grade`: A | B | C | D | F (overall) - `dimensions`: {complexity, structure, dependencies, duplication, size, git_hotspot} - `weakest_dimension`