bloat-detector
关于
This skill detects codebase bloat through progressive analysis of dead code, duplication, and complexity. It's designed for use during quarterly maintenance, pre-release cleanup, or before refactoring in codebases over 1000 lines. Key capabilities include static analysis integration and identification of AI-generated or documentation bloat.
快速安装
Claude Code
推荐npx skills add majiayu000/claude-skill-registry -a claude-code/plugin add https://github.com/majiayu000/claude-skill-registrygit clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/bloat-detector在 Claude Code 中复制并粘贴此命令以安装该技能
GitHub 仓库
Frequently asked questions
What is the bloat-detector skill?
bloat-detector is a Claude Skill by majiayu000. Skills package instructions and resources that Claude loads on demand, so Claude can perform bloat-detector-related tasks without extra prompting.
How do I install bloat-detector?
Use the install commands on this page: add bloat-detector to Claude Code as a plugin, or clone its repository into your skills directory, then restart Claude so it picks up the skill.
What category does bloat-detector belong to?
bloat-detector is in the conservation category, tagged bloat, cleanup, static-analysis, technical-debt and optimization.
Is bloat-detector free to use?
Yes. bloat-detector is listed on AIMCP and free to install. It runs inside Claude, so no separate service account is required to use the skill itself.
相关推荐技能
bloat-detector 是一个用于识别代码库膨胀的 Claude Skill,它能通过渐进式分析来检测死代码、重复代码、复杂度和文档膨胀等问题。该工具最适合在季度维护、发布前清理或重构前等非紧急开发阶段使用,以帮助管理技术债务。其关键特性包括快速扫描、Git历史分析和静态分析集成,但不适用于活跃的功能开发或处理时间紧迫的 Bug。
这个Skill在上下文使用量接近80%时自动触发,将剩余工作无缝交接给一个新的子代理继续执行,实现了无需手动`/clear`的自动上下文管理。它特别适用于处理长任务时保持工作流连续性,通过子代理的新鲜上下文窗口来突破原有上下文限制。关键特性包括自动阈值检测、会话状态检查点和渐进式加载,让开发者无需中断工作就能处理大量内容。
clear-context 是一个自动管理上下文长度的技能,当任务执行接近上下文窗口80%容量时,它会自动将剩余工作委托给一个新的子代理继续执行。这实现了无需手动 /clear 的自动上下文清理,特别适合处理长耗时任务。关键优势在于通过子代理继承工作流状态,实现无缝的任务延续而不中断工作流程。
该Skill用于在上下文使用量接近窗口50%时,通过MECW原则主动优化和管理上下文。它适用于需要分解复杂多步骤任务、进行工作流拆分的高上下文压力场景。开发者应在开始复杂操作前主动检查并触发此技能,但不要在简单单步任务或已使用MCP代码执行工具链时使用。
