跳到正文
cccskills
免费在 GitHub 公开

decision-analysis

Stress-test a design decision with premortem/backcast analysis, then produce a risk-calibrated recommendation that maps to ADR fields. Use when: (1) Multiple competing architecture options, (2) Irreversible or high-risk design choices, (3) /discuss identifies a complex trade-off

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md7.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Decision Analysis

Stress-test a design decision using premortem (simulated failure) and backcasting (simulated success), then produce a structured recommendation that feeds directly into ADR artifacts.

This skill is a reference skill — called by /discuss during design exploration, not invoked standalone.

Invocation Mode

Reference-only. This skill does analysis and produces structured output for /discuss and adr-writer. It must not create work items, execute lifecycle verbs, perform VCS operations, or write implementation code.

When to Use

Use this analysis when the decision meets any of:

  • 2+ competing options with non-obvious trade-offs
  • Irreversible or hard-to-reverse architectural change
  • Cross-cutting impact (touches 3+ modules or affects external interfaces)
  • Normative RFC finalization with significant design risk

Do not use for: single-option bug fixes, doc-only changes, trivial refactors, or decisions already locked by existing normative RFCs.

Workflow

Step 1: Normalize the Decision

Extract from the discussion context:

  • Decision statement: One sentence describing what must be decided
  • Options: List of alternatives (always include "do nothing / status quo" if relevant)
  • Constraints: Existing RFCs, ADRs, phase requirements, technical limitations
  • Success criteria: What "this worked" looks like in measurable terms
  • Timeframe: Delivery window; infer a reasonable default if unstated

If any unresolved unknown would materially affect option ranking, reversibility, or constraints, ask clarifying questions before proceeding. If the remaining unknowns are minor, proceed with explicit assumptions. Ask at most 2 clarifying questions in one round.

Step 2: Define Scenario Anchors

Write two one-sentence anchors from the end of the timeframe:

  • Failure anchor: What "this went badly" looks like (measurable: regressions, compliance failures, blocked phases)
  • Success anchor: What "this worked well" looks like (measurable: tests green, phase advanced, no spec drift)

Note whether the decision is reversible or irreversible, and whether external dependence is low/medium/high.

Step 3: Premortem (Simulated Failure)

For the top 2-3 viable options, imagine each path fully failed. Generate:

  • Up to 5 internal causes (controllable: implementation choices, spec gaps, testing blind spots)
  • Up to 5 external causes (uncontrollable: dependency changes, upstream breakage, ecosystem shifts)

Make each cause specific and falsifiable. Include govctl-relevant failure modes:

  • Silent deviation from normative RFC (Law 2 violation)
  • Phase discipline breach (impl work during spec phase)
  • Hidden coupling across RFC boundaries
  • Migration or data integrity risks
  • Operational burden or governance overhead

Step 4: Backcast (Simulated Success)

For the same options, imagine each path succeeded strongly. Generate:

  • Up to 5 internal causes (controllable advantages)
  • Up to 5 external causes (tailwinds, timing, ecosystem support)

Include govctl-relevant success drivers:

  • Clean RFC-to-implementation traceability
  • Phase gates caught issues early
  • Strong clause coverage in tests
  • ADR alternatives documented well enough to avoid revisiting

Step 5: Decision Exploration Table

For each cause from Steps 3-4, assign:

CategoryControlReasonProbability (%)ConfidenceImpact (1-5)Early SignalCountermeasure

Calibration guide:

  • 10-19%: Unlikely but possible
  • 20-39%: Somewhat unlikely
  • 40-59%: Moderate likelihood
  • 60-79%: Likely
  • 80-95%: Highly probable

Use numbers, not vague terms.

Step 6: Recommend

Compare the options using the evidence above, rank them, and produce:

  • Verdict: Go, No-Go, or Conditional Go
  • Top option with 1-sentence rationale
  • Must-pass gates before commitment (e.g., govctl check clean, load test threshold, security review)
  • Pivot triggers: conditions that would change the recommendation
  • Smallest validating step: the smallest non-production validation that reduces uncertainty. Prefer design spike, interface sketch, decision matrix, or isolated experiment. Do not implement governed behavior before the RFC is normative and in impl phase.

For Conditional Go, specify exactly what conditions must be met.

Step 7: Mitigation Strategies

2-4 bullet points for each category:

  • Precommitments: Decisions locked now to prevent drift (e.g., "RFC clause X forbids approach Y")
  • Hedging: Feature flags, staged rollout, dual-write, rollback plan
  • Slow-sabotage prevention: Rules that prevent gradual scope creep or silent deviation
  • Setback response: What to do when things go wrong (not "try harder" — concrete next steps)

Step 8: Review Checkpoints

Align with govctl phase gates:

CheckpointPhase GateWhat to MeasureKill CriteriaScale Criteria
Early (before commitment)Before finalize normativeDesign evidence, assumptions, interface feasibilityCore assumptions falsifiedOption remains viable
Mid (implementation)Before advance testgovctl check clean, clause coverageSpec drift detectedAll clauses implemented
Late (release readiness)Before advance stableFull test suite, no regressionsCompliance failuresReady for stable

Output → ADR Mapping

When the analysis is complete, map outputs to ADR fields using the adr-writer skill:

Analysis OutputADR FieldHow to Map
Decision statement + constraintscontextProblem statement and constraints section
Premortem + backcast summariesconsequencesPositive from backcast, Negative from premortem (with mitigations)
Options rankingalternativesEach option with pros/cons from the exploration table
Top option + rationaledecision"We will X because..."
Must-pass gatesdecisionAdd under ### Implementation Notes
Related RFCs/ADRs discoveredrefsLink as references

Compact Mode

If the decision is moderate-risk (only 2 options, single-module scope, reversible), produce a compact analysis:

  1. One-paragraph context with anchors
  2. Abbreviated table (top 3 risks, top 3 levers only)
  3. Verdict with rationale
  4. Key mitigations (2-3 bullets)

Skip Steps 7-8 in compact mode.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Write effective Architecture Decision Records. Use when: (1) Creating a new ADR, (2) Recording a design decision, (3) User mentions ADR, decision, trade-off, or alternatives

中文简介正在准备中。当前显示原文说明。

lucifer1004/typub352026年7月11日 更新

commit

免费

Commit changes with govctl integration — check work item status, update journal or notes, and run govctl check

中文简介正在准备中。当前显示原文说明。

lucifer1004/typub352026年7月11日 更新

discuss

免费

Facilitate design discussion — research context, clarify requirements, draft RFC/ADR

中文简介正在准备中。当前显示原文说明。

lucifer1004/typub352026年7月11日 更新

gov

免费

Execute governed implementation workflow with work items, RFC/ADR checks, phase gates, testing, and closure. Use when: (1) User invokes /gov, (2) A non-trivial change needs work item tracking, (3) Implementation may require RFC/ADR handling

中文简介正在准备中。当前显示原文说明。

lucifer1004/typub352026年7月11日 更新

Write well-structured Verification Guards. Use when: (1) Creating a new guard, (2) Editing guard check commands or patterns, (3) User mentions guard, verification, or check

中文简介正在准备中。当前显示原文说明。

lucifer1004/typub352026年7月11日 更新

migrate

免费

Adopt govctl in an existing project. Discovers undocumented decisions, backfills ADRs/RFCs, annotates source code. Use when: (1) Project has no governance yet, (2) User mentions migrate, adopt, onboard, or brownfield

中文简介正在准备中。当前显示原文说明。

lucifer1004/typub352026年7月11日 更新

查看 lucifer1004 的全部技能

报告此技能的问题