/claude-crap:adoptfrom claude-crap
Guides teams through adopting claude-crap on existing codebases with a three-question assessment to recommend a strictness mode (advisory/warn/strict) and generate a .claude-crap.json config.
Ships in claude-crap. 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.
Walk the user through picking the right initial strictness mode for claude-crap on their workspace, then hand them the exact .claude-crap.json to commit. The whole interaction should take under two minutes — it is an onboarding assistant, not a full quality audit.
Ask the user these three questions, one at a time. Wait for each answer before moving to the next so the user is not overwhelmed.
error-level findings would a fresh scan produce: zero, a handful (say 1–5), or more than that?"Pick the strictness using this table. The principle is simple: if the project would immediately red-light under strict mode, don't start there — the team will just disable the plugin. Start at the loosest mode that still surfaces the findings, and tighten over time.
| Test coverage | Existing error findings | Wants hard block from day one? | Recommend |
|---|---|---|---|
| Green | 0 | Yes | strict |
| Green | 0 | No / unsure | warn |
| Green | 1–5 | Either | warn |
| Patchy | 0 | Either | warn |
| Patchy | 1–5 | Either | advisory |
| Patchy | 6+ | Either | advisory |
| Near-zero | Any | Any | advisory |
If the user's answers fall outside the table exactly, lean toward the looser mode. Rolling out tight and loosening is painful; rolling out loose and tightening is natural.
Output the recommended .claude-crap.json in a fenced JSON code block. Use this exact shape, substituting <recommended-mode> with the actual value from the table (strict, warn, or advisory):
// .claude-crap.json — commit this to the workspace root
{
"$schema": "https://raw.githubusercontent.com/ahernandez-developer/claude-crap/main/schemas/crap-config.json",
"strictness": "<recommended-mode>"
}
Then explain what happens in the mode you picked, in one sentence per mode:
End with a one-paragraph gradual-adoption roadmap tailored to the mode you picked:
.claude-crap.json to the workspace root so the whole team picks up the policy.http://127.0.0.1:5117 to see the SARIF findings accumulate.advisory → warn → strict) once the team is comfortable with what they're seeing and the finding count is trending down.CLAUDE_CRAP_STRICTNESS=<mode> claude — useful for a one-off lenient run during an emergency, without changing the committed policy.Adopting a deterministic quality gate on an existing codebase is a change-management problem more than a technical one. Teams that jump straight to strict mode without checking their baseline tend to hit a wall the first time the Stop hook blocks a task close, get frustrated, and disable the plugin — losing all the benefit of the PreToolUse gatekeeper and the PostToolUse verifier too, which would have worked fine at their current codebase.
This skill turns the adoption question into a 30-second assessment and a ready-to-commit config. The three questions are deliberately minimal: they capture the only signals that actually matter for picking an initial mode (coverage, baseline findings, enforcement appetite), and they avoid the overhead of running a full scan before the team has even installed the plugin.
The gradual-adoption roadmap is the other half of the value: most teams never pick the "right" strictness on the first try, and the skill's job is to leave them with a clear path to tighten over time instead of a one-shot recommendation they'll regret in a month.
strict mode to a team that has any unresolved error-level findings in a recent scan. That is a guaranteed rage-quit on the first task close.<recommended-mode> in the JSON code block. Fill it with the actual value from the table so the user can copy-paste directly without editing.score_project as part of this skill. The interview is faster and gives the team more control over the recommendation than a baseline scan would. Reach for /claude-crap:score separately if they ask for hard numbers.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
onboarding, gradual-rollout, strictness-modes, quality-gate, claude-crap
Other plugins' skills for the same job
npx claudepluginhub ahernandez-developer/claude-crap --plugin claude-crap4 skills in this plugin
/analyzeRun tree-sitter AST analysis on a source file using claude-crap's deterministic engine and report per-function cyclomatic complexity plus physical and logical lines of code. Use this skill whenever the user asks "what's the complexity of this file", "how complex is foo.ts", "show me cyclomatic complexity per function", "analyze this file's structure", "which functions in this file are too complex", "where should I refactor first in this module", or needs to pick candidates for refactoring based on complexity. Also use this skill proactively when a file feels "big" and you want a ranked list of hot-spot functions before proposing a refactor plan — the tree-sitter engine gives exact numbers instead of eyeball estimates. Supports TypeScript, JavaScript, Python, Java, and C#; the language is detected automatically from the file extension. Takes a single file path as the argument after the skill name./check-testCheck whether a production source file has an accompanying characterization test using claude-crap's deterministic test-harness resolver. Use this skill whenever the user asks "is this file tested", "does foo.ts have a test", "where's the test for bar.py", "check test coverage for this file", "do I have a test harness for src/baz.java", or is about to modify a source file and wants to know if the CLAUDE.md Golden Rule test prerequisite is already satisfied. Use it proactively at the start of any work on a .ts / .tsx / .js / .jsx / .mjs / .cjs / .py / .java / .cs file to verify a characterization test exists — this is required by CLAUDE.md and claude-crap's PostToolUse hook will flag the violation later if you skip the check. The skill takes a single file-path argument after the skill name./scoreRun claude-crap's deterministic project quality gate and display the A..E letter grade across Maintainability, Reliability, Security, and Overall. Use this skill whenever the user asks "how's the code quality", "what's my CRAP index", "is this project shippable", "show me the technical debt ratio", "run the quality gate", "score the project", or wants a one-glance read on whether the current workspace passes its policy ceiling. Also use this skill proactively at the start of a refactoring session or before a release to establish a quality baseline, and after a substantial refactor to verify the grade has not regressed. Do NOT use it for incident debugging or per-file analysis — for a single file, reach for /claude-crap:analyze instead.