recording-change-intent
БесплатноБез исполняемых скриптовНе проверенRequires an externalised rationale for high-risk changes - new public exports, new endpoints, auth edits, migrations, removed guards - recorded as an Intent…
от jaktestowac★ 124 звезды на GitHubОб этом скилле
Recording Change Intent
Use this skill when a change carries risk and the reason for it exists only in someone's head, a chat thread, or a ticket nobody will find again.
Tests prove a change works. Coverage proves it was executed. Neither records why it was made, which constraint forced the odd shape, or what was considered and rejected. That is intent debt, and it is the one debt an agent structurally cannot pay down: a coding agent can write the implementation, the tests, and the docs, but it cannot supply the human reason the work was commissioned. As AI-assisted output grows, intent debt grows with it while every other quality signal keeps looking healthy.
The fix is small and unfashionable: on high-risk changes, require the rationale to be written down somewhere durable and linked to the change.
When to Use
- an AI-assisted or agent-generated change touches auth, money, schema, or public surface
- reviewers routinely ask "why is this like this" and nobody knows
- a codebase's decisions live in closed tickets and departed colleagues
- a per-change gate needs an intent check next to its test and coverage checks
- an ADR practice exists but nothing links ADRs to the commits that implement them
- a post-incident review cannot reconstruct why a change was made
Operating Principles
- Intent is why, not what. The diff already says what changed.
refactor: extract computeRefundis a restated diff, not a rationale. - Only high-risk surface needs it. Demanding a rationale on every typo fix trains people to write filler, and filler is worse than silence because it looks like compliance.
- A human writes it. An agent can draft it from context and must hand it to a human to confirm or replace. A generated rationale nobody read is intent theatre.
- Durable and linked. In the commit, in an ADR the commit references, or in a register keyed by module. Not in a PR description that a squash-merge will discard, and not in chat.
- A malformed record is not a missing one. Report them differently: one needs writing, the other needs fixing, and conflating them makes the gate feel arbitrary.
- Two layers, different strengths. Fast advisory feedback at commit time; real enforcement at push or CI. Fast feedback that blocks gets disabled; enforcement that is bypassable gets bypassed.
- Constraints and rejected alternatives are the valuable part. "Why not the obvious way" is what a future reader actually needs.
Workflow
Phase 1: Decide whether this change needs a rationale
Take the tags from scoping-change-relevance, or apply the rules in ./resources/high-risk-surface-rules.md directly. High-risk surface is:
- a new public export - a new capability other code can now call
- a new endpoint or externally reachable operation
- a modified auth path - anything touching who can do what
- a schema or migration change, especially an irreversible one
- a removed guard, removed validation, or removed test
- a new external dependency or call that adds a failure mode
- a change to a module the contract marks
critical-path
Everything else: no rationale required. Say so explicitly, so the gate is visibly proportionate rather than universally nagging.
Phase 2: Check what rationale already exists
Any one of these covers the change:
| Mechanism | Looks like | Best for |
|---|---|---|
Intent: trailer |
free-text rationale in the commit message trailer block | the normal case |
Intent-Ref: trailer |
ADR-0042, QA-431, or a URL |
a decision already written down elsewhere |
| ADR | a document in docs/adr/ that this change implements |
architectural decisions with alternatives |
| Module intent register | an entry in .qa/intent.md covering these paths |
stable module-level "why this exists" |
| Intent waiver | a path-scoped register entry | genuinely mechanical high-risk changes (bulk renames, codegen) |
git log <base>..HEAD --format='%H%n%B' # read the whole message, trailers included
git log <base>..HEAD --format='%(trailers:key=Intent,valueonly)'
git log <base>..HEAD --format='%(trailers:key=Intent-Ref,valueonly)'
Trailers are the standard Key: value block at the end of a commit message - the same mechanism as Signed-off-by:. No tooling, no external service, and they survive rebase and squash if written into the final message. See ./resources/intent-trailer-spec.md.
Phase 3: Classify each high-risk change
| Status | Meaning | Action |
|---|---|---|
| Covered | a valid rationale covers this surface | nothing |
| Undeclared | high-risk surface, no rationale anywhere | write one |
| Malformed | a trailer exists but fails its rule - too short, unresolvable ref, wrong key | fix it, and quote the exact problem |
| Restated diff | a rationale that only says what the diff says | rewrite it; this is the most common failure |
| Waived | covered by a path-scoped intent waiver |
Установить recording-change-intent в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл recording-change-intent?
Requires an externalised rationale for high-risk changes - new public exports, new endpoints, auth edits, migrations, removed guards - recorded as an Intent commit trailer, an ADR reference, or a module intent register, and reports high-risk changes that carry none. Use when agent-generated or AI-assisted changes ship without a recorded why, when reviewers cannot tell what a diff was for, when a codebase is losing its decision history, or when setting up an intent gate alongside test and coverage gates.
Как установить скилл recording-change-intent?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл recording-change-intent запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic