/claude-crap:scorefrom claude-crap
Runs claude-crap's project quality gate to display A..E letter grades across Maintainability, Reliability, Security, and Overall. Useful for checking code quality, technical debt, and policy pass/fail.
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.
Run the score_project MCP tool from the claude-crap server and display the result.
score_project with format: "both" so you get both the Markdown summary and the JSON snapshot in one call.isError: true, the overall rating is worse than the configured policy ceiling under strict mode. Explicitly tell the user their workspace FAILS the policy, surface the rule IDs from the failures array (e.g. SONAR-GATE-TDR, SONAR-GATE-ERRORS), and recommend they drill into the dashboard URL or the consolidated SARIF report to see the underlying findings.The output includes four A..E letter grades (one per dimension plus an overall), the TDR percent, per-level finding counts, workspace LOC, the scanners that have already ingested findings, the dashboard URL, and the SARIF report path. The overall grade is the worst of the three dimension grades by policy, so a single E-rated security finding drops the whole score to E regardless of maintainability.
The score_project MCP tool is the canonical "is this project shippable?" reading for claude-crap. It gets run automatically at the Stop quality gate on every task close, but users often want an ad-hoc read mid-session — to know whether a refactor actually improved the grade, to get a baseline before starting new work, or to decide whether to open a PR now or keep iterating. Making it a single slash command instead of a three-step MCP tool invocation removes the friction from those workflows.
The engine is deterministic: given the same SARIF store and the same workspace, score_project always returns the same grade. That is a feature, not a limitation — it means two developers on the same branch will see identical readings, and it means the grade is safe to cite in PR descriptions and commit messages without the usual LLM caveats about reproducibility.
score_project returns.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
claude-crap, quality-gate, code-quality, technical-debt, project-scoring
4 skills in this plugin
/adoptInteractive onboarding walkthrough for teams introducing claude-crap on an existing codebase. Use this skill whenever the user asks "how do I install claude-crap on my project", "we're adopting claude-crap for our team", "how should I roll claude-crap out", "what strictness mode should I pick", "we have a lot of legacy code, can we ease into this gradually", "our project has a bunch of existing errors, how do I avoid getting blocked", or is otherwise looking for guidance on gradual rollout strategy instead of just dropping a strict quality gate on a messy codebase. The skill asks a short three-question assessment about test coverage, existing findings, and appetite for hard enforcement, recommends one of three strictness modes (advisory / warn / strict), and emits a copy-pasteable .claude-crap.json snippet for the workspace root so the team can commit the policy in a single step./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.Other plugins' skills for the same job
npx claudepluginhub ahernandez-developer/claude-crap --plugin claude-crap