审查决策

tomzx2026-10-26查看 202复制 1339

审查决策记录,检查其清晰度、完整性、推理质量和后果覆盖范围。

Download (.md)

📘如何使用这个技能

  1. 1
    复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
  2. 2
    打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
  3. 3
    粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
  4. 4
    直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景

💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。

SKILL.md3494 chars
---
name: review-decision
description: Review a decision record for clarity, completeness, reasoning quality, and consequence coverage.
argument-hint: "[decision document or file path]"
---

# Review Decision

Audits a decision record and reports findings across four categories: clarity, completeness, reasoning quality, and consequence coverage.

## Prerequisites

- Apply the shared SDLC conventions in `skills/sdlc/references/shared.md`.
- `.sdlc/knowledge/decisions/N-<slug>.md`, or a decision document provided in context or as a file path

## Steps

1. Read the decision document.
2. Evaluate it against the checklist below.
3. Report findings by category. Omit categories with no findings.
4. After the review, update `status` in frontmatter to the appropriate value: `Accepted`, `Deprecated`, or `Superseded by [N]`.

## Review Checklist

### Clarity
- Is the decision stated as a specific, unambiguous choice (not a direction or intent)?
- Is the title a noun phrase that names the decision, not just the topic?
- Is the status field present and accurate (Proposed / Accepted / Deprecated / Superseded)?

### Completeness
- Is the context section present and does it explain what problem or question prompted the decision?
- Are at least two options described, including the one chosen?
- Does each option have at least one pro and one con?
- Are trade-offs (gained vs. sacrificed) explicitly stated?

### Reasoning Quality
- Does the reasoning connect the context and constraints to the chosen option?
- Are pros/cons specific to this situation rather than generic statements?
- Is it clear why the chosen option was preferred over the alternatives?
- Are any options dismissed without justification?

### Consequence Coverage
- Are the practical effects on the codebase or process described?
- Are follow-up decisions or deferred work identified?
- Are risks introduced by this decision acknowledged?

## Output Format

```markdown
## Clarity

<Findings or "No issues found.">

## Completeness

<Findings or "No issues found.">

## Reasoning Quality

<Findings or "No issues found.">

## Consequence Coverage

<Findings or "No issues found.">
```

## Outcome

If `$OUTCOME_YAML` is set, emit your verdict there per `skills/sdlc/references/shared.md`:

| Verdict | When |
|---|---|
| `approved` | No blocking findings; the subject passes review |
| `changes-requested` | Findings the author must address before it passes |
| `rejected` | Fundamental flaw requiring rework or stopping |

In the same emission, list the record under `artifacts:` when the review changed it (for example a status transition or a recorded answer).

## Example Usage

**Scenario 1: Vague decision statement**
Decision title is "Database approach" and the decision section says "we'll use PostgreSQL where appropriate."
Report under Clarity: the decision must state specifically what was chosen and for what purpose.

**Scenario 2: Single option considered**
Only the chosen approach is listed; no alternatives are documented.
Report under Completeness: at least one alternative must be described so future readers understand what was ruled out.

**Scenario 3: Unjustified dismissal**
Option B is listed but has no pros and only one con, with no explanation of why it was rejected.
Report under Reasoning Quality.

**Scenario 4: No follow-up captured**
A decision to use a flat-file config acknowledges it won't scale but records no follow-up task to revisit the choice.
Report under Consequence Coverage.
来源:skillsdirectory

评论0

登录后参与评论

还没有评论,来抢沙发吧