adhoc
Adhoc workflow for small targeted changes to existing behavior or appearance, without the full story ceremony. Use when the…
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
Claude Code
$ npx -y skills add drobins25/craft --skill refine-chunk --agent claude-code
Codex
$ npx skills add drobins25/craft --skill refine-chunk -a codex -y
Cursor
$ npx skills add drobins25/craft --skill refine-chunk -a cursor -y
Gemini CLI
$ npx skills add drobins25/craft --skill refine-chunk -a gemini-cli -y
GitHub Copilot
$ npx skills add drobins25/craft --skill refine-chunk -a github-copilot -y
OpenCode
$ npx skills add drobins25/craft --skill refine-chunk -a opencode -y
Windsurf
$ npx skills add drobins25/craft --skill refine-chunk -a windsurf -y
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:**
**Edit only, no shell:**
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>refine-chunk does not re-run validation itself. After the fix:
**Output after the fix:**
## Refinement Applied [Fix details per output template] >>> HAND BACK TO validate-chunk: Refinement applied. Re-validate this chunk with the full check suite.
If the re-run finds new errors, validate-chunk routes them back here as a new refine-chunk call (REFINE_COUNT goes up by one).
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 ───→ Hand back (validate-chunk re-validates)
│
└─── Complex ───→ Ask for guidance
│
└─── Hand back (validate-chunk re-validates)Your goal: Get validation green
Adhoc workflow for small targeted changes to existing behavior or appearance, without the full story ceremony. Use when the…
Request write permission from the user before making file changes. MUST be invoked before any write attempt when the write gate…
Interactive browser automation via playwright-cli. Use when you need to navigate a site, click elements, fill forms, take…
This skill should be used when a story has been captured but content direction is unresolved - the spark describes WHAT to build…
This skill should be used when the user asks to "brainstorm", "explore options", "get creative", "what if we...", or selects…
Use this skill when the user wants to discover, define, or refine their product's aesthetic identity. Triggers on "what should…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.