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…
Enforcement layer for chunk and story validation. Invokes the chunk-validator agent (haiku), enforces the verdict, routes failures to refine-chunk or test-fix, captures CLI learnings. The orchestrator invokes this skill — never the agent directly.
$ npx -y skills add drobins25/craft --skill validate-chunk --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/validate-chunkContext preview
The summary Claude sees to decide when to auto-load this skill.
Enforcement layer for chunk and story validation. Invokes the chunk-validator agent (haiku), enforces the verdict, routes failures to refine-chunk or test-fix, captures CLI learnings. The orchestrator invokes this skill — never the agent directly.
name: validate-chunk description: "Enforcement layer for chunk and story validation. Invokes the chunk-validator agent (haiku), enforces the verdict, routes failures to refine-chunk or test-fix, captures CLI learnings. The orchestrator invokes this skill — never the agent directly." version: 4.0.0 allowed-tools: ["Read", "Bash", "Glob", "Grep", "Task", "Skill"]
You are the **enforcement layer** — the single gateway between the orchestrator and validation. You invoke the chunk-validator agent, enforce the verdict, route failures, and capture learnings. The orchestrator never interprets raw validation output — it only sees your structured result.
⛔ **A FAILED verdict is NEVER overridden.** You do not:
**WARN means WARN — not a failure.** Warnings are informational on non-final chunks. They appear in the report but do NOT trigger refine-chunk routing. The agent promotes WARNs to FAILs on the final chunk automatically.
**ALL tests must pass before a chunk or story completes. No exceptions.**
The orchestrator passes enriched args with labeled fields:
**Fallback:** Args may be just a file path. Detect mode and gather context from state files.
Launch the **chunk-validator** agent using the Task tool. The agent runs quality checks and returns a structured report.
Task tool:
subagent_type: "craft:chunk-validator"
model: "haiku"
description: "Validate chunk [CHUNK]"
prompt: "Run validation checks on this project.
CHUNK: [CHUNK value]
FILES_CHANGED: [FILES_CHANGED value]
PROJECT_ROOT: [PROJECT_ROOT value]
PM: [PM value]
STORY_FILE: [STORY_FILE value]
MODE: per-chunk
PLUGIN_ROOT: [resolved ${CLAUDE_PLUGIN_ROOT} - the subagent cannot resolve the variable itself]"**For story-final mode**, set CHUNK to "final":
Task tool:
subagent_type: "craft:chunk-validator"
model: "haiku"
description: "Validate story-final"
prompt: "Run story-final validation checks on this project.
CHUNK: final
FILES_CHANGED: [all files in story, or empty]
PROJECT_ROOT: [PROJECT_ROOT value]
PM: [PM value]
STORY_FILE: [STORY_FILE value]
MODE: story-final
PLUGIN_ROOT: [resolved ${CLAUDE_PLUGIN_ROOT} - the subagent cannot resolve the variable itself]"**NEVER use `run_in_background: true`.** Validation must run synchronously — wait for the agent to complete.
The agent outputs structured markdown. Parse these fields:
| Field | Format | Example | |-------|--------|---------| | Status | `**Status:** PASSED\|FAILED\|PARTIAL` | `**Status:** FAILED` | | Chunk | `**Chunk:** [value]` | `**Chunk:** 2/4: API routes` | | Mode | `**Mode:** per-chunk\|story-final` | `**Mode:** per-chunk` | | Fix count | `**Fix count:** N` | `**Fix count:** 0` | | Errors | `**Errors:**` section with structured error blocks | See below | | Warnings | `**Warnings:**` section with structured warning blocks | See below |
**Error block format** (may have multiple):
- **Check:** [check name] - **Type:** [type-error|lint-error|build-error|test-failure|verified-gate-error|citation-leak] - **File:** [file path] - **Line:** [line number or -] - **Message:** [error message] - **Pattern:** [generalized pattern]
**Warning block format** (may have multiple):
- **Check:** [check name] - **Type:** [lint-warning|any-type-warning|token-warning|verified-gate-warning|rot-warning] - **File:** [file path] - **Line:** [line number or -] - **Message:** [warning message]
Phase 3 (verdict routing) and Phase 4 (CLI error detection) run independently - order doesn't matter. Phase 4 never changes the verdict. Phase 5 (event emission) always runs last.
**Gate reconcile beat (both per-chunk branches):** Read `${CLAUDE_PLUGIN_ROOT}/commands/references/gate-reconcile.md` and run it inline (NOT via the Skill tool) BEFORE complete-chunk.sh. Steady state (Gates row `full coverage`, no rot-warnings) exits silently; an uncovered undecided signal gets the offer AskUserQuestion (accept wires it; decline is risk-confirmed then permanently silent; no answer stays pending for the next attended PASS). Never fires on FAILED.
Per-chunk mode (non-final):
cat > "${CRAFT_PROJECT_ROOT:-.}/.craft/.continuation" << CRUMB
ACTION: Continue implementation loop - checkpoint, then implementer for next chunk, then validate-chunk
SKILL: craft:craft-story-implement
ARGS: Continue from chunk ${CHUNK} - next chunk ready
WRITTEN_BY: validate-chunk
TIMESTAMP: $(date -u +%Y-%m-%dT%H:%M:%S)
CRUMBPer-chunk mode (final chunk):
Stop Vibing. Start Crafting. A Claude Code plugin that acts as an intelligent harness for your development workflow: your codebase is read-only by default, every change passes through a Write Gate as planned and approved work, and craft tracks your project's
Repo: drobins25/craft
Adhoc workflow for small targeted changes to existing behavior or appearance, without the full story ceremony. Use when the orchestrator encounters a bug with…
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…
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.
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…
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…
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…