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

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.

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

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Write Approval

You are requesting permission to write files. This skill gates ALL writes outside .craft/ and .claude/ directories. It requires explicit user approval every single time - no exceptions, no bypass, no auto-approve.

When to Use

Call this skill BEFORE your first write attempt when:

  • The write hook has blocked you (or will block you)
  • You're about to modify project source files
  • You're about to create new files outside .craft/
  • Any workflow stage involves writing to the project

Do NOT call this for writes to .craft/ or .claude/ directories - those are always allowed.

The Flow

Step 1: Describe the Scope

Before asking for approval, gather what you're about to do. Be specific:

  • Which files will be created or modified
  • What changes will be made (brief, not the full diff)
  • Why (what triggered this - workflow stage, fix, feature work)

Step 2: Ask for Approval (MANDATORY)

Use AskUserQuestion. This step CANNOT be skipped. Ever.

question: "I need write access to make these changes. Approve?"
header: "Write Access"
options:
  - label: "Approve"
    description: "{summary of what will be changed}"
  - label: "Deny"
    description: "Block these changes"
  - label: "Modify scope"
    description: "I want to adjust what's allowed"

If "Deny" -> Stop. Do not open the gate. Report to the caller that writes were denied.

If "Modify scope" -> Let the user describe the adjusted scope. Re-present the AskUserQuestion with the new scope. Loop until approved or denied.

If "Approve" -> Continue to Step 3.

Step 3: Create Approval Tasks

Create exactly two tasks:

Task 1 - The approved work:

TaskCreate({
  subject: "Approved: {brief description of changes}",
  description: "Files: {file list}. Scope: {what was approved}.",
  activeForm: "Writing approved changes"
})

Set this task to in_progress immediately.

Task 2 - Close the gate:

TaskCreate({
  subject: "Close write gate",
  description: "Set CRAFT_WRITE_ENABLED='' after approved work is done.",
  activeForm: "Closing write gate"
})

Set addBlockedBy to Task 1's ID so it can't complete before the work is done.

Step 4: Open the Gate

Run via Bash:

${CLAUDE_PLUGIN_ROOT}/hooks/scripts/update-global-state.sh CRAFT_WRITE_ENABLED true

The write gate is now open. The agent can write files.

Step 5: Do the Work

The caller (workflow, fix skill, implementer, etc.) performs the approved changes. As work completes, the approved-work task stays in_progress.

This skill does NOT do the writing itself. It opens the gate and returns control to the caller. The caller writes, then calls back to close.

Step 6: Close the Gate

When the approved work is done, the caller MUST close the gate:

  1. Mark the approved-work task as completed:
TaskUpdate({ taskId: "{task-1-id}", status: "completed" })
  1. Close the write gate:
${CLAUDE_PLUGIN_ROOT}/hooks/scripts/update-global-state.sh CRAFT_WRITE_ENABLED ""
  1. Mark the close-gate task as completed:
TaskUpdate({ taskId: "{task-2-id}", status: "completed" })

Safety Rules

  1. AskUserQuestion is mandatory. Every invocation. No exceptions. If the skill is called 5 times in a session, the user is asked 5 times.
  2. Scope is enforced by visibility. The user sees exactly what was approved via the Task description. If the agent writes files outside the approved scope, that's visible in the task trail.
  3. Gate closes explicitly. The gate does not auto-close on a timer. The caller must close it. If the session ends with the gate open, session-start.sh will detect CRAFT_WRITE_ENABLED=true with no active story/workflow and reset it.
  4. No nesting. If the gate is already open (from a story or another approval), this skill is not needed. Check first:
grep "CRAFT_WRITE_ENABLED" "${CRAFT_PROJECT_ROOT:-.}/.craft/.global-state"

If already true, skip this skill.

리뷰

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

댓글

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

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

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. 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/craft682026년 10월 18일 업데이트

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/craft682026년 10월 18일 업데이트

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/craft682026년 10월 18일 업데이트

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/craft682026년 10월 18일 업데이트

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/craft682026년 10월 18일 업데이트

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.

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

drobins25/craft682026년 10월 18일 업데이트

drobins25의 스킬 모두 보기

이 스킬의 문제 신고