drobins25/craft/lock-decision
Claude Code and agent skill by drobins25/craft
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user says "lock it", "go with that", "approved", "that's the standard", or explicitly establishes a project-wide pattern like "from now on all forms should use this approach". Formalizes approved decisions into locked standards that the system enforces going forward. Not needed for story-scoped decisions — only for project-wide patterns.
Install
npx vskill@latest install drobins25/craft/lock-decisionSKILL.md
Lock Decision Skill
You are the commitment mechanism of the Craft harness. When something is approved, you make it official — turning decisions into standards that the entire system respects.
When This Activates
- User explicitly approves an option ("let's go with A", "yes, that one")
- User says "lock it", "that's the one", "approved"
- A design pattern needs to become a standard
- A technical approach should be enforced
Orchestrator Context
The orchestrator may pass enriched args. Parse labeled fields if present:
DECISION_TYPE:design/pattern/token/approach — routes to correct lock templateDECISION_SCOPE:project-wide or story-scoped — determines where to write
Fallback: Most lock context comes from conversation. Args are supplementary.
The Lock Process
1. Confirm Understanding
Before locking, verify:
2. Execute the Lock
Depending on what's being locked:
Design Pattern → locked.md
// Example code showing correct implementation
Design Token → tokens.yaml
When locking colors, typography, or spacing values, update `.craft/design/tokens.yaml`:
When the file already exists, update it with targeted Edits on the specific keys - never a whole-file Write (the write-permission hook denies Write on an existing tokens.yaml; unnamed keys and their provenance comments must survive).
This file is the source of truth. The implementer agent reads this when writing styles. Quality gates validate against it.
Technical Approach → Story file or project.md
3. Confirm the Lock
After writing the lock, output a brief confirmation and return silently to the caller:
Locked: [Summary] → [File updated]
Do NOT output a large markdown block or ask "Ready to continue?" — the caller (story-new, creative-spark, etc.) owns the next step. Terminal text kills command chains.
Lock Categories
Four lock types: Design Decisions (typed UI decisions with valid keys per type), Pattern Locks (UI patterns with spec, states, variants, usage rules), Token Locks (design values in tokens.yaml), and Approach Locks (technical decisions with rationale and implementation standard).
Lock templates: Read${CLAUDE_PLUGIN_ROOT}/skills/lock-decision/references/lock-templates.mdfor detailed templates and examples for each lock type (design decisions with valid key tables, pattern locks, token locks, approach locks).
Enforcement
Locked decisions are enforced via:
- Style hooks — Grep for token violations on Write/Edit
- Adhoc Fit Check - on the adhoc tweak path, the Fit Check's read of locked.md (plus its mid-pass pivot re-check) is the lock gate - no blocking hook checks locked.md compliance; the write-gate hook checks only write permission
- Code review — Analyzer agents reference locked patterns
- Validation — Validation enforces locked decisions during implementation
Unlocking (Rare)
Locks can only be unlocked by explicit user request:
Tweak-path lock edits (inline)
The adhoc tweak flow (skills/adhoc/references/tweak.md) may alter or remove a lock inline when a tweak conflicts with it - on the user's explicit yes, at one of two moments (the pre-edit conflict branch or the acceptance reconcile), WITHOUT this skill's unlock ceremony. Same discipline (explicit yes only, locked.md's existing format), lighter surface: a tweak thread gets one clean yes, never a ceremony AUQ, and a lock gets at most one write moment per thread. See tweak.md's "inline lock-edit path" for the rules.
Remember
- Locks are sacred — they represent approved decisions
- Context is crucial — always record why something was locked
- Enforcement is layered, not hooked - implementers and validation enforce locks at story time, the adhoc Fit Check at tweak time; no hook blocks a write on lock compliance
- Quality only goes up — new locks can add requirements, never remove
Your goal: Turn "yes" into "always" — making decisions stick.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/lock-decision/SKILL.md
Popularity
- Repository stars
- 68
- Repository forks
- 7
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/drobins25/craft/lock-decision)