claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
Detects codebase bloat via dead code, duplication, complexity, and doc bloat scans. Use when codebase feels large or before a release.
Claude Code
$ npx -y skills add athola/claude-night-market --skill bloat-detector --agent claude-code
Codex
$ npx skills add athola/claude-night-market --skill bloat-detector -a codex -y
Cursor
$ npx skills add athola/claude-night-market --skill bloat-detector -a cursor -y
Gemini CLI
$ npx skills add athola/claude-night-market --skill bloat-detector -a gemini-cli -y
GitHub Copilot
$ npx skills add athola/claude-night-market --skill bloat-detector -a github-copilot -y
OpenCode
$ npx skills add athola/claude-night-market --skill bloat-detector -a opencode -y
Windsurf
$ npx skills add athola/claude-night-market --skill bloat-detector -a windsurf -y
name: bloat-detector description: Detects codebase bloat via dead code, duplication, complexity, and doc bloat scans. Use when codebase feels large or before a release. alwaysApply: false category: conservation tags: - bloat - cleanup - static-analysis - technical-debt - optimization tools: [] modules: - modules/quick-scan.md - modules/git-history-analysis.md - modules/growth-analysis.md - modules/code-bloat-patterns.md - modules/ai-generated-bloat.md - modules/documentation-bloat.md - modules/static-analysis-integration.md - modules/remediation-types.md progressive_loading: true estimated_tokens: 400 usage_patterns: - "bloat" - "dead code" - "unused" - "cleanup" - "unbloat" - "prune"
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):
**Tier 2** (optional tools):
**Shared**:
Patterns that span plugin boundaries or manifest configuration, discovered through ecosystem-wide audits.
Flag plugins with 3+ skills where `alwaysApply: true`. Each always-on skill injects its full text into every session, creating a baseline token floor before the user types anything. Sum the `estimated_tokens` fields to report total per-session cost.
Compare hooks declared in `plugin.json` or `openpackage.yml` against entries in `hooks.json`. A hook present in `hooks.json` but absent from the manifest is invisible to the plugin loader and cannot be audited, versioned, or disabled through normal plugin management.
Scan skill files for identical multi-line text blocks repeated across 10+ files (e.g., generic troubleshooting sections like "Command not found / Permission errors / Unexpected behavior"). These are copy-paste artifacts that inflate token cost without adding skill-specific value.
Skills loaded into model context gain nothing from HTML-style Tables of Contents. Detect `## Table of Contents` followed by bulleted anchor-link lists. These waste tokens since the model reads sequentially, not via hyperlinks.
Compare files on disk in `skills/*/modules/` against the `modules:` list in each skill's SKILL.md frontmatter. Files that exist on disk but are not listed in the manifest are invisible to progressive loading and may be dead weight or missing from the load path.
Always excludes: `.venv`, `__pycache__`, `.git`, `node_modules`, `dist`, `build`, `vendor`
Also respects: `.gitignore`, `.bloat-ignore`
skill; there is no separate `bloat-scan` skill
findings listed per bloat category (Code, AI-Generated, Documentation, Dependencies, Git History)
a priority score computed from the formula `(Token_Savings × 0.4) + (Maintenance × 0.3) + (Confidence × 0.2)
every proposed removal documented as DELETE, REFACTOR, CONSOLIDATE, or ARCHIVE per `modules/remediation-types.md`
hook registration gaps, boilerplate footers, ToC b
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use…
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily…
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use…
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled…
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.