Skip to content
Skillv1.0.0

bloat-detector

Detect codebase bloat through progressive analysis: dead code, duplication, complexity, documentation bloat. Triggers: bloat detection, dead code, code cleanup, duplication, technical debt, unused cod

by majiayu000(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from majiayu000/claude-skill-registry-data (quality/bloat-detector/SKILL.md). Install upstream with npx skills add majiayu000/claude-skill-registry-data --skill bloat-detector. Copyright stays with the author.

Bloat Detector

Systematically detect and eliminate codebase bloat through progressive analysis tiers.

Bloat Categories

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

Quick Start

Tier 1: Quick Scan (2-5 min, no tools)

/bloat-scan

Detects: Large files, stale code, old TODOs, commented blocks, basic duplication

Tier 2: Targeted Analysis (10-20 min, optional tools)

/bloat-scan --level 2 --focus code   # or docs, deps

Adds: Static analysis (Vulture/Knip), git churn hotspots, doc similarity

Tier 3: Deep Audit (30-60 min, full tooling)

/bloat-scan --level 3 --report audit.md

Adds: Cross-file redundancy, dependency graphs, readability metrics

When to Use

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)

Confidence Levels

Level Confidence Action
HIGH 90-100% Safe to remove
MEDIUM 70-89% Review first
LOW 50-69% Investigate

Prioritization

Priority = (Token_Savings × 0.4) + (Maintenance × 0.3) + (Confidence × 0.2) + (Ease × 0.1)

Module Architecture

Tier 1 (always available):

  • @module:quick-scan - Heuristics, no tools
  • @module:git-history-analysis - Staleness, churn, vibe coding signatures

Tier 2 (optional tools):

  • @module:code-bloat-patterns - Anti-patterns (God class, Lava flow)
  • @module:ai-generated-bloat - AI-specific patterns (Tab bloat, hallucinations)
  • @module:documentation-bloat - Redundancy, readability, slop detection
  • @module:static-analysis-integration - Vulture, Knip

Shared:

  • @module:remediation-types - DELETE, REFACTOR, CONSOLIDATE, ARCHIVE

Auto-Exclusions

Always excludes: .venv, __pycache__, .git, node_modules, dist, build, vendor

Also respects: .gitignore, .bloat-ignore

Safety

  • Never auto-delete - all changes require approval
  • Dry-run support - --dry-run for previews
  • Backup branches - created before bulk changes

Related

  • bloat-auditor agent - Executes scans
  • unbloat-remediator agent - Safe remediation
  • context-optimization skill - MECW principles

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/majiayu000-claude-skill-registry-data-bloat-detector/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

majiayu000-claude-skill-registry-data-bloat-detector.ocm.jsonjson
{
  "ocm": "1",
  "id": "majiayu000-claude-skill-registry-data-bloat-detector",
  "kind": "skill",
  "name": "bloat-detector",
  "description": "Detect codebase bloat through progressive analysis: dead code, duplication, complexity, documentation bloat. Triggers: bloat detection, dead code, code cleanup, duplication, technical debt, unused code Use when: context usage high, quarterly maintenance, pre-release cleanup, before refactoring DO NOT use when: active feature development, time-sensitive bugs, codebase < 1000 lines",
  "publisher": "majiayu000",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "bloat",
      "cleanup",
      "static-analysis",
      "technical-debt",
      "optimization",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Detect codebase bloat through progressive analysis: dead code, duplication, complexity, documentation bloat. Triggers: bloat detection, dead code, code cleanup, duplication, technical debt, unused code Use when: context usage high, quarterly maintenance, pre-release cleanup, before refactoring DO NOT use when: active feature development, time-sensitive bugs, codebase < 1000 lines"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/majiayu000/claude-skill-registry-data",
      "path": "quality/bloat-detector/SKILL.md",
      "ref": "f863c11651055f498e1466492dc2a0d95721d2d5",
      "url": "https://github.com/majiayu000/claude-skill-registry-data/blob/f863c11651055f498e1466492dc2a0d95721d2d5/quality/bloat-detector/SKILL.md",
      "key": "majiayu000/claude-skill-registry-data/quality/bloat-detector/SKILL.md"
    }
  },
  "instructions": "# Bloat Detector\n\nSystematically detect and eliminate codebase bloat through progressive analysis tiers.\n\n## Bloat Categories\n\n| Category | Examples |\n|----------|----------|\n| **Code** | Dead code, God classes, Lava flow, duplication |\n| **AI-Generated** | Tab-completion bloat, vibe coding, hallucinated deps |\n| **Documentation** | Redundancy, verbosity, stale content, slop |\n| **Dependencies** | Unused imports, dependency bloat, phantom packages |\n| **Git History** | Stale files, low-churn code, massive single commits |\n\n## Quick Start\n\n### Tier 1: Quick Scan (2-5 min, no tools)\n```bash\n/blo",
  "cost": {
    "context_tokens": 668
  }
}

Fetch it by URL: GET /api/v1/registry/majiayu000-claude-skill-registry-data-bloat-detector/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.