drobins25/craft/approve
Claude Code and agent skill by drobins25/craft
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install drobins25/craft/approveSKILL.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.
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:
Set this task to in_progress immediately.
Task 2 - Close the 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:
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:
- Mark the approved-work task as
completed:
- Close the write gate:
- Mark the close-gate task as
completed:
Safety Rules
- AskUserQuestion is mandatory. Every invocation. No exceptions. If the skill is called 5 times in a session, the user is asked 5 times.
- 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.
- 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.shwill detect CRAFT_WRITE_ENABLED=true with no active story/workflow and reset it. - No nesting. If the gate is already open (from a story or another approval), this skill is not needed. Check first:
If already true, skip this skill.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/approve/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/approve)