Audit your CLAUDE.md, skills, subagents and prompts for hidden branching logic. Scores them, finds the hot sections, flags skills that will never trigger.
Your prompts, your CLAUDE.md, your skills: find the business logic hiding in them, score it, gate it in CI.
Try it in your browser: paste a CLAUDE.md, a SKILL.md or any prompt. No install, nothing leaves your machine.
Linters assume a program's behavior lives in its code. Today half of it lives in prompts: routing decisions, guardrails, business rules. A two-line function wrapping a fifty-line prompt shows up green everywhere while its git history screams hotspot. A CLAUDE.md that grew to 400 lines of "if the ticket mentions X, then..." is the same thing, loaded into a model on every turn.
promptcc measures what actually predicts maintenance pain in a prompt: branching, not length. It counts decision points, routing, injection surface and output schema depth, and turns them into one score, the way McCabe did for code. It reads prompts straight from your source files and from the Markdown files that drive your coding agent.
/plugin marketplace add halleck45/promptcc then /plugin install promptcc@promptcc. Ask Claude to audit your skills; it runs promptcc and proposes the fixes.
With Node
npx promptcc . (downloads the release binary on first run)
With Go
go install github.com/halleck45/promptcc/cmd/promptcc@latest
promptcc . # scan a repo: code prompts, CLAUDE.md, skills, agents, rules
promptcc .claude/skills/deploy/SKILL.md # audit one skill
promptcc --report-html report.html . # self-contained HTML report
promptcc --fail-over 22 . # CI gate: fail if anything scores CRITICAL
promptcc figures out what to do from what you give it. A directory is scanned for prompts in the code and for prompt files. A source file is scanned for its prompts. Any other file, or stdin, is analyzed as one prompt.
Audit your CLAUDE.md, skills and agents
If you build with Claude Code, Cursor, Copilot, Cline, Windsurf or Codex, your prompts are Markdown files. promptcc knows where they live, reads them whole, and tells you three things the score alone cannot:
Which section carries the logic, and what to do about it. Every Markdown heading is scored on its own and the file is judged by its hottest section, not by its total: summing decisions over 700 lines would only measure length. Each HIGH section comes with a remedy that fits where it lives (move it into a skill, split it into a decision table, route first).
What will silently misfire. A skill whose description never says when to use it (the only trigger signal the model gets), a SKILL.md past the documented 500 lines, a subagent missing its name or description, a broken YAML header, the same rule copy-pasted across nested CLAUDE.md files.
What is missing on disk.references/checklist.md or scripts/deploy.sh mentioned in the file but absent next to it.
The frontmatter is parsed, not scored: the body is what the model reads.