scaffold
Generate a new package or app in the monorepo following established project conventions
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- scaffold
- type
- execution
- version
- v0.3
- description
- Generate a new package or app in the monorepo following established project conventions
02 资源文件 2
- 参考文档agents/openai.yaml239 B
- 参考文档CHANGELOG.md503 B
03 SKILL.md 正文
Scaffold
Invoke as $scaffold.
Use this skill when the user wants to create a new package or app in their monorepo.
For product/app workflows, $scaffold is normally downstream of research, prototype consolidation, production specification, roadmap, and phase planning. Use it when $roadmap/$plan-phase identifies that the next implementation step needs a new app/package root. Do not route from $idea-scope-brief, $bootstrap-repo, $customer-discovery, $competitive-analysis, $journey-map, $ux-variations, or $ui-interview directly to $scaffold unless the user explicitly asks to create a minimal shell first.
Process
- Parse the type (package/app) and name from arguments.
- Check
.agents/project.json. If it is missing, run or recommendscripts/pack.sh recommendand include the likely project type in the scaffold plan. - If the scaffold creates a new project root, include
.agents/project.jsonand install the matching local pack withscripts/pack.sh install <pack>from this source checkout, ornpx skillpacks install <pack>from the new project shell when using the published package, after the root exists. - Learn conventions from CLAUDE.md, AGENTS.md,
.agents/project.json, and monorepo config. - Find the most recently created package/app as a template.
- Present the scaffold plan and wait for approval. Use
update_planto track the work; userequest_user_inputonly if the session is already in Plan mode and a structured choice would help. - Generate files, adapting the template with the new name.
- Run install and type-check to verify.
Output
- Scaffolded: type, name, location
- Files Created: list of generated files
- Next Steps: what to do after scaffolding
Next-Step Routing
- If the scaffold was created as part of an active roadmap/phase, recommend
$execto continue the current implementation step. - If the user explicitly requested an early shell before research, keep the next route on the research-first product workflow:
$customer-discoverywhen the concept is ready and business-discovery is enabled, otherwisenpx skillpacks install business-discoveryfrom the project shell. - If the scaffold is for a non-product package with no pending roadmap item, recommend
$roadmapor$plan-phaseonly when implementation sequencing is missing.
Constraints
- Always use an existing package as the reference template.
- Do not install domain packs as base skills; use project-local pack skill roots.
- Present the plan and get approval before creating files. Do not assume a Claude-style
EnterPlanModeor clear-context accept flow exists. - Keep the scaffold minimal — no unnecessary boilerplate.
- Do not treat scaffolding as product validation. It creates structure only; ICP, market, journey, UX, UI, and prototype decisions belong to their upstream skills.
Default Shipping Contract
Follow the shared shipping contract convention in CLAUDE.md.
04 同仓库更多 Skills
source-checkout-allowed
Valid source-checkout-only fixture.
deck-install-valid
Valid deck install fixture.
codex-pack-guard-valid
Valid Codex Pack Availability Guard fixture.
codex-missing-skill-valid
Valid Codex missing skill fallback fixture.
codex-base-skill-fallback-valid
Valid Codex base skill fallback fixture.
claude-pack-guard-valid
Valid Claude Pack Availability Guard fixture.