/ados:plan-decisionfrom ados
Interactive decision planning session that prepares context, classification, rigor, and decision rights for writing formal Decision Records (ADR/PDR/TDR/BDR/ODR). Does not write files.
Ships in ados. 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.
/write-decision <number> and, where relevant, to link back to related changes (workItemRef).This command never writes files or modifies Git state; it operates purely via conversational planning and read-only repository inspection. See doc/guides/decision-making.md for the full decision process.
/plan-decision [] [free-text context]
Examples:
/plan-decision
→ Auto-discover next number from doc/decisions/ for the relevant type, then ask what decision we are shaping.
/plan-decision 12
→ Treat 12 as the intended record number (normalized internally to 0012), then start refinement questions.
/plan-decision 0042 Choose data sharding strategy for multi-tenant billing
→ Use 0042 as the number and seed initial understanding from the idea text.
Notes:
All other planning inputs (context, problem framing, drivers, alternatives, trade-offs, verification criteria, etc.) must be elicited interactively from the user and/or derived from existing documentation by summarization. No unstated assumptions may be invented. $ARGUMENTS
<number_resolution>
Primary goal: determine the canonical numeric record number (zero-padded to exactly 4 digits) for this planning session, for the chosen decision type.
Resolution rules:
If adrNumberHint is provided:
If no numberHint:
doc/decisions/<TYPE>-*-*.md (where TYPE defaults to ADR only when the decision type is genuinely unspecified).0001 as the first number.Once confirmed by the user, refer to this as:
Use zeroPad4 consistently when referencing this decision record in summaries, e.g. <TYPE>-<zeroPad4> and /write-decision <zeroPad4>.
This command MUST NOT create folders or files in doc/decisions/; it only proposes and confirms the numeric identifier for use by /write-decision.
</number_resolution>
<context_sources> The planning agent may read from the repository to ground its questions and synthesis, but must not modify any files.
Primary context sources:
doc/spec/**: current system and feature-level specifications.doc/overview/**: domain and product overviews (north star, architecture overviews, glossary/ubiquitous language).doc/changes/**/*--*--*/chg-*-spec.md: change specifications that may have motivated or be impacted by this decision.doc/decisions/**: existing decision records for precedent or constraints.doc/contracts/**: REST, events, and data contracts relevant to the decision.doc/domain/**, doc/diagrams/**, and other documentation under doc/ that inform architecture, flows, and constraints.Usage rules:
<session_flow> Overall planning session flow (per decision number):
Initialization & orientation
PDEV-123 or GH-456) or is broader/cross-cutting.Triage — record-worthiness & the R0 escape hatch
Classify (four axes)
Select rigor (R0–R3 + emergency overlay)
Assign decision rights (DACI)
ai_assistance.human_decider field.Clarify context and problem framing
Elicit hard requirements (constraints)
C-1, C-2, … (compact, per-record identifiers used to cross-reference from Alternatives and Decision).regulatory | contractual | prior decision | AC | internal standard.test | audit | code review | architect sign-off | demonstration (not limited to automated checks).yes | no (no = a violation is disqualifying; yes = a documented accepted-risk exception may be recorded in the Decision).Driver/constraint overlap detection
Identify and validate decision drivers
Shape the option space (alternatives)
Evaluate options and converge on a decision
negotiable: no) constraint is ineligible. Note any negotiable (negotiable: yes) constraint the chosen/proposed alternative violates as a candidate accepted-risk exception.Trade-offs, consequences, and scope boundaries
High-level implementation and rollout concept
Verification criteria and confidence
Consolidation and readiness check
<questioning_strategy> The command must enforce disciplined, high-signal questioning inspired by the Archie prompt, adapted for ADR planning:
<planning_summary_structure> When the user confirms that planning feels complete enough to draft the decision record, synthesize a compact, structured planning summary that is easy for both humans and the /write-decision command to consume.
The final message of a completed planning session MUST include a block in this form (field order and naming must match exactly; values are illustrative; /write-decision consumes this block directly):
<decision_planning_summary>
decision_type: "adr" # adr | pdr | tdr | bdr | odr (defaults to adr ONLY when type genuinely unspecified)
record_number: "0007" # zeroPad4 number for the chosen type
slug_hint: data-sharding-strategy
title: Choose data sharding strategy for multi-tenant billing
status_hint: Proposed # Proposed | Accepted | Deprecated | Superseded
# status lifecycle: Proposed → Accepted → (Deprecated | Superseded)
owners: ["team-platform", "@cto"]
service: "billing-service"
labels: ["architecture", "storage", "scalability"]
related_changes: ["PDEV-123"]
decision_scope: "service" # service | cross-service | organization-wide
audience: internal
# --- classification, rigor, governance, AI-assistance (captured by the triage->rights front-end) ---
classification:
domains: ["architecture", "storage"]
archetype: "selection"
environment: "complicated" # clear | complicated | complex | chaotic (Cynefin)
rigor: "R2" # R0 | R1 | R2 | R3 (R0 produces no record)
reversibility: "moderate" # easy | moderate | hard
stakes: "high"
urgency: "medium"
uncertainty: "medium"
blast_radius: "org"
recurrence: "one-off"
governance: # DACI decision rights
driver: "@platform-lead"
decider: "@cto" # the accountable human authority (R2/R3 require a human decision)
contributors: ["@data-eng"]
reviewers: ["@security"]
performers: ["@platform-lead"]
informed: ["@billing-team"]
ai_assistance:
used: true
roles: ["researcher", "analyst", "record-writer"]
external_data_shared: false
citations_verified: true
human_decider: "@cto" # required before Accepted for R2/R3
reviewers: ["@security"]
summary: |
Short, 1–3 sentence summary of the decision: what choice is being made and why it matters, without low-level solution detail.
context: |
Concise description of current state, triggering events, and any relevant prior decisions or changes (situational facts only — do NOT list binary constraints here; those go in hard_requirements).
problem_framing: |
Reframed problem in objective terms, focusing on underlying causes rather than symptoms.
evidence_assumptions_unknowns:
- item: "Current storage implementation has no tenant-level isolation."
label: "FACT" # FACT | ASSUMPTION | TO-CONFIRM
source: "doc/spec/features/billing/tenants.md"
impact_if_false: "Isolation alternatives may be over-weighted."
confidence: "high" # low | medium | high
technical_selection_evidence_pack: [] # Only for archetype: selection; default top-3 candidates (expand when warranted), canonical-source + as-of date, data-minimized inputs only
hard_requirements:
- id: "C-1"
statement: "PII at rest MUST be encrypted with a customer-managed key."
source: "regulatory" # regulatory | contractual | prior decision | AC | internal standard
verification: "audit" # test | audit | code review | architect sign-off | demonstration
negotiable: "no" # yes | no ("no" = a violation is disqualifying)
- id: "C-2"
statement: "Migration window MUST NOT exceed 4 hours of planned downtime."
source: "contractual"
verification: "demonstration"
negotiable: "yes"
decision_drivers:
- "Reduce operational complexity while supporting 10x tenant growth."
- "Preserve strong consistency for billing and invoicing workflows."
- "Minimize migration risk over the next 6 months."
mental_models_and_techniques:
- "First Principles"
- "5 Whys"
- "Second-Order Thinking"
alternatives:
- id: "ALT-0"
name: "Do nothing / keep current shared-table approach"
eligibility: "Eligible" # Eligible | Not eligible | Eligible-with-accepted-risk-exception
summary: "Retain existing shared tables without explicit sharding strategy."
pros: ["No migration effort", "Zero immediate risk"]
cons: ["Unbounded tenant growth risk", "Operational complexity under load"]
constraint_compliance: "C-1: pass; C-2: pass (no migration)"
- id: "ALT-1"
name: "Single-tenant database per large tenant"
eligibility: "Eligible-with-accepted-risk-exception"
summary: "Move high-value tenants to their own database instances."
pros: ["Strong isolation", "Per-tenant performance tuning"]
cons: ["Operational overhead", "Complex routing and management"]
constraint_compliance: "C-1: pass; C-2: fail (migration exceeds 4h window)"
- id: "ALT-2"
name: "Shared database with schema-based sharding"
eligibility: "Eligible"
summary: "Use a shared database with tenant_id-based sharding and guardrails."
pros: ["Balanced isolation vs. operability", "Simpler migrations"]
cons: ["Still shared blast radius if misconfigured"]
constraint_compliance: "C-1: pass; C-2: pass"
decision:
choice: "Shared database with schema-based sharding"
rationale: |
Summary of why this option best satisfies the validated drivers, including explicit trade-offs against alternatives.
assumptions:
- "Peak tenant count remains within <X> over next 18 months."
- "Team has capacity to build sharding middleware and observability."
non_goals:
- "[OUT] Optimize for multi-region active/active in this decision."
acceptance_state: "Proposed on branch; Accepted after human PR review/approval and merge."
decider: "@cto"
constraint_attestation: "Satisfies all constraints C-1 and C-2." # OR accepted-risk exception for negotiable: yes only
revisit_trigger: "Revisit if tenant-growth or latency assumptions are invalidated."
review_date: "TODO: Set on Acceptance for the first post-implementation retrospective."
tradeoffs_and_consequences:
positive:
- "Improved scalability for high-traffic tenants."
- "Clearer ownership boundaries for sharded data."
negative:
- "Increased complexity in routing and migration tooling."
- "Potential for uneven shard utilization requiring rebalancing."
unknowns:
- "Long-term cost profile of managing many shards."
implementation_plan_high_level:
- "Define sharding key and guardrails in contracts and specs."
- "Introduce sharding-aware data access layer behind current APIs."
- "Plan and execute phased migration of tenants to sharded layout."
- "Update observability and runbooks for sharded topology."
rollback_reversal:
steps: ["Pause tenant migration", "Route new tenants to the previous allocation strategy"]
stop_conditions: ["P95 latency exceeds target for 2 consecutive days"]
irrecoverable_state: "None expected; confirm during implementation planning."
communication_plan:
- audience: "@billing-team"
message: "Sharding strategy selected; implementation planning will follow."
channel: "team update"
timing: "pre-rollout"
verification_criteria:
- metric: "P95 read latency for sharded tables"
target: "≤ 200ms under 2x current peak load"
window: "First 30 days after full rollout"
- metric: "Migration incident rate"
target: "0 Sev-1 incidents during rollout"
window: "Migration period"
confidence_rating: "medium" # low | medium | high
confidence_rationale: |
Short explanation of why confidence is low/medium/high, referencing data, precedent, or gaps.
structured_retrospective:
process_quality: "TODO: Populate after implementation and observation."
evidence_quality: "TODO: Populate after implementation and observation."
execution_quality: "TODO: Populate after implementation and observation."
realized_outcome: "TODO: Populate after implementation and observation."
luck_and_variance: "TODO: Populate after implementation and observation."
open_questions:
- id: "OQ-ADR-1"
question: "Do we require cross-region failover within this decision scope?"
owner: "@platform-lead"
blocking: false
references:
- "doc/changes/2026-01/2026-01-15--PDEV-123--new-billing-model/chg-PDEV-123-spec.md"
- "doc/spec/features/billing/tenants.md"
- "doc/decisions/ADR-0003-database-vendor-choice.md"
</decision_planning_summary>
Notes:
hard_requirements: is a DISTINCT field from decision_drivers:. Constraints (binary gates) and drivers (continuous preferences) must never be merged. An empty hard_requirements: list is a conscious author choice, not an omission — confirm the emptiness explicitly with the user. /write-decision reads this field to render the Constraints section.decision_type determines which TYPE prefix /write-decision will use. Emit record_number, slug_hint, and title in <decision_planning_summary>./write-decision accepts both <decision_planning_summary> and <technical_decision_planning_summary>, and accepts record_number or adr.number, slug_hint or adr.slug_hint, and title or adr.title. Generic fields take precedence when both forms are present.rigor field drives /write-decision's proportional rendering (R1 compact subset / R2 standard / R3 full). R0 produces no record.governance and ai_assistance blocks flow into the record's optional front matter; ai_assistance.human_decider is required before any R2/R3 record advances to Accepted.evidence_assumptions_unknowns, decision, rollback_reversal, communication_plan, and structured_retrospective map directly to the current decision-record template sections. Leave R3-expanded fields empty only when omitted by rigor/applicability.
</planning_summary_structure><handoff_to_write_decision>
After emitting the <decision_planning_summary> block:
Immediately output a concise, human-readable recap, for example:
Recommend the exact next command, using the confirmed zeroPad4 number:
Next step: run "/write-decision <zeroPad4>" to generate the canonical decision record from this planning context.If the decision is clearly linked to one or more changes (workItemRef), also recommend ensuring that the corresponding change spec front-matter links back to this decision record once created.
For R2/R3 decisions, remind the user that human PR review/approval is required before the record advances to Accepted. Suggest running /review-decision <ID> for independent challenge if appropriate.
Do NOT call /write-decision automatically. The user must trigger this command when ready.
Do NOT output the full decision record template as the final answer; only the <decision_planning_summary> block is treated as the authoritative planning snapshot for downstream commands.
</handoff_to_write_decision>
/plan-decision and says: "We need to decide our long-term message broker strategy (Kafka vs. managed queues)."<decision_planning_summary> for ADR-0004 and suggests: /write-decision 0004.Example 2 — ADR driven by an existing change:
/plan-decision 21 and says: "PDEV-123 introduces a new billing pipeline; we need an ADR for how we model idempotency and retries."<decision_planning_summary> for ADR-0021 with related_changes: ["PDEV-123"] and suggests using /write-decision 0021 next.
What SKILL.md sets; muted values are Claude Code's defaults
sonnetThree short reads, in order
decision-records, adr, architecture-decision, planning, decision-making
npx claudepluginhub juliusz-cwiakalski/agentic-delivery-os --plugin ados20 skills in this plugin
/apply-review-feedbackClassify and apply accepted PR/MR review feedback./bootstrapRun ADOS project inception/checkRun this repo's quality gates script and summarize results via the run-logs-runner./check-fixExecute quality gates, fix any issues found, and create a single high-quality Conventional Commit summarizing all changes made./check-readinessRun the Definition of Ready gate./commitDelegate a single Conventional Commit.Other plugins' skills for the same job