/craft:adhocfrom craft
Handles small targeted changes to existing behavior or appearance without full story ceremony. Classifies work as fix (restoring broken behavior) or tweak (adjusting existing visuals/wording) and runs the matching flow.
Ships in craft. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are the orchestrator making a small targeted change. No implementer agent, no chunks, no story ceremony. A fix goes to the smith agent for the work itself, and a tweak you run inline. Adhoc work comes in two flavors: a fix (something is broken and you can see why) and a tweak (something works as built, but the user wants it different). This shell classifies which one you're holding, then runs the matching flow from its reference file.
The full story ceremony is right for features and complex work. But when a button doesn't respond - or a shipped icon just isn't the one the user wants - spinning up that machinery wastes time and adds no value. Fixes and tweaks need different treatment: a fix is gated on root-cause confidence ("will it work"), a tweak on visual fit ("will it fit"). Both leave permanent records for pattern analysis, in separate corpora.
Active story check: If CURRENT_STORY is set in .global-state, warn: "There's an active story ([name]). Apply this change within that story's scope, or complete/pause the story first." The open in Step 3 leaves a story's gate as it is, so a story's gate is never replaced by adhoc's.
No new features: Adhoc work changes something that already exists. If the solution adds something that wasn't there before (a new component, a new API endpoint, a new element on the page), it's a story.
No design exploration: If the change requires choosing between creative directions, it's a story (or design-vibe). Adhoc executes a known intent.
Apply the tie-breaker:
# Open this session's write gate
${CLAUDE_PLUGIN_ROOT}/hooks/scripts/write-gate.sh open adhoc
Once the fix or tweak record exists, its path goes on the gate with write-gate.sh open adhoc "<record path>" (the flow files say when), so the status line can say Fix or Tweak. The gate stays open for the whole work thread - including follow-up requests and tweak attempt loops - and closing it at Step 6 is yours to do; the status line shows "write gate open" until you do.
Read the matching reference file and execute it inline (never via the Skill tool):
${CLAUDE_PLUGIN_ROOT}/skills/adhoc/references/fix-handoff.md and follow it. The smith agent runs references/fix.md; you keep Steps 1 to 3, 5 and 6 here and the todo detection below.${CLAUDE_PLUGIN_ROOT}/skills/adhoc/references/tweak.mdThe reference owns the record file, the gate question (confidence vs fit), the edits, and validation. It hands back here for each commit.
Soft scope check (tweaks only, because a tweak runs in this session; a fix has no file limit): If you find yourself touching 5+ files, pause and tell the user: "This is touching [N] files - that's getting bigger than a typical adhoc change. Want me to continue or create a story?" Let them decide.
Runs after each validated set of edits (a fix's single pass, or each tweak attempt). Stage ONLY the files the change touched - never the whole tree. The staged set comes from the record file's files_changed; if that list is empty or stale, fall back to git diff --name-only HEAD so real changes are never silently dropped. For a fix the smith agent ran, files_changed is a count, so the staged set is the paths on the record's Solution Files lines, after the checks in references/fix-handoff.md.
cd "${CRAFT_PROJECT_ROOT:-.}"
# Stage each file from the record's files_changed list
git add -- [path from files_changed] [path from files_changed] ...
# Fallback ONLY if files_changed is empty or 0: stage the tracked changes
# git diff --name-only HEAD | while IFS= read -r f; do git add -- "$f"; done
git diff --cached --quiet || git commit -m "fix: [short description]" --no-verify
Do NOT use git add -A or git add . - either would sweep unrelated untracked files (scratch files, local configs, secrets) into the commit.
Commit message prefix: fix: for fixes, tweak: for tweaks. Example: tweak: settings icon swapped to hammer, matching toolbar stroke weight.
At thread end - the fix validated, escalated or left uncommitted, or the tweak record reached accepted/abandoned/escalated, or the user has visibly moved on, or a fix hand-off ended any other way (blocked, no report, dropped):
# Close this session's adhoc hold on the write gate; it also drops an adhoc line
# waiting under a story, and never touches a gate another holder keeps
${CLAUDE_PLUGIN_ROOT}/hooks/scripts/write-gate.sh close adhoc
A tweak record left status: open does NOT keep the gate open - the record's openness is bookkeeping in .craft/tweaks/; the gate closes with the thread. Cross-session state lives ONLY in the record.
Adhoc work sometimes does exactly what an open notebook todo asked for - and today nobody notices, so the todo stays open forever. This section defines the shared detection mechanism ONCE; both flavor references point here and own only their consent surface (fix.md Step 7, tweak.md Step 2 + Step 3).
When it runs: at record-write time, on every fix and every tweak. Always-on - never judgment-gated, and never a codebase scan. One cheap call:
bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/notebook-list.sh todos
The match is a semantic content judgment, not a string match: does the work this record describes satisfy what the todo asks for? It is the same read the notebook's graduate/done flows already make (commands/craft-notebook.md, Lifecycle Trigger Framework). Judge the record's subject - a fix's symptom/root cause, a tweak's request/surface - against each open todo's PREVIEW.
Named-referent discipline, by match arity (ported from craft-notebook.md; the silent-close prohibition carries over unchanged):
The close call (only after the flavor's consent surface says yes):
bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/notebook-done.sh "<todo-file>" "<record-name>"
<todo-file> is the FILE the list emitted for the matched todo; <record-name> is this record's name: frontmatter value. It lands in the todo's graduated_to: - the same generic artifact ref the notebook graduate flow writes.
The receipt - stamped on EVERY run: write satisfied_todo: into the record's frontmatter at the beat, every time it runs:
satisfied_todo: <todo-slug> when a todo was closedsatisfied_todo: none-matched when the beat ran and nothing closed (zero matches, declined consent, or abandoned disambiguation)A record whose satisfied_todo: is missing or empty means the beat never fired - an auditable skip, not a valid state. (Mirrors the mockup record's stamp-every-beat schema.)
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub drobins25/craft --plugin craft11 skills in this plugin
/approveRequest 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 and a printed approval line, 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./browserInteractive browser automation via playwright-cli. Use when you need to navigate a site, click elements, fill forms, take snapshots, or triage a live app./content-sparkThis 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/creative-sparkThis 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./design-vibeUse 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./lock-decisionThis 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.Other plugins' skills for the same job