Detects codebase bloat via progressive tiers: dead code, duplication, complexity, docs, deps, git history. For maintenance, pre-release cleanup, refactoring prep.
From conservenpx claudepluginhub athola/claude-night-market --plugin conserveThis skill uses the workspace's default tool permissions.
modules/ai-generated-bloat.mdmodules/code-bloat-patterns.mdmodules/documentation-bloat.mdmodules/git-history-analysis.mdmodules/growth-analysis.mdmodules/quick-scan.mdmodules/remediation-types.mdmodules/static-analysis-integration.mdDesigns and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
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 principles