From haiku
Scaffolds directory structures and YAML-frontmatter templates for custom H·AI·K·U artifacts: studios, stages, hats, review agents, and provider overrides under .haiku/.
npx claudepluginhub gigsmart/haiku-method --plugin haikuThis skill is limited to using the following tools:
`haiku:scaffold` — Generate directory structure and template files for custom H·AI·K·U artifacts.
Implements H·AI·K·U lifecycle framework for structured AI-assisted work, orchestrating via studios, stages, units, bolts, hats, and haiku tools.
Scaffolds greenfield project architecture, test infrastructure, guard rails, and AI agent harness via interview-driven layers to requirements.md. Use for /scaffold, new projects, or setup.
Presents menu of 8 pre-built harness use cases for research/analysis, content creation, media/marketing, engineering; launches selected one via harness:harness skill.
Share bugs, ideas, or general feedback.
haiku:scaffold — Generate directory structure and template files for custom H·AI·K·U artifacts.
/haiku:scaffold studio <name>
/haiku:scaffold stage <studio> <stage-name>
/haiku:scaffold hat <studio> <stage> <hat-name>
/haiku:scaffold review-agent <studio> <stage> <agent-name>
/haiku:scaffold provider <type>
Creates the correct directory structure and template files for custom artifacts under .haiku/. All generated files include the proper frontmatter schema, ready to fill in.
Parse the first argument as the artifact type. Remaining arguments depend on the type:
| Type | Required Args | Example |
|---|---|---|
studio | <name> | /haiku:scaffold studio data-pipeline |
stage | <studio> <stage-name> | /haiku:scaffold stage data-pipeline validation |
hat | <studio> <stage> <hat-name> | /haiku:scaffold hat data-pipeline validation reviewer |
review-agent | <studio> <stage> <agent-name> | /haiku:scaffold review-agent software development security |
provider | <type> | /haiku:scaffold provider jira |
If no arguments are provided, ask the user what they want to create using AskUserQuestion:
{
"questions": [{
"question": "What would you like to scaffold?",
"options": ["Studio", "Stage", "Hat", "Review Agent", "Provider override"]
}]
}
Then ask follow-up questions for the required names.
Check if the artifact already exists. If it does, warn the user and ask whether to overwrite.
Create:
.haiku/studios/{name}/STUDIO.md
.haiku/studios/{name}/stages/
STUDIO.md template:
---
name: {name}
description: TODO — describe this studio's purpose
stages: []
persistence:
type: git
delivery: pull-request
---
# {Name} Studio
Describe the lifecycle this studio supports and when to use it.
## Stage Pipeline
Add stages to the `stages` list above, then scaffold each one:
/haiku:scaffold stage {name}
Verify the parent studio exists at .haiku/studios/{studio}/STUDIO.md or plugin/studios/{studio}/STUDIO.md. If neither exists, error.
Create:
.haiku/studios/{studio}/stages/{stage}/STAGE.md
.haiku/studios/{studio}/stages/{stage}/hats/
.haiku/studios/{studio}/stages/{stage}/review-agents/
STAGE.md template:
---
name: {stage}
description: TODO — describe what this stage accomplishes
hats: []
review: ask
unit_types: []
inputs: []
review-agents-include: []
---
## Criteria Guidance
TODO — examples of good and bad completion criteria for this stage.
## Completion Signal
TODO — describe the conditions under which this stage is done.
Remind the user to:
hats/ directoryreview-agents/ directorystages listreview-agents-includeVerify the parent stage exists at .haiku/studios/{studio}/stages/{stage}/STAGE.md or plugin/studios/{studio}/stages/{stage}/STAGE.md. If neither exists, error.
Create:
.haiku/studios/{studio}/stages/{stage}/hats/{hat}.md
Hat template:
**Focus:** TODO — describe this hat's core responsibility and what it concentrates on.
**Produces:** TODO — describe artifacts or outputs this hat creates.
**Reads:** TODO — describe inputs this hat consumes.
**Anti-patterns:**
- TODO — common mistakes to avoid
Remind the user to add this hat name to the parent stage's hats list.
Verify the parent stage exists at .haiku/studios/{studio}/stages/{stage}/STAGE.md or plugin/studios/{studio}/stages/{stage}/STAGE.md. If neither exists, error.
Create:
.haiku/studios/{studio}/stages/{stage}/review-agents/{agent}.md
Review agent template:
---
name: {agent}
stage: {stage}
studio: {studio}
---
**Mandate:** TODO — describe what this review agent checks and why.
**Check:**
- TODO — specific verification items
Remind the user that:
review-agents-include fieldRead the built-in provider instructions from ${CLAUDE_PLUGIN_ROOT}/providers/{category}.md where {category} is resolved from the provider type:
| Type | Category |
|---|---|
| jira, linear, github-issues, gitlab-issues | ticketing |
| notion, confluence, google-docs | spec |
| figma, canva, penpot, excalidraw | design |
| slack, teams, discord | comms |
Create:
.haiku/providers/{type}.md
Pre-populate with the built-in defaults as a starting template:
---
category: {category}
description: Project-specific {type} instructions
---
{body of built-in default}
Display what was created:
Created {type}: .haiku/studios/{path}/
Files:
- .haiku/studios/{path}/STUDIO.md
- .haiku/studios/{path}/stages/ (empty, ready for stages)
Next steps:
- Edit the STUDIO.md to fill in description and stages
- Run /haiku:scaffold stage {name} <stage-name> to add stages
Adjust the summary for each artifact type.
| Scenario | Behavior |
|---|---|
| No arguments, no interactive input | Show usage help |
| Artifact already exists | Warn, ask to overwrite or skip |
| Parent doesn't exist (stage without studio, hat without stage) | Error with suggestion to scaffold the parent first |
| Invalid name (spaces, special chars) | Error with naming rules |