/praxis:decision-analysisfrom praxis
Runs a structured decision analysis protocol with weighted criteria, second-order consequences, and pre-mortem analysis for build-vs-buy, technology selection, and resource allocation 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're choosing between alternatives. Do NOT default to the first reasonable option. Work through this protocol to find the best option — or discover the question is wrong.
State the decision in one sentence. Then check:
Type 2 → Spend 10 minutes on this protocol. Decide and iterate. Type 1 → Spend proportional effort. Get it right.
List ALL viable options, including:
For each option, state in one sentence what it optimizes for.
List 4-6 criteria that matter for this decision. Assign weights (1-5).
Common criteria: cost, speed to deliver, risk, maintainability, team capability, scalability, user impact, reversibility.
Ask the user which criteria matter most. Do NOT assume.
For each option, score each criterion (1-10). Multiply by weight. Sum.
Present as a table:
| Option | Criterion A (×W) | Criterion B (×W) | ... | Total |
|---|
If two options are within 10% of each other, the decision matrix alone is insufficient. Proceed to Step 5 for tiebreaking.
For the top 1-2 options, apply:
Second-order thinking: What happens 6 months after we choose this? What's the 2nd-order consequence? The 3rd-order?
Pre-mortem: Assume we chose this option and it failed badly in 6 months. What went wrong? Is that failure preventable?
Steelman the loser: Make the best possible case for the option you're NOT recommending. If the steelmanned case is compelling, reconsider.
State your recommendation explicitly:
RECOMMENDATION: [Option X]
├── Why: [1-2 sentence justification tied to highest-weighted criteria]
├── Key risk: [the most likely way this goes wrong]
├── Mitigation: [how to address that risk]
├── Reversibility: [Type 1/2, what undo looks like]
└── Confidence: [HIGH / MEDIUM / LOW]
If confidence is LOW, state what additional information would increase it, and recommend gathering that information before committing.
Stated confidence means nothing if nobody ever checks it against reality. Close that loop. If journaling is impractical here (no project workspace, one-off headless task), say so and skip this step — never block a recommendation on it.
7a — Append. Add one JSON line to .praxis/decisions.jsonl in the project
root (create it if missing). One tool call, minimal schema:
{"date":"2026-07-03","decision":"<one sentence>","chosen_option":"X","confidence":"MEDIUM","key_risk":"<from STEP 6>","revisit_by":"2026-09-01","outcome":null}
revisit_by is a date or concrete trigger ("after v2 ships") for checking how
the decision turned out. outcome stays null until known.
7b — Revisit nudge. If .praxis/decisions.jsonl exists, check it early
(at STEP 1, before recommending) for entries with outcome: null whose
revisit_by has passed. Tell the user: "N past decisions are due for a
confidence check." This is a nudge only — old unresolved entries NEVER block
the current decision.
7c — Calibrate. When a journaled decision's outcome becomes known (the user
reports back, or you observe the result), set that entry's outcome to
"held" / "failed" plus one sentence on what happened — the only permitted edit
to past lines. Then compare stated confidence against results: are HIGH calls
holding most of the time? Did LOW calls fail the way key_risk predicted? Use
the pattern to adjust FUTURE confidence estimates. This is calibration for
better future calls, not scoring of past ones.
STEP 7 journaling is best-effort, not a gate: if .praxis/ doesn't exist or
journaling isn't practical, skip it gracefully — never withhold a recommendation
over it.
This skill prevents:
After recommendation is made and user accepts:
If Superpowers is installed and the decision leads to building something → invoke
Skill(superpowers:brainstorming) with the chosen option, criteria weights, and key
risks as context. Let Superpowers drive the design of the chosen approach.
If Superpowers is NOT installed → proceed to design or implementation based on the recommendation.
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).
/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.
/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).
/estimationMANDATORY estimation protocol. You MUST invoke this skill before quoting effort, time, or cost for any non-trivial work — project plans, "how long will this take", migration sizing, budget requests. Do NOT give a single-point estimate. Do NOT estimate from first-principles optimism when comparable work exists to anchor on. Invoke this BEFORE committing to any plan with a number attached.
Other plugins' skills for the same job