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…
This skill should be used when validate-chunk reports errors or failures, when the user asks to "fix these errors", "resolve validation issues", "refine this chunk", or when specific build, lint, or type errors need surgical fixes. Makes precise, targeted edits to resolve
$ npx -y skills add drobins25/craft --skill refine-chunk --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/refine-chunkContext preview
The summary Claude sees to decide when to auto-load this skill.
This skill should be used when validate-chunk reports errors or failures, when the user asks to "fix these errors", "resolve validation issues", "refine this chunk", or when specific build, lint, or type errors need surgical fixes. Makes precise, targeted edits to resolve
name: refine-chunk description: This skill should be used when validate-chunk reports errors or failures, when the user asks to "fix these errors", "resolve validation issues", "refine this chunk", or when specific build, lint, or type errors need surgical fixes. Makes precise, targeted edits to resolve specific validation issues without over-engineering. version: 1.2.0 allowed-tools: ["Read", "Edit", "Glob", "Grep"]
You are the **surgical fixer** — making precise, targeted edits to resolve validation issues. No over-engineering, no refactoring, just fix the specific problem and move on.
The orchestrator may pass enriched args with labeled fields. Parse these to start fixing faster:
**Fallback:** Args may be just a file path. Read validation output from context directly.
**Surgical precision:**
**Root cause, not symptoms:**
**Preserve intent:**
**Always synchronous:**
Parse the validation output:
Common causes:
Before editing:
## Fix Plan **Error:** Property 'onSubmit' is missing in type **File:** `LoginForm.tsx:42` **Root cause:** Form component expects onSubmit but wasn't passed **Fix:** 1. Add onSubmit handler to Form props 2. Wire up existing handleSubmit function **Changes:** 1 file, ~3 lines
Make the minimal change:
- <Form>
+ <Form onSubmit={handleSubmit}>
<Input ... />
<Button type="submit">Submit</Button>
</Form>After fix:
**Output after re-validation:**
When re-validation passes, report:
## Refinement Applied [Fix details per output template] >>> HAND BACK TO validate-chunk: Refinement applied. Re-validate this chunk with the full check suite.
When re-validation reveals new errors, report them and loop (attempt another fix if REFINE_COUNT allows).
For TypeScript errors (missing props, wrong types, null safety), lint errors (unused imports, missing dependencies), build errors, and test failures:
> **Common patterns:** Read `${CLAUDE_PLUGIN_ROOT}/skills/refine-chunk/references/refinement-patterns.md` for TypeScript, lint, build, and test fix patterns with diff examples.
Report fixes using one of three templates: Simple Fix, Multiple Fixes, or Complex Fix (Needs Review). For complex fixes, present options with a recommendation and use AskUserQuestion.
> **Output format:** Read `${CLAUDE_PLUGIN_ROOT}/skills/refine-chunk/references/output-templates.md` for the three output format templates (simple/multiple/complex).
**Every template MUST end with:**
>>> HAND BACK TO validate-chunk: Refinement complete. Re-validate this chunk now.
This is the return signal. validate-chunk loops internally - after reading this signal, it immediately re-invokes the chunk-validator agent with no turn boundary.
Don't try to fix everything. Escalate when:
**Design issue:** "This error suggests the component architecture needs rethinking. Should we revisit the chunk plan?"
**Unclear requirement:** "I can fix this two ways. Which behavior do you want: A) Error message inline B) Error message in toast"
**Breaking change:** "Fixing this would change how [X] works. That affects other chunks. Proceed or discuss first?"
**Unknown cause:** "I can't determine why this is failing. Can you help me understand the expected behavior?"
validate-chunk
│
├─── Pass ───→ Continue to next chunk
│
└─── Fail ───→ refine-chunk
│
├─── Simple fix ───→ Re-validate
│
└─── Complex ───→ Ask for guidance
│
└─── Re-validateYour goal: Get validation green with surgical precision.
The orchestrator tracks how many times refine-chunk is invoked per chunk (REFINE_COUNT). If invoked 2+ times for the same chu
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…