scaffold
Skill88 starsChanged 7 months agoMITView on GitHub
Autonomous project bootstrapper. Generates complete project from a description — structure, code, tests, docs, config. Orchestrates ba → plan → design → fix → test → docs → git in one pipeline. The \"0 to production-ready\" skill.
- Reads credentials
29 other projects use a version of this.
Adopted by
Most recently taken up by
- batirko/research-and-learntheir own version, first seen Oct 5, 2026
- danmaps/gis-agent-skillstheir own version, first seen Oct 2, 2026
- microsoft/GitHub-Copilot-for-Azuretheir own version, first seen Oct 1, 2026
- coroboros/agent-skillstheir own version, first seen Sep 26, 2026
- microsoft/azure-skillstheir own version, first seen Sep 23, 2026
- wangqiqi/cursor-aitheir own version, first seen Sep 23, 2026
Used with
Projects with it also use refactor, autopilot and 3 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
GitHubSkillrefactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
Also in 6 projects that use this
an8079Skillautopilot
Also in 3 projects that use this
genomewalkerSkillmigrate
Import soul data from SQLite or shared chitta files
Also in 3 projects that use this
SentrySkillspec
Produce a verified spec — problem, desired outcome, and acceptance criteria — before building. Use when given a GitHub/Linear issue link, when starting from a fuzzy in-conversation idea, or asked to "figure out what to do" / "scope this" / "what should I build" — whenever the *what* isn't yet pinned down. Grills the ambiguities, checks the premise against the code, and produces acceptance criteria you sign off on — then hands to design-first.
Also in 4 projects that use this
AnthropicSkilldesign-system
Audit, document, or extend your design system. Use when checking for naming inconsistencies or hardcoded values across components, writing documentation for a component's variants, states, and accessibility notes, or designing a new pattern that fits the existing system.
Also in 3 projects that use this
Other versions29 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 29
- microsoft/skills★ 3.1ksame name
- microsoft/azure-skills★ 1.5ksame name
- SethGammon/Citadel★ 922same name
- codewithmukesh/dotnet-claude-kit★ 750same name
- microsoft/GitHub-Copilot-for-Azure★ 253same name
- genkovich/sdd★ 170same name
- simota/agent-skills★ 87same name
- BULDEE/ai-craftsman-superpowers★ 35same name
- danmaps/gis-agent-skills★ 29same name
- pcatattacks/solopreneur-plugin★ 15same name
19 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository67 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- adversarySkill
- asset-creatorSkill
- auditSkill
- autopsySkill
- baSkill
- brainstormSkill
- browser-pilotSkill
- completion-gateSkill
- constraint-checkSkill
- context-engineSkill
- context-packSkill
- convergeSkill
- cookSkill
- councilSkill
- dbSkill
- debugSkill
- dependency-doctorSkill
- deploySkill
- designSkill
- diagramSkill
- doc-processorSkill
- docs-seekerSkill
- docsSkill
- fixSkill
- gitSkill
- graftSkill
- hallucination-guardSkill
- improve-architectureSkill
- incidentSkill
- integrity-checkSkill
- journalSkill
- launchSkill
- logic-guardianSkill
- marketingSkill
- mcp-builderSkill
- neural-memorySkill
- onboardSkill
- perfSkill
- planSkill
- preflightSkill
- problem-solverSkill
- quarantineSkill
- rescueSkill
- researchSkill
- retroSkill
- review-intakeSkill
- reviewSkill
- safeguardSkill
- sastSkill
- scope-guardSkill
- scoutSkill
- sentinel-envSkill
- sentinelSkill
- sequential-thinkingSkill
- session-bridgeSkill
- skill-forgeSkill
- skill-routerSkill
- slidesSkill
- surgeonSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
30 rules. 0 are common, 22 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 25 edited versions we read keep these.
22
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 113
Do NOT clone templates blindly.
- Distinctive: line 124
Test strategy (what to test, coverage target)
- Distinctive: line 130
If project has frontend (Web App, Mobile App, Chrome Extension):
- Distinctive: line 134
If backend-only or CLI → skip this phase.
- Distinctive: line 140
Create directory structure first
- Very specific: line 147
Parallelization: If plan has 3+ independent modules → invoke rune:team to implement in parallel using worktrees.
- Distinctive: line 150
Follow project conventions from research
- Distinctive: line 152
Use environment variables for config (never hardcode)
- Distinctive: line 153
Add TypeScript strict types / Python type hints
- Distinctive: line 154
Follow file size limits (< 500 LOC per file)
- Very specific: line 195
If ANY check fails → fix the issue (invoke rune:fix) and re-verify.
- Distinctive: line 196
Do NOT present broken scaffold to user.
- Distinctive: line 241
When user says "monorepo", "workspace", "turborepo", "nx", or "multi-package", scaffold switches to Monorepo Mode.
- Very specific: line 266
Build orchestration: if turborepo → generate turbo.json with build, test, lint pipelines and dependsOn for cross-package deps
- Very specific: line 268
Internal packages: use workspace:* protocol for cross-package deps (not file: paths)
- Very specific: line 274
DO NOT generate a single root package.json with all deps — defeats workspace isolation
- Very specific: line 275
DO NOT use file:../core — use workspace:* (pnpm) or * (yarn)
- Distinctive: line 276
DO NOT run all tests from root without turborepo/nx orchestration — causes O(n) sequential runs
- Distinctive: line 277
DO NOT share mutable state between packages via imports — use events or shared types only
- Distinctive: line 281
MUST run BA (Phase 1) before generating any code — even in Express mode
- Distinctive: line 282
MUST generate tests — no project without test suite is "production-ready"
- Distinctive: line 283
MUST generate docs — README at minimum, API docs if applicable
- Very specific: line 284
MUST pass verification — generated project must build and pass lint/types/tests
- Very specific: line 285
MUST NOT use --dangerously-skip-permissions or --no-verify — quality gates are mandatory
- Distinctive: line 286
MUST NOT generate hardcoded secrets — use .env.example with placeholder values
- Distinctive: line 288
MUST generate .gitignore appropriate for the stack
- Distinctive: line 289
MUST respect user's existing project if scaffolding into non-empty directory — warn and ask before overwriting
- Distinctive: line 319
All code generated (following plan, < 500 LOC per file)
- Distinctive: line 320
Test suite generated (80%+ coverage target, acceptance criteria covered)
- Distinctive: line 323
All verification checks passed (lint + types + tests + build + security)
“Common” is measured: kept by at least 6 in 10 of the 25 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
scaffold
Purpose
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.
<HARD-GATE>
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.
</HARD-GATE>Triggers
/rune scaffold <description>— Interactive mode (asks questions)/rune scaffold express <detailed-description>— Express mode (autonomous)- Called by
teamwhen task is greenfield project creation - Auto-trigger: when user says "new project", "start from scratch", "bootstrap", "create a new [app/api/lib]"
Calls (outbound)
ba(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
Called By (inbound)
- User:
/rune scaffolddirect invocation team(L1): when decomposed task is a new projectcook(L1): when task is classified as greenfield (rare — cook usually handles features, not projects)
Modes
Interactive Mode (default)
Full phase-gate workflow. User reviews and approves at each major phase:
- BA asks 5 questions → user answers
- Plan presented → user approves
- Design system presented → user approves (if frontend)
- Implementation proceeds
- Results presented with full report
Express Mode
Autonomous mode for detailed descriptions. User provides enough context upfront:
- BA extracts requirements from description (no questions asked)
- Plan auto-approved (user gave enough detail)
- Implementation proceeds autonomously
- User reviews only the final output
<HARD-GATE>
Express mode MUST still validate. Auto-approve doesn't mean skip quality checks.
BA still extracts requirements — it just doesn't ask questions.
Verification (Phase 9) is NEVER skipped in any mode.
</HARD-GATE>Project Templates
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 |
Executable Steps
Phase 1 — BA (Requirement Elicitation)
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.
Phase 2 — RESEARCH (Best Practices & Templates)
Invoke rune:research to find:
- Best practices for the detected project type
- Recommended libraries (compare 2-3 options for each concern)
- Starter templates or skeleton projects to reference
- Common pitfalls for this stack
Do NOT clone templates blindly. Use them as REFERENCE for architecture decisions in Phase 3.
Phase 3 — PLAN (Architecture & Implementation)
Invoke rune:plan with the Requirements Document from Phase 1 and research from Phase 2.
Plan must include:
- Directory structure (exact paths)
- File list with purpose of each file
- Implementation order (dependency-aware)
- Technology choices with rationale
- Test strategy (what to test, coverage target)
Gate: In Interactive mode, user must approve plan before proceeding.
Phase 4 — DESIGN (Design System — Frontend Only)
If project has frontend (Web App, Mobile App, Chrome Extension):
- Invoke
rune:designto generate design system - Output:
.rune/design-system.mdwith tokens, components, patterns
If backend-only or CLI → skip this phase.
Phase 5 — IMPLEMENT (Code Generation)
Execute the plan from Phase 3. For each planned file:
- Create directory structure first
- Generate shared types/interfaces
- Generate core modules (models, services, utilities)
- Generate API layer (routes, controllers, handlers)
- Generate UI layer (pages, components) if applicable
- Generate configuration (env, docker, CI)
Parallelization: If plan has 3+ independent modules → invoke rune:team to implement in parallel using worktrees.
Quality during generation:
- Follow project conventions from research
- Include proper error handling
- Use environment variables for config (never hardcode)
- Add TypeScript strict types / Python type hints
- Follow file size limits (< 500 LOC per file)
Phase 6 — TEST (Test Suite Generation)
Invoke rune:test to generate tests based on acceptance criteria from Phase 1:
- Unit tests for each module/function
- Integration tests for API endpoints
- E2E test template for critical flows
- Target: 80%+ coverage on generated code
Each acceptance criterion from BA → at least one test case.
Phase 7 — DOCS (Documentation)
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 descriptions
Phase 8 — GIT (Initial Commit)
Invoke rune:git commit to create initial commit:
- Stage all generated files (except .env, node_modules, pycache)
- Commit message:
feat: scaffold <project-name> with <template> template - Set up
.gitignoreappropriate for the stack
Phase 9 — VERIFY (Quality Gate)
Invoke rune:verification to run ALL checks:
- Lint: ESLint/Ruff/Clippy — zero errors
- Types: tsc --noEmit / mypy — zero errors
- Tests: npm test / pytest — all pass
- Build: npm run build / python -m build — succeeds
- Security:
rune:sentinelquick scan — no critical issues
<HARD-GATE>
If ANY check fails → fix the issue (invoke rune:fix) and re-verify.
Do NOT present broken scaffold to user.
Max 3 fix-verify loops. If still failing after 3 → report failures to user with context.
</HARD-GATE>Output Format
## 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 qualityError Recovery
| 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 |
Monorepo Mode
When user says "monorepo", "workspace", "turborepo", "nx", or "multi-package", scaffold switches to Monorepo Mode.
Monorepo Detection & Setup
SIGNALS: pnpm-workspace.yaml | turbo.json | nx.json | packages/ directory | "monorepo" in taskStructure Generated
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
└── .gitignoreMonorepo-Specific Steps (additions to standard scaffold)
- Workspace config: generate
pnpm-workspace.yaml(preferred) orpackage.jsonworkspaces field - Build orchestration: if turborepo → generate
turbo.jsonwithbuild,test,lintpipelines anddependsOnfor cross-package deps - Shared TS config:
tsconfig.base.jsonat root; each package extends it - Internal packages: use
workspace:*protocol for cross-package deps (not file: paths) - Test isolation: each package has its own
npm testscript; root runsturbo run test - Affected-only CI guidance: include
.github/workflows/ci.ymlwithturbo run test --filter=...[HEAD^1]for affected-only runs
Monorepo Anti-Patterns
- DO NOT generate a single root
package.jsonwith all deps — defeats workspace isolation - DO NOT use
file:../core— useworkspace:*(pnpm) or*(yarn) - DO NOT run all tests from root without turborepo/nx orchestration — causes O(n) sequential runs
- DO NOT share mutable state between packages via imports — use events or shared types only
Constraints
- MUST run BA (Phase 1) before generating any code — even in Express mode
- MUST generate tests — no project without test suite is "production-ready"
- MUST generate docs — README at minimum, API docs if applicable
- MUST pass verification — generated project must build and pass lint/types/tests
- MUST NOT use
--dangerously-skip-permissionsor--no-verify— quality gates are mandatory - MUST NOT generate hardcoded secrets — use .env.example with placeholder values
- Express mode MUST still extract and validate requirements — auto-approve ≠ skip analysis
- MUST generate .gitignore appropriate for the stack
- MUST respect user's existing project if scaffolding into non-empty directory — warn and ask before overwriting
- Generated files MUST be < 500 LOC each — split large files
Returns
| 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 |
Sharp Edges
| 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 |
Done When
- Requirements gathered (BA complete, Requirements Document produced)
- Architecture planned (directory structure, tech choices, implementation order)
- Design system generated (if frontend project)
- All code generated (following plan, < 500 LOC per file)
- Test suite generated (80%+ coverage target, acceptance criteria covered)
- Documentation generated (README + ARCHITECTURE + API docs as applicable)
- Initial git commit created
- All verification checks passed (lint + types + tests + build + security)
- Scaffold Report presented to user
Cost Profile
~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).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

