spec-first-diff
Use before you change behavior. Links each change to a spec or an ADR.
by crruton★ 15 GitHub stars
Install spec-first-diff in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Spec-first diff
A change without a spec is a guess about what the human wants.
Rules
- Before you change behavior, find the spec (
openspec/,docs/specs/) or the ADR for it. - When no spec exists, write a short proposal first. Wait for approval.
- Put the spec ID or ADR ID in the commit body:
Spec: SPEC-0012orADR: 0007. - Do not change code outside the scope of the spec.
Check before you finish
- The diff touches only the paths of the spec.
- The commit body has the spec ID.
Origin
The agent changed code with no link to a spec. Reviews then had no criteria.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the spec-first-diff skill do?
Use before you change behavior. Links each change to a spec or an ADR.
How do I install the spec-first-diff skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the spec-first-diff skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…