본문으로 건너뛰기
cccskills
무료GitHub에 공개

lock-decision

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md5.7 KB
  • references/lock-templates.md2.8 KB

SKILL.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 template
  • DECISION_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:

## Locking Decision

**Decision:** [Clear statement of what's being locked]

**Context:** [Why this decision was made]

**Applies to:** [Where this standard will be enforced]

Is this correct? Once locked, this becomes a project standard.

2. Execute the Lock

Depending on what's being locked:

Design Pattern → locked.md

## [Pattern Name]

**Locked:** [Date]
**Context:** [Why this was approved]

### Specification

[Detailed description of the pattern]

### Implementation

```tsx
// Example code showing correct implementation

Variations

  • [Allowed variation 1]
  • [Allowed variation 2]

Not Allowed

  • [Anti-pattern 1]
  • [Anti-pattern 2]

#### 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).

```yaml
colors:
  primary: "#6366F1"  # Locked: [Date] - [Context]
  surface: "#FAFAFA"

typography:
  font-sans: "Inter, -apple-system, sans-serif"

spacing:
  base: 8  # Locked: [Date]

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

## Technical Decision: [Title]

**Locked:** [Date]
**Decision:** [What was decided]
**Rationale:** [Why this approach]
**Alternatives Considered:** [What we didn't choose and why]

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.md for 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:

  1. Style hooks — Grep for token violations on Write/Edit
  2. 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
  3. Code review — Analyzer agents reference locked patterns
  4. Validation — Validation enforces locked decisions during implementation

Unlocking (Rare)

Locks can only be unlocked by explicit user request:

## Unlock Request

**Pattern:** [What's being unlocked]
**Reason:** [Why the lock should be removed]
**Proposed Change:** [What will replace it]

⚠️ This will remove enforcement. Are you sure?

Options:
1. Unlock and replace with new standard
2. Unlock temporarily for this story only
3. Keep locked, find another approach

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.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

adhoc

무료

Adhoc workflow for small targeted changes to existing behavior or appearance, without the full story ceremony. Use when the orchestrator encounters a bug with a clear root cause and surgical solution, OR a small enhancement to something already built (a different icon, wording, spacing, color). Triggers on: 'fix this', 'this is broken', 'the alignment is off', 'that button doesn't work', 'quick fix', 'patch this', 'tweak this', 'change the icon', 'adjust the wording', post-story corrections, or any situation where the write gate blocks a small targeted change. Acts NOW - a defect to file and fix later belongs in /craft:bugs, other deferred work in the notebook. Do NOT use for new features, design exploration, or changes requiring creative spark.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

drobins25/craft692026년 10월 19일 업데이트

approve

무료

Request write permission from the user before making file changes. MUST be invoked before any write attempt when the write gate is closed. Creates scoped approval via AskUserQuestion + TaskCreate, opens the write gate, and closes it when work is done. Triggers: write hook blocks an edit, agent is about to write files outside .craft/, agent needs to modify project source files. This skill requires user approval 100% of the time - never bypass AskUserQuestion.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

drobins25/craft692026년 10월 19일 업데이트

browser

무료

Interactive browser automation via playwright-cli. Use when you need to navigate a site, click elements, fill forms, take snapshots, or triage a live app.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

drobins25/craft692026년 10월 19일 업데이트

This skill should be used when a story has been captured but content direction is unresolved - the spark describes WHAT to build structurally but not WHAT goes in it. Reads the story spark, splits it into Resolved (structurally clear) vs. Assumed (would have to guess) content dimensions, and surfaces each assumption for the human to confirm, correct, or expand. Also classifies implementation risk tags (has-variants, has-data-pipeline, has-animation, has-touch-targets, diverges-from-existing) so plan-chunks translates them into acceptance criteria that name the implementation mechanism. Captures answers into

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

drobins25/craft692026년 10월 19일 업데이트

This skill should be used when the user asks to "brainstorm", "explore options", "get creative", "what if we...", or selects "Let's get creative" during story or cycle creation. NOT for a bare vague feature idea where generating options would mean inventing the premise first - that routes to /craft:riff (riff first, options after). Generates 3-4 creative options with trade-offs, visual direction for UI stories, and wireframes.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

drobins25/craft692026년 10월 19일 업데이트

Use this skill when the user wants to discover, define, or refine their product's aesthetic identity. Triggers on "what should this feel like?", "help me figure out the vibe", "something feels off visually", "I want it to feel like [X]", "define the visual language", or when a project has no established design direction. This is the art director skill - it helps users articulate something they can feel but can't name. Also handles quick cohesion checks when the orchestrator needs one during cycle planning.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

drobins25/craft692026년 10월 19일 업데이트

drobins25의 스킬 모두 보기

이 스킬의 문제 신고