From conserve
Detects codebase bloat via progressive analysis tiers covering dead code, duplication, complexity, doc bloat, AI-generated patterns, dependencies, and git history. For maintenance, refactoring prep, and pre-release cleanup.
How this skill is triggered — by the user, by Claude, or both
Slash command
/conserve:bloat-detectorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- [Bloat Categories](#bloat-categories)
Systematically detect and eliminate codebase bloat through progressive analysis tiers.
| Category | Examples |
|---|---|
| Code | Dead code, God classes, Lava flow, duplication |
| AI-Generated | Tab-completion bloat, vibe coding, hallucinated deps |
| Documentation | Redundancy, verbosity, stale content, slop |
| Dependencies | Unused imports, dependency bloat, phantom packages |
| Git History | Stale files, low-churn code, massive single commits |
/bloat-scan
Detects: Large files, stale code, old TODOs, commented blocks, basic duplication
/bloat-scan --level 2 --focus code # or docs, deps
Adds: Static analysis (Vulture/Knip), git churn hotspots, doc similarity
/bloat-scan --level 3 --report audit.md
Adds: Cross-file redundancy, dependency graphs, readability metrics
| Do | Don't |
|---|---|
| Context usage > 30% | Active feature development |
| Quarterly maintenance | Time-sensitive bugs |
| Pre-release cleanup | Codebase < 1000 lines |
| Before major refactoring | Tools unavailable (Tier 2/3) |
| Level | Confidence | Action |
|---|---|---|
| HIGH | 90-100% | Safe to remove |
| MEDIUM | 70-89% | Review first |
| LOW | 50-69% | Investigate |
Priority = (Token_Savings × 0.4) + (Maintenance × 0.3) + (Confidence × 0.2) + (Ease × 0.1)
Tier 1 (always available):
modules/quick-scan.md - Heuristics, no toolsmodules/git-history-analysis.md - Staleness, churn, vibe coding signaturesmodules/growth-analysis.md - Growth velocity, forecasts, threshold alertsTier 2 (optional tools):
modules/code-bloat-patterns.md - Anti-patterns (God class, Lava flow)modules/ai-generated-bloat.md - AI-specific patterns (Tab bloat, hallucinations)modules/documentation-bloat.md - Redundancy, readability, slop detectionmodules/static-analysis-integration.md - Vulture, KnipShared:
modules/remediation-types.md - DELETE, REFACTOR, CONSOLIDATE, ARCHIVEAlways excludes: .venv, __pycache__, .git, node_modules, dist, build, vendor
Also respects: .gitignore, .bloat-ignore
--dry-run for previewsbloat-auditor agent - Executes scansunbloat-remediator agent - Safe remediationcontext-optimization skill - MECW principlesnpx claudepluginhub athola/claude-night-market --plugin conserveScans the entire codebase for over-engineering: dead code, stdlib replacements, native alternatives, YAGNI abstractions, and bloat. Produces a ranked list of what to delete or simplify.
Diagnoses repo rot prioritizing dead code (HIGH/MEDIUM/LOW confidence), god files, hotspots, hardcoded paths, stale TODOs, lopsided imports. Language-agnostic pure diagnosis.
Analyzes and removes dead code in Repowise-indexed codebases using graph analysis. Suggests safe deletion order and flags false positives.