/codebase-maintenance:context-retrieval-loopfrom codebase-maintenance
Gathers context before refactoring, renaming, or removing code using a 3-cycle search loop to assess blast radius and avoid breaking changes.
Ships in codebase-maintenance. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Gather context before any refactor or maintenance task. Prevents breaking undetected callers or missing test coverage.
# Find callers and references
rg "<symbol-name>" --type ts --type js -l
rg "<symbol-name>" --glob "*.py" -l
Stop here if you can confirm the symbol is unused (no results).
Read the target file and its tests. Find all callers:
rg "import.*<module>" -l
rg "<function-name>" --glob "*.test.*" -l
Stop here if you understand the change scope and existing test coverage.
# Check if symbol appears in build or config
rg "<symbol-name>" *.config.* tsconfig.json Makefile -l 2>/dev/null
Check for re-exports, barrel files, and public API surfaces.
Context gathered:
<file-path> — <reason>
Blast radius:
<N> callers in <N> files
Tests covering this code: <yes/no/partial>
Missing context (if any):
<what is still unclear>
Do not start a refactor without knowing the blast radius. If callers are unclear after Cycle 3, stop and report.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
refactoring, code-maintenance, dead-code, blast-radius, context-gathering, ripgrep
npx claudepluginhub yeaight7/agent-powerups --plugin codebase-maintenance9 skills in this plugin
/ai-slop-cleanerUse when a working code path feels bloated, noisy, or over-abstracted, when asked to clean up or deslop AI-generated code, or when a reviewer-only anti-slop pass is requested./architecture-simplificationUse when a codebase carries over-engineered abstractions, unnecessary layers, or redundant logic that should be collapsed without changing behavior./dead-code-removalUse when unused functions, classes, exports, or files need to be identified and safely deleted.Other plugins' skills for the same job