change-record
Skill0 starsChanged 10 days agoMITView on GitHub
Use when writing or updating a docs/changes file, when a commit is blocked by the tier gate, or when setting up .agent-gate. Covers the change-file template, the commit-msg gate rules, Tier and Change trailers, and what to do when the gate blocks.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- examples/CLAUDE.mdCLAUDE.md
- api-and-interface-designSkill
- backlogSkill
- c4-architectureSkill
- ci-cd-and-automationSkill
- competitive-briefSkill
- documentation-and-adrsSkill
- frontend-designSkill
- frontend-ui-engineeringSkill
- git-workflow-and-versioningSkill
- oss-release-readinessSkill
- performance-optimizationSkill
- security-and-hardeningSkill
- shipping-and-launchSkill
- synthesize-researchSkill
- user-researchSkill
- ux-copySkill
- webapp-testingSkill
- web-visual-designSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 56
Every commit needs Tier: T0-T3.
- Very specific: line 58
Every commit: front matter tier matches the trailer and status is valid.
- Distinctive: line 60
Every component exists in ARCHITECTURE.md's YAML.
- Very specific: line 61
If ## 行為改變 is non-empty, ARCHITECTURE.md must have changed within the change.
- Very specific: line 62
Every evidence path:line points into this change's diff and is not a doc file.
- Very specific: line 70
Run the test command in the foreground, as a single command (no pipes, ;, &&), in a form that matches .agent-gate test_commands, from the …
- Very specific: line 89
do not lower the Tier or edit gate files (.agent-gate, hooks, evidence log).
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Change Record
A change file is the handoff record for one change (not one commit): what changed, why, and how it was verified. It lives at docs/changes/YYYY-MM-DD-<slug>.md. The gate (gate.py, a git commit-msg hook) only runs in repos that have .agent-gate, and only for Claude sessions.
Template
The four headings stay in Chinese; the gate and readers expect them.
---
tier: T2 # T2 | T3
status: partial # proposed | partial | done | abandoned
components: [api, auth] # component ids from ARCHITECTURE.md
evidence: # path:line inside this change's diff
- src/auth.py:42
verified_by:
- pytest tests/test_auth.py # at least one must match test_commands
- "manual: localhost 登入成功" # machine cannot verify; highlighted
reviewed_by: [fresh-context subagent]
supersedes: []
---
## 為什麼
## 行為改變
## 決策(含 Rulings)
## 沒做/已知限制Fields
tier: T2 or T3, equal to the commit'sTier:trailer.status: one of the four values above.components: ids that exist in the YAML of ARCHITECTURE.md.evidenceandverified_by: write them as block lists (- itemlines). The parser splits inline[a, b]lists on commas, so a command containing a comma breaks.evidence: eachpath:linemust fall inside this change's diff and must not be a doc file.verified_by:manual:entries are allowed but never count as test evidence.reviewed_by: who reviewed; must be non-empty ondone.- A
donechange is history: do not edit it afterwards. When a superpowers SDD ledger is deleted at the end, copy its Rulings into## 決策first.
.agent-gate
TOML at the repo root. Its presence turns the gate on.
test_commands = ["pytest", "uv run --isolated --no-project --python 3.13 pytest"] # prefix match
sensitive = ["**/auth/**", "**/payments/**", "migrations/**"] # touching = at least T2
architecture = "docs/architecture/ARCHITECTURE.md" # default if omittedGate rules (commit-msg)
- File classes (matched by path segment, so
inspect.pyis not a test): docs (*.md,*.rst,*.txt,docs/), low-risk config (other json/yaml/yml/toml/ini/cfg), high-risk (all of.github/,.gitlab-ci.yml,.circleci/, dependency manifests and lockfiles,.claude/,.agent-gate, and.agent-gatesensitiveglobs), tests, source (everything else). - Every commit needs
Tier: T0-T3. T0: docs, low-risk config or pure renames only. T1: at most one modified non-test source file, no new source files, no high-risk paths. Otherwise it is T2. - T2/T3 need
Change: docs/changes/<file>.md, and the file must exist in the index. The change filetiermust be T2 or T3 and equal the commit's Tier. Every commit that belongs to a T2/T3 change carries that change's Tier and Change trailers. While any change isproposedorpartial, every commit touching source or test files must carryChange:, whatever its Tier. - Every commit: front matter
tiermatches the trailer andstatusis valid. - Full verification runs only on the commit that sets
status: done. "This change" means the cumulative diff from the parent of the commit where the change file first appeared up to the index.- Every component exists in ARCHITECTURE.md's YAML.
- If
## 行為改變is non-empty, ARCHITECTURE.md must have changed within the change. If there is no behavior change, leave## 行為改變empty (the empty heading stays visible to the human reviewer). - Every
evidencepath:linepoints into this change's diff and is not a doc file. verified_byhas at least one entry matchingtest_commands, and a successful recorded test run tested exactly the code being committed. Re-run the tests after the final code edit, from the repo's own directory as the session working directory.reviewed_byis non-empty and a subagent was dispatched whose prompt contains the change file's path, and the dispatch happened at or after the commit that first added the change file.- T3 also needs a non-empty
## 決策section.
- Merge commits: only the
Tier:trailer is checked, and it is required (git merge -m "...\n\nTier: Tn"; a bare merge commit is blocked).
How to make evidence count:
- Run the test command in the foreground, as a single command (no pipes,
;,&&), in a form that matches.agent-gatetest_commands, from the repo as the session working directory. - The reviewer dispatch prompt must contain the repo-relative forward-slash path
docs/changes/<file>.md.
Trailer format (also in git-workflow-and-versioning):
Tier: T2
Change: docs/changes/2026-11-04-login.mdReviewer evidence
Give the fresh-context reviewer only the diff and the requirement, with the change file's path in the prompt. Every conclusion it returns must cite path:line or a command that was actually run. Drop conclusions without either.
When the gate blocks
The first stderr line is gate: blocked (see skill change-record), followed by one reason per line. Fix only what the reasons list (add the trailer, fill the field, re-run the tests) or stop and ask the user. Never work around it:
- no
--no-verify, nocore.hooksPath, no changingCLAUDE_CODE_CHILD_SESSION; - do not lower the Tier or edit gate files (
.agent-gate, hooks, evidence log); - the PreToolUse hook also blocks
git cherry-pick,revert,rebase,am,commit-treeandupdate-ref; ask the user to run those.
The user's own terminal commit is the only legitimate bypass.
待人工確認
At the end of a T2/T3 reply (and the first paragraph of a PR description), list what the machine could not verify. Highlight only: every manual: item, reviewed_by, and any retro warning from the PreToolUse hook (earlier commits missing Tier:).
待人工確認
- manual: localhost 登入成功
- reviewed_by: fresh-context subagent(只證明有派發,不證明審得好)
- 警告: abc1234 缺少 Tier trailerDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

