/rune:scaffoldfrom rune
Autonomous project bootstrapper that generates complete project structure, code, tests, docs, and git setup from a description. Orchestrates multiple skills in a pipeline for zero-to-production-ready output.
Ships in rune. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The "zero to production-ready" orchestrator. Takes a project description and autonomously generates a complete, working project — directory structure, code, tests, documentation, git setup, and verification. Orchestrates 8+ skills in sequence to produce output that builds, passes tests, and is ready for development.
Generated projects MUST build and pass tests. A scaffold that produces broken code is WORSE than no scaffold. Phase 9 (VERIFY) is mandatory — if verification fails, fix before presenting to user./rune scaffold <description> — Interactive mode (asks questions)/rune scaffold express <detailed-description> — Express mode (autonomous)team when task is greenfield project creationba (L2): Phase 1 — requirement elicitation (always, even in Express mode)sentinel-env (L3): Phase 1.5 — environment pre-flight (validate runtime versions, ports, required tools before generating code)research (L3): Phase 2 — best practices, starter templates, library comparisonplan (L2): Phase 3 — architecture and implementation plandesign (L2): Phase 4 — design system (frontend projects only)skill-forge (L2): when scaffolded project includes custom skills or plugin structurefix (L2): Phase 5 — code generation (implements the plan)team (L1): Phase 5 — parallel implementation when 3+ independent modulestest (L2): Phase 6 — test suite generationdocs (L2): Phase 7 — README, API docs, architecture docgit (L3): Phase 8 — initial commit with semantic messageverification (L3): Phase 9 — lint + types + tests + buildsentinel (L2): Phase 9 — security scan on generated code/rune scaffold direct invocationteam (L1): when decomposed task is a new projectcook (L1): when task is classified as greenfield (rare — cook usually handles features, not projects)Full phase-gate workflow. User reviews and approves at each major phase:
Autonomous mode for detailed descriptions. User provides enough context upfront:
Auto-detected from BA output. Template selection informs Phase 3 (Plan) architecture decisions.
| Template | Stack | Key Generation Targets |
|---|---|---|
| REST API | Node.js/Python + DB + Auth | Routes, models, middleware, migrations, Docker, CI |
| Web App (Full-stack) | Next.js/SvelteKit + DB | Pages, components, API routes, auth, DB setup |
| CLI Tool | Node.js/Python/Rust | Commands, arg parsing, config, tests |
| Library/Package | TypeScript/Python | Src, tests, build config, npm/pypi publish setup |
| MCP Server | TypeScript/Python | Tools, resources, handlers, tests (delegates to mcp-builder) |
| Chrome Extension | React/Vanilla | Manifest, popup, content script, background, tests |
| Mobile App | React Native/Expo | Screens, navigation, auth, API client |
Invoke rune:ba with the user's project description.
Interactive Mode: BA asks 5 questions, discovers hidden requirements, produces Requirements Document.
Express Mode: BA extracts requirements from the detailed description without asking questions. Still produces Requirements Document with scope, user stories, and acceptance criteria.
Output: .rune/features/<project-name>/requirements.md
Gate: In Interactive mode, user must approve requirements before proceeding.
Invoke rune:research to find:
Do NOT clone templates blindly. Use them as REFERENCE for architecture decisions in Phase 3.
Invoke rune:plan with the Requirements Document from Phase 1 and research from Phase 2.
Plan must include:
Gate: In Interactive mode, user must approve plan before proceeding.
If project has frontend (Web App, Mobile App, Chrome Extension):
rune:design to generate design system.rune/design-system.md with tokens, components, patternsIf backend-only or CLI → skip this phase.
Execute the plan from Phase 3. For each planned file:
Parallelization: If plan has 3+ independent modules → invoke rune:team to implement in parallel using worktrees.
Quality during generation:
Invoke rune:test to generate tests based on acceptance criteria from Phase 1:
Each acceptance criterion from BA → at least one test case.
Invoke rune:docs init to generate:
README.md — Quick Start, Features, Tech Stack, CommandsARCHITECTURE.md — if project has 10+ filesdocs/API.md — if project has API endpoints.env.example — all required environment variables with descriptionsInvoke rune:git commit to create initial commit:
feat: scaffold <project-name> with <template> template.gitignore appropriate for the stackInvoke rune:verification to run ALL checks:
rune:sentinel quick scan — no critical issues## Scaffold Report: [Project Name]
- **Template**: [detected template]
- **Stack**: [framework, language, DB, etc.]
- **Files Generated**: [count]
- **Test Coverage**: [percentage]
- **Phases**: BA → Research → Plan → Design? → Implement → Test → Docs → Git → Verify
- **Verification**: ✅ All checks passed / ⚠️ [issues]
### Generated Structure
[file tree — max 30 lines, group similar files]
### What's Included
- [feature list with key implementation details]
### What's NOT Included (Next Steps)
- [out-of-scope items from BA — things user should build next]
### Commands
- `[start command]` — start development server
- `[test command]` — run tests
- `[build command]` — production build
- `[lint command]` — check code quality
| Phase | Failure | Recovery |
|---|---|---|
| Phase 1 (BA) | User refuses to answer questions | Extract what you can, flag assumptions prominently |
| Phase 2 (Research) | No good references found | Use built-in knowledge, flag as "no external reference" |
| Phase 3 (Plan) | Plan too complex (10+ phases) | Split into MVP (Phase 1) + Future (Phase 2) |
| Phase 5 (Implement) | Code generation errors | Invoke fix → retry, max 3 attempts per file |
| Phase 6 (Test) | Tests fail on generated code | Fix code (not tests) → re-run, max 3 loops |
| Phase 9 (Verify) | Lint/type/build errors | Fix → re-verify, max 3 loops |
| Phase 9 (Verify) | Still failing after 3 loops | Report to user with specific failures |
When user says "monorepo", "workspace", "turborepo", "nx", or "multi-package", scaffold switches to Monorepo Mode.
SIGNALS: pnpm-workspace.yaml | turbo.json | nx.json | packages/ directory | "monorepo" in task
project/
├── packages/
│ ├── core/ ← shared types, utilities
│ ├── api/ ← backend service
│ └── web/ ← frontend app
├── package.json ← root workspace config (private: true)
├── pnpm-workspace.yaml or turbo.json
├── tsconfig.base.json ← shared TS config
└── .gitignore
pnpm-workspace.yaml (preferred) or package.json workspaces fieldturbo.json with build, test, lint pipelines and dependsOn for cross-package depstsconfig.base.json at root; each package extends itworkspace:* protocol for cross-package deps (not file: paths)npm test script; root runs turbo run test.github/workflows/ci.yml with turbo run test --filter=...[HEAD^1] for affected-only runspackage.json with all deps — defeats workspace isolationfile:../core — use workspace:* (pnpm) or * (yarn)--dangerously-skip-permissions or --no-verify — quality gates are mandatory| Artifact | Format | Location |
|---|---|---|
| Project directory structure | Directories + files | Project root (per plan) |
| Source code | Source files | Per plan file list |
| Test suite | Source files | Co-located or tests/ per framework convention |
| Documentation | Markdown | README.md, ARCHITECTURE.md, docs/API.md as applicable |
| Scaffold Report | Markdown (inline) | Emitted at session end |
| Failure Mode | Severity | Mitigation |
|---|---|---|
| Generating code without BA → wrong features | CRITICAL | Constraint 1: BA is Phase 1, always runs |
| Scaffold passes locally but fails on fresh clone | HIGH | Phase 9 catches this — verify build from clean state |
| Overwriting existing files in non-empty directory | HIGH | Constraint 9: detect existing files, warn user |
| Express mode skipping quality checks | HIGH | HARD-GATE: Express mode still validates everything |
| Template mismatch (CLI template for web app) | MEDIUM | Template auto-detected from BA output, confirmed with user |
| Generated tests are trivial (only smoke tests) | MEDIUM | Phase 6: tests derived from acceptance criteria, not generic |
| Missing .gitignore → committing node_modules | MEDIUM | Constraint 8: generate stack-appropriate .gitignore |
~10000-20000 tokens total (across all sub-skill invocations). Sonnet for orchestration — sub-skills use their own model selection (ba uses opus, git uses haiku, etc.). Most expensive L1 skill due to 9-phase pipeline, but runs rarely (project creation is infrequent).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rune-kit/rune --plugin rune67 skills in this plugin
/adversaryPre-implementation red-team analysis. Use when a plan is high-risk, critical path, or expensive to reverse. Challenges plans before code is written — finds edge cases, security holes, scalability bottlenecks, error propagation risks, and integration conflicts. Catches flaws at plan time (10x cheaper than post-implementation)./asset-creatorCreates code-based visual assets — SVG icons, OG image HTML templates, social banners, and icon sets. Use when generating visuals as code (vector/HTML), NOT raster images — for raster generation see @rune-pro/media. Outputs files with usage instructions./auditComprehensive project audit — security, dependencies, code quality, architecture, performance, infra, docs, and mesh analytics. Use when needing a full 8-dimension health-score snapshot before a major release, M&A diligence, or quarterly review. Delegates to specialist skills (sentinel, dependency-doctor, perf, autopsy, etc.).Other plugins' skills for the same job