/praxis:diagnostic-reasoningfrom praxis
Mandatory debugging protocol for complex issues. Collects observations, generates 5 competing hypotheses, and designs discriminating tests before changing code. Use when debugging failures or intermittent problems.
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.
Something is broken. Do NOT start changing code. Follow this protocol.
Before forming any hypothesis, collect facts. Answer each:
Do NOT proceed until you can state the problem in one precise sentence that another engineer could verify independently.
Produce at least 5 hypotheses. Fewer and you are anchored on your first guess rather than diagnosing. Add more if the observations genuinely suggest them; stop when new candidates are restatements of ones you already have, not at a count.
For each hypothesis, state:
Order by: (explanatory power) × (prior probability), highest first.
Mandatory check: Is your #1 hypothesis the simplest explanation? Simple causes first: config error, permissions, missing dependency, wrong environment, typo. Check these before investigating race conditions, memory corruption, or kernel bugs.
Do NOT test hypotheses one by one. Design a single observation that distinguishes between your top 3 hypotheses simultaneously.
Template: "If I observe [X], then hypothesis A is supported. If I observe [Y], then hypothesis B is supported. If I observe [Z], then hypothesis C is supported."
This is Strong Inference. One test, maximum information.
If no single test distinguishes all three, design the test that eliminates the most hypotheses regardless of outcome (maximum information gain).
Run the test. Observe the result.
Update your hypothesis ranking. If the top hypothesis is now >80% likely, proceed to verification. If not, return to Phase 3 with the surviving hypotheses.
You found WHAT is broken. Now find WHY.
Ask "Why?" five times minimum:
Stop when you reach a systemic cause (process, tooling, policy) rather than an individual cause (person made a mistake). Fix the systemic cause.
After applying the fix:
Red flags that this skill catches:
After root cause is identified and fix is designed:
If Superpowers is installed → invoke Skill(superpowers:systematic-debugging) or
Skill(superpowers:test-driven-development) to implement the fix. Pass your ranked
hypotheses, discriminating test results, and root cause analysis. The fix should be
implemented via TDD: write a test that reproduces the root cause, verify it fails,
then fix. Do NOT write the fix inside this skill. PRAXIS diagnosed. Superpowers fixes.
If Superpowers is NOT installed → implement the fix yourself, following TDD principles where possible.
What SKILL.md sets; muted values are Claude Code's defaults
19 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).
/code-quality-analysisMANDATORY code review protocol. You MUST invoke this skill when writing significant code (not one-liners), reviewing PRs or diffs, refactoring modules, or when code quality is requested. Runs 15 structural checks across readability, structure, safety, purity, and design. Complements TDD — tests verify behavior, this verifies design quality. Do NOT ship code with 3+ safety failures without remediation.
npx claudepluginhub xd4o/praxis --plugin praxisOther plugins' skills for the same job