How this command is triggered — by the user, by Claude, or both
Slash command
/loctree:healthThe summary Claude sees in its command listing — used to decide when to auto-load this command
# /loctree:health - Codebase Health Check Run a comprehensive health analysis of the current codebase. ## Usage ## What It Does 1. Runs `loct health` to analyze the codebase 2. Reports: - Dead exports (unused code) - Circular dependencies - Duplicate exports - Overall health score ## Instructions When this command is invoked: 1. Run `loct health` in the project root 2. Summarize the findings: - List any HIGH severity issues first - Provide actionable suggestions for each issue - Report the overall health score 3. If there are dead exports, suggest files that c...
Run a comprehensive health analysis of the current codebase.
/loctree:health
loct health to analyze the codebaseWhen this command is invoked:
Run loct health in the project root
Summarize the findings:
If there are dead exports, suggest files that can be safely deleted.
If there are circular dependencies, explain the cycle and suggest how to break it.
Codebase Health Report
======================
Health Score: 78/100
Issues Found:
- 3 dead exports (unused code)
- 1 circular dependency cycle
Dead Exports:
- src/utils/deprecated.ts:oldHelper (not imported anywhere)
- src/api/legacy.ts:LegacyClient (not imported anywhere)
Circular Dependencies:
- src/a.ts → src/b.ts → src/c.ts → src/a.ts
Suggestion: Move shared types to src/types/shared.ts
Quick Wins:
- Delete src/utils/deprecated.ts (saves 45 LOC)
- Break cycle at src/b.ts → src/c.ts
npx claudepluginhub loctree/loctree-plugin/dependency-healthAnalyzes structural health of the codebase using graph metrics, computes a health score, and generates specific remediation recommendations.
/codebase-healthRuns 6 parallel analysis agents to assess codebase health across structural, duplication, abstraction, naming, dead code, and test dimensions, producing a consolidated report with quick wins and recommendations.
/sc-codebase-healthRuns parallel analysis agents to check codebase health, producing a report on structural issues, duplication, abstractions, naming, dead code, and test organization.
/analyze-dependenciesAnalyzes dependency graph and architecture health of a project, detecting circular dependencies, layer violations, and excessive coupling. Supports visual output and configurable rules.
/analyze-qualityScans your codebase for test gaps, anti-patterns, documentation holes, performance and security issues, then produces prioritized recommendations and quality scores. Optionally accepts --lsp for deeper TypeScript/JS analysis.
/code_analysisAnalyzes code quality on specified files or directory, reporting complexity, code smells, security issues, and generating a health score with prioritized recommendations tracked as todos.