/praxis:code-quality-analysisfrom praxis
Runs 15 structural code quality checks across readability, structure, safety, purity, and design. Complements TDD by verifying design quality on significant code, PRs, and refactors.
Ships in praxis. 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.
EXTREMELY_IMPORTANT: This is a MANDATORY protocol, not a suggestion. Follow every step. Do not skip steps. Do not combine steps. Do not summarize. Work through each gate in order.
Tests verify that code WORKS. This protocol verifies that code is WELL-DESIGNED. Run these checks on any significant code you write or review.
Work through each. Mark PASS, FAIL, or N/A. Do not skip any applicable check.
1. NAMING — Does every variable, function, and class name reveal its intent?
processData() → FAIL. extractValidEmails() → PASS.isValid, hasPermission, canExecute.2. FUNCTION SIZE — Does every function do exactly one thing?
3. NESTING DEPTH — Is anything nested deeper than 2 levels?
4. SINGLE RESPONSIBILITY — Does each module/class have exactly one reason to change?
5. COUPLING — Can you change module A without touching module B?
6. COHESION — Is everything inside this module related to the same concern?
7. FAIL FAST — Do errors surface immediately with clear messages?
8. IDEMPOTENCY — What happens if this operation runs twice?
9. INPUT VALIDATION — Are all inputs validated at the boundary?
10. COMMAND-QUERY SEPARATION — Does every function either return data OR change state?
11. IMMUTABILITY — Is data mutated, or are new copies created?
const over let. Prefer map/filter/reduce over mutating loops.12. SURPRISE CHECK — Would a reader be surprised by ANY behavior?
13. COMPOSITION — Is inheritance used where composition would work?
14. ORTHOGONALITY — If you change feature X, how many other files change?
15. SIMPLICITY — Is this the simplest approach that solves the problem?
After completing all checks:
CODE QUALITY ANALYSIS
├── Readability: Naming [P/F] | Size [P/F] | Nesting [P/F]
├── Structure: SRP [P/F] | Coupling [P/F] | Cohesion [P/F]
├── Safety: FailFast [P/F] | Idempotent [P/F] | Validation [P/F]
├── Purity: CQS [P/F] | Immutable [P/F] | NoSurprise [P/F]
├── Design: Composition [P/F] | Orthogonal [P/F] | Simple [P/F]
├── Score: [X/15 passed]
└── Action items: [list any FAIL items with specific fix]
Code with 3+ FAIL items in the Safety or Structure categories should not
ship without remediation. Flag these as blocking issues in code review.
Rationalizations this skill catches:
After the 15-check analysis is complete:
If Superpowers is installed → pass the quality report to Skill(superpowers:requesting-code-review)
or the active Superpowers review workflow. FAIL items become required fixes in the review.
Safety and Structure FAILs are blocking items that Superpowers' code reviewer should enforce.
If Superpowers is NOT installed → present the report to the user with specific fix recommendations for each FAIL item.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub xd4o/praxis --plugin praxis19 skills in this plugin
/architecture-reasoningMANDATORY architecture analysis. You MUST invoke this skill before making module boundary decisions, build-vs-buy choices, technology selections, data model designs, API contracts, or any structural decision that is expensive to reverse. Do NOT propose architecture without running reversibility classification, boundary analysis, and bottleneck identification. Invoke BEFORE writing implementation plans for non-trivial systems.
/codebase-comprehensionMANDATORY comprehension protocol. You MUST invoke this skill before changing code you did not write or do not already understand — modifying, fixing, extending, or refactoring an existing file, function, or module whose behavior you have not traced. Do NOT edit from pattern-matching. Do NOT claim "nothing else is affected" without checking. Invoke BEFORE proposing the edit. Does NOT apply to greenfield code you are writing from scratch, or to diagnosing a runtime failure (use diagnostic-reasoning).
/decision-analysisMANDATORY trade-off evaluation. You MUST invoke this skill when the user faces a choice between alternatives — build-vs-buy, rewrite-vs-patch, technology selection, resource allocation, priority decisions. Do NOT default to the first reasonable option. Do NOT skip evaluating "do nothing" as a valid alternative. Invoke this to run weighted criteria analysis with second-order consequences before recommending.
Other plugins' skills for the same job