AGENT SKILL

decide

Draft and commit a decision record for a design or architecture choice made in this session, once it has survived implementation. Use at ship time, right before opening the pull request, when the branch made a decision worth recording.

License 许可
BSD-3-Clause
所属仓库
urban233/Canon
最近更新
2026-10-01
Stars
★ 1
Forks
0

01 前言 Front Matter

name
decide
description
Draft and commit a decision record for a design or architecture choice made in this session, once it has survived implementation. Use at ship time, right before opening the pull request, when the branch made a decision worth recording.

03 SKILL.md 正文

Decide

Does this decision earn a record?

Both of these must be true:

  • An alternative was seriously considered -- not just the obviously correct way of doing something.
  • The consequence outlives this branch.

If either half is false, there's nothing to record -- the choice just happened, it wasn't decided.

When

At ship time, once the decision has survived contact with the implementation -- never when it was first proposed. A decision that got reversed during implementation or review never becomes a record; it was a draft opinion, not something to archive.

If the branch's plan, or its parent feature plan, already carries a ## Decisions entry for this, promote that one rather than treating it as new.

What to write

Pick the next number: list docs/decisions/ for the highest NNNN-*.md prefix and add one, zero-padded to four digits (0001 if the directory doesn't exist yet). Slug the title in kebab-case.

Write docs/decisions/NNNN-slug.md in the familiar Nygard shape:

# NNNN. <Title>

## Context

What prompted this decision -- the problem, the constraint, the forces
in tension.

## Decision

What was chosen, stated plainly.

## Consequences

What this makes easier, what it makes harder, and what it forecloses.
Include the rejected alternative and why it lost -- that's the part a
transcript loses and a repository keeps.

No Status: field, and no supersession mechanism. If a later decision reverses this one, the new record says so in its own ## Context with a plain reference back to this file; this file is never edited.

Committing it

Write the file; don't commit it separately. It rides inside whatever commit the branch already makes next, the same way a saved plan does -- Canon never authors a commit of its own.

04 同仓库更多 Skills

urban233
urban233/Canon

testing-craft

Provides Google-derived testing strategy, test-writing craft, and test-suite health reference, distilled from Software Engineering at Google (the Flamingo book), the Google Testing Blog, and Google's published testing-infrastructure research. Canon's `reviewer` subagent reads the writing-craft and strategy references as review criteria. Invoke directly to design a test strategy, audit an existing suite's health, or triage a flaky or brittle test.

★ 1
urban233
urban233/Canon

ship

Decide whether a change is ready to hand to a human, and open the pull request when it is. Use once the work is done and verified, before opening a PR or telling the developer the change is ready.

★ 1
urban233
urban233/Canon

review

Dispatch Canon's independent reviewer subagents for this branch and read their verdicts back from canon_review. Use once a change is built and verified, before shipping. This skill only dispatches and reads back -- the review itself runs inside the subagent, in a fresh context, and never in this session.

★ 1
urban233
urban233/Canon

review-change

暂无简介

★ 1
urban233
urban233/Canon

plan

Shape what plan mode drafts, so the plan Canon saves needs no follow-up. Use whenever drafting a plan for approval in plan mode, before writing it to .canon/plans/.

★ 1
urban233
urban233/Canon

frame

Surface the open questions before planning a multi-branch feature, and shape the feature plan mode drafts. Use before entering plan mode for work that obviously won't fit in one branch and one pull request -- never for a change that already does.

★ 1