tsa-health-watchlisted
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`