Command Palette

Search for a command to run...

Back to skills
skill № 19863

spec-first-diff

Use before you change behavior. Links each change to a spec or an ADR.

FreeNo executable scripts
crrutonby 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
Sign up freeI already have an account

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-0012 or ADR: 0007.
  • Do not change code outside the scope of the spec.

Check before you finish

  1. The diff touches only the paths of the spec.
  2. 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

Compare spec-first-diff with