/praxis:gap-analysisfrom praxis
Runs 7 cognitive debiasing checks (inversion, second-order effects, MECE, map vs territory, adversarial, simplicity, reversibility) before finalizing designs, plans, or architecture decisions.
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.
You have produced a design, plan, or recommendation. Before presenting it as final, you MUST run all 7 checks below. Do not skip any. Report each result explicitly.
If your harness supports subagents, dispatch these checks to a fresh-context reviewer
using agents/reasoning-reviewer.md — a reviewer that has not seen your design's
justifications catches what self-review misses. Required at the DEEP tier; recommended
whenever the decision is hard to reverse.
Ask: "How would I guarantee this fails?"
List at least 3 specific failure modes; keep listing while distinct ones come to mind, stop when candidates turn contrived. For each, verify your solution prevents it. If any failure mode is not prevented, flag it as an open risk.
Ask: "And then what?" three times.
If 2nd or 3rd order effects are negative, state whether they're acceptable or require design changes.
Ask: "Have I covered the entire problem space with no gaps and no overlaps?"
List the dimensions you've addressed. Identify any dimension you haven't addressed. Gaps are where surprises live.
Ask: "Where does my model diverge from reality?"
List at least 3 things you simplified, assumed, or ignored — more if you know of them. For each, state the risk if reality differs from your model.
Ask: "How would a hostile actor exploit this? How would a careless user break this?"
Identify the weakest point. State whether it's acceptable or needs hardening.
Ask: "Is there a simpler solution I'm overlooking?"
If yes, state why you chose the more complex approach. The justification must be concrete, not "it might be needed later" (that's YAGNI violation).
Ask: "Is this decision reversible?"
After completing all 7 checks, summarize:
GAP ANALYSIS COMPLETE
├── Inversion: [X/Y failure modes mitigated] [open risks if any]
├── Second-order: [acceptable / requires changes]
├── MECE: [complete / gap in: ___]
├── Map vs territory: [top risk: ___]
├── Adversarial: [weakest point: ___]
├── Simplicity: [simplest viable / justified complexity]
├── Reversibility: [Type 1 / Type 2]
└── Confidence: [HIGH / MEDIUM / LOW / INSUFFICIENT]
Do NOT present a design, plan, or recommendation as final until all 7 checks
are complete and reported. If any check reveals a critical issue (unmitigated
failure mode, negative 2nd-order effect, MECE gap, or Type 1 decision with
LOW confidence), you MUST address it before proceeding.
Rationalizations that skip checks:
After all 7 checks pass and the design is validated:
If Superpowers is installed → invoke Skill(superpowers:writing-plans) to create the
implementation plan. Pass the validated design and any issues flagged during gap analysis.
Do NOT write the plan inside PRAXIS. PRAXIS validated. Superpowers plans.
If Superpowers is NOT installed → proceed to implementation planning yourself.
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.
/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.
/diagnostic-reasoningMANDATORY debugging protocol. You MUST invoke this skill when debugging complex issues, investigating failures, diagnosing intermittent problems, or performing root cause analysis. Do NOT start changing code before collecting observations. Do NOT guess at causes — generate 5 competing hypotheses and design a discriminating test. Invoke this BEFORE touching any code when something is broken.
/domain-modelingMANDATORY modeling protocol. You MUST invoke this skill when designing a data model, domain model, database schema, or the core entities and relationships of a system — "design the schema", "model this domain", "what tables/entities do we need". Do NOT jump to tables or classes before the invariants are named. Do NOT leave illegal states representable. Invoke BEFORE writing migrations, ORM models, or type definitions for the domain. Does NOT apply to choosing a database engine (use architecture-reasoning).
npx claudepluginhub xd4o/praxis --plugin praxisOther plugins' skills for the same job