scaffold
Skill5 starsChanged 4 months agoMITView on GitHub
Generates a complete project code skeleton from the PRD with full traceability to specifications. This skill should be used when the user asks to "generate project scaffolding", "scaffold the codebase", "create the code skeleton", "generate the project structure", "run Stage 3", or "scaffold from PRD", or when the transmute-pipeline agent reaches Stage 3 of the pipeline.
- Reads credentials
49 other projects use a version of this.
Adopted by
Most recently taken up by
- mikeparcewski/wicked-gardentheir own version, first seen Nov 8, 2026
- codewithmukesh/dotnet-claude-kittheir own version, first seen Nov 8, 2026
- DnsQueen/orcinus-skillstheir own version, first seen Nov 8, 2026
- jurij/skillstheir own version, first seen Nov 8, 2026
- howells/scaffoldtheir own version, first seen Nov 6, 2026
- SethGammon/Citadeltheir own version, first seen Nov 4, 2026
Used with
Projects with it also use ascii-diagram, docs-ci and 10 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.
SethGammonSkillascii-diagram
Generate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow. Uses a programmatic character-grid approach so alignment is guaranteed by math, not token prediction. Includes post-render verification.
Also in 4 projects that use this
jh941213Skilldocs-ci
문서 CI(링크·OpenAPI lint·breaking 게이트·mermaid 검증)나 문서 드리프트 감지(docs.yaml 신선도 검사)를 설치하거나 돌릴 때 사용. 문서 내용 작성은 docs-architecture·docs-interfaces·docs-manuals.
Also in 3 projects that use this
jh941213Skilldocs-interfaces
API·이벤트 인터페이스 문서(OpenAPI·swagger·AsyncAPI 명세, 엔드포인트 레퍼런스, API 구성도·시퀀스, API CHANGELOG)를 만들거나 코드와 맞출 때 사용. 시스템 구성도는 docs-architecture, API 설계 원칙은 api-design-principles.
Also in 3 projects that use this
SethGammonSkillresearch-fleet
Parallel research using Fleet wave mechanics. Spawns multiple scout agents, each investigating a different angle of the same question. Findings are compressed between waves. Produces a unified research brief from multiple independent perspectives.
Also in 3 projects that use this
RachaelQuiselSkillclient-docs
Client documentation. Use when a build needs documentation updates or missing project documents need to be identified.
Also in 3 projects that use this
vicoa-aiSkilllive-preview
Start a local app in the current user project, expose it through a tunnel, and return preview details in structured Markdown. Use when the user asks for a preview URL, public URL, shareable localhost, mobile/web preview, or tunnel setup.
Also in 4 projects that use this
- +4 more from jh941213
Other versions49 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 49
- SethGammon/Citadel★ 927same name
- codewithmukesh/dotnet-claude-kit★ 808same name
- me2resh/apexyard★ 542same name
- genkovich/sdd★ 187same name
- team-attention/hoyeon★ 173same name
- ambient-code/platform★ 131same name
- jh941213/ADLC-harness★ 125same name
- jh941213/my-cc-harness★ 125same name
- jh941213/my-claude-code-asset★ 125same name
- simota/agent-skills★ 96same name
39 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 repository24 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- audit-a11ySkill
- audit-completenessSkill
- audit-securitySkill
- brdSkill
- docsSkill
- feedbackSkill
- hardenSkill
- implementSkill
- maintainSkill
- optimizeSkill
- polishSkill
- prdSkill
- prelaunchSkill
- redesignSkill
- refactorSkill
- remediateSkill
- seed-dataSkill
- smokeSkill
- tech-stackSkill
- user-guideSkill
- validate-specsSkill
- verifySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
39 rules. 0 are common, 18 are distinctive, and 21 are very specific to this project.
0
Common
Most of the 42 edited versions we read keep these.
18
Distinctive
This author's own choices. Worth a look.
21
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Read the detailed guide at ${CLAUDE_SKILL_DIR}/references/scaffold-detailed-guide.md for the complete teammate instructions, code …
- Distinctive: line 26
Before proceeding, verify ALL of these conditions.
- Very specific: line 28
Verify ./plancasting/prd/ directory exists and contains markdown files.
- Very specific: line 29
Verify ./plancasting/brd/ directory exists and contains markdown files.
- Very specific: line 30
Verify ./plancasting/tech-stack.md exists.
- Very specific: line 31
Verify spec validation passed: check plancasting/_audits/spec-validation/report.md for PASS or CONDITIONAL PASS.
- Very specific: line 32
Verify credentials: grep -E 'YOUR_.*_HERE|TODO_.*|CHANGE_ME|PLACEHOLDER|^[A-Z_]+=\s*$' .env.local must return no matches.
- Distinctive: line 39
Avoid these common scaffolding failures:
- Very specific: line 42
Auth provider mismatch: always read plancasting/tech-stack.md for the actual auth provider.
- Distinctive: line 43
Dependency version conflicts: always verify compatibility before adding dependencies.
- Distinctive: line 52
Read and internalize the full context:
- Very specific: line 66
Create the scaffold manifest template (plancasting/_scaffold-manifest.md) with the expected file structure.
- Distinctive: line 74
All backend function files (queries, mutations, actions) organized by domain
- Distinctive: line 91
All feature components organized by domain (all features)
- Distinctive: line 102
Test infrastructure (vitest config, playwright config, setup files, module maps)
- Distinctive: line 116
Ensure backend function names match what pages and hooks reference.
- Distinctive: line 117
Verify cross-feature consistency for shared data patterns.
- Distinctive: line 121
After all teammates complete:
- Distinctive: line 125
Import validation, backend API references, schema completeness, index coverage
- Distinctive: line 128
No phase artifacts (no "Phase 1", "Phase 2" references)
- Very specific: line 134
Update CLAUDE.md Part 2 ONLY — fill in placeholder sections with actual project details.
- Very specific: line 137
Create the .claude/rules/ directory
- Very specific: line 138
Read the rule templates from ./plancasting/transmute-framework/rules-templates/ (6 template files: _backend-template.md, …
- Very specific: line 145
Write rendered files to .claude/rules/backend.md, .claude/rules/frontend.md, .claude/rules/api-contracts.md, .claude/rules/auth.md, …
- Very specific: line 159
PASS: All required output files exist, PRD coverage ≥ 95%, CLAUDE.md Part 2 fully populated, _progress.md lists all features, …
- Distinctive: line 169
Verify all file modifications are saved and all output files exist before declaring Stage 3 complete.
- Distinctive: line 173
If resuming a previously interrupted scaffold generation:
- Very specific: line 174
Check which files already exist in backend dir, src/, and e2e/.
- Very specific: line 175
Check if plancasting/_codegen-context.md and plancasting/_progress.md exist (Phase 1+ completed).
- Very specific: line 176
Check if ARCHITECTURE.md exists (Phase 4 reached).
- Distinctive: line 178
Only respawn teammates whose assigned files are missing or incomplete.
- Very specific: line 184
PRD Traceability: Every file starts with @traces comment block referencing PRD/BRD IDs.
- Very specific: line 185
TypeScript Strict Mode: All code compiles under strict: true.
- Very specific: line 187
Design Quality: Read plancasting/tech-stack.md "Design Direction" section.
- Distinctive: line 189
Component Patterns: Default to Server Components.
- Very specific: line 190
No Phase References: All features ship enabled.
- Distinctive: line 191
CLAUDE.md Protection: Never rewrite from scratch.
- Very specific: line 192
Scaffold Manifest: Every generated file must be listed in plancasting/_scaffold-manifest.md.
- Distinctive: line 193
File Size: Keep files under 300 lines.
“Common” is measured: kept by at least 6 in 10 of the 42 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
Transmute Scaffold — Stage 3: Project Code Skeleton Generation
Lead a multi-agent code generation project to produce a complete, development-ready project scaffolding from the existing PRD, with full traceability back to PRD specifications, BRD requirements, and the original Business Plan.
Read the detailed guide at ${CLAUDE_SKILL_DIR}/references/scaffold-detailed-guide.md for the complete teammate instructions, code generation guidelines, rules-templates processing, and coordination protocol.
Critical Framing: Full-Build Approach
This scaffolding covers the COMPLETE product. Every feature, every screen, every API endpoint, every data entity described in the PRD is scaffolded in this pass. There is no "scaffold the MVP now and add more later." The resulting codebase must be architecturally complete so that the Feature Implementation Orchestrator (Stage 5) can fill in business logic systematically across all features.
Prerequisite Checks
Before proceeding, verify ALL of these conditions. Stop with a clear error message if any fail.
- Verify
./plancasting/prd/directory exists and contains markdown files. If missing: STOP — "Stage 3 requires completed PRD. Run Stages 1-2 first." - Verify
./plancasting/brd/directory exists and contains markdown files. If missing: STOP — "Stage 3 requires completed BRD. Run Stage 1 first." - Verify
./plancasting/tech-stack.mdexists. If missing: STOP — "Stage 3 requires plancasting/tech-stack.md. Run Stage 0 first." - Verify spec validation passed: check
plancasting/_audits/spec-validation/report.mdfor PASS or CONDITIONAL PASS. If FAIL or missing: STOP — "Stage 3 requires spec validation. Run Stage 2B first." - Verify credentials:
grep -E 'YOUR_.*_HERE|TODO_.*|CHANGE_ME|PLACEHOLDER|^[A-Z_]+=\s*$' .env.localmust return no matches. - Validate credential tiers from
plancasting/tech-stack.md:- Red tier pipeline infrastructure credentials (TRANSMUTER_ANTHROPIC_API_KEY, E2B_API_KEY, SANDBOX_AUTH_TOKEN) must be present. Exception: If
plancasting/tech-stack.mdindicates a standalone project (no Transmuter platform), pipeline infrastructure credentials (TRANSMUTER_ANTHROPIC_API_KEY,E2B_API_KEY,SANDBOX_AUTH_TOKEN) may be absent — exclude them from validation. - Yellow tier product service credentials should be present (WARN if missing — can be added before Stage 5)
- Red tier pipeline infrastructure credentials (TRANSMUTER_ANTHROPIC_API_KEY, E2B_API_KEY, SANDBOX_AUTH_TOKEN) must be present. Exception: If
Known Failure Patterns
Avoid these common scaffolding failures:
- Over-generating files: Creating 200+ files when the product needs 80. Every file must trace to a PRD screen spec, API endpoint, or data model entity — no speculative files.
- Auth provider mismatch: always read
plancasting/tech-stack.mdfor the actual auth provider. - Dependency version conflicts: always verify compatibility before adding dependencies.
- Wrong directory structure: Creating
pages/router whenplancasting/tech-stack.mdspecifies App Router, or vice versa. - Missing cross-feature references: Hooks or functions that reference data from multiple features must be wired correctly from the start.
- OAuth callback missing session persistence: Callback page completes token exchange but never stores the session client-side — user bounces back to login. The callback must: (a) exchange code, (b) handle intermediate auth states, (c) persist session in ALL storage locations, (d) THEN navigate away.
Execution Phases
Phase 1: Analysis & Planning (Lead Only)
- Read and internalize the full context:
./plancasting/tech-stack.md— technology stack, auth provider, design direction./plancasting/prd/— all 18 files, focusing on feature map, screen specs, API specs, data model./plancasting/brd/— business rules, security requirements, compliance./CLAUDE.md— if it exists, read Part 1 rules carefully; never modify Part 1
- Generate
plancasting/_codegen-context.mdcontaining:- Naming conventions for backend functions, components, hooks, pages, types
- Directory structure decisions
- Cross-feature data flow map
- Auth check patterns
- Error handling patterns
- Feature flag architecture decisions
- Create the scaffold manifest template (
plancasting/_scaffold-manifest.md) with the expected file structure. Teammates will append their generated files as they work.
Phase 2: Spawn 5 Teammates in Parallel
Spawn all teammates simultaneously. Each has a distinct domain. See the detailed guide for complete teammate instructions. Tell every teammate that credentials are placeholders until Stage 5: no requests to third-party services, mock the clients in tests (CLAUDE.md § Safety-Critical Rules).
Teammate 1: "backend-schema-and-functions"
- Backend schema (complete — every table/model for every feature)
- All backend function files (queries, mutations, actions) organized by domain
- Cron/scheduled job definitions
- HTTP endpoints for webhooks
- Auth helper functions
Teammate 2: "frontend-pages-and-routing"
- Route structure from PRD information architecture (complete IA for full product)
- Page components with data loading for every screen in PRD
- Layouts, loading states, error boundaries, 404 states
- Root layout with providers, metadata, font/theme config
- Logo, favicon, and app icons from product logo in plancasting/tech-stack.md
- Backend client provider component
Teammate 3: "ui-components"
- Design tokens (
src/styles/design-tokens.ts) — GENERATE FIRST - Tailwind config customized to design direction
- Global CSS with
@configbridge for Tailwind v4 - All feature components organized by domain (all features)
- Custom hooks wrapping backend operations (all features)
- Utility files (utils, constants, validators, types)
Teammate 4: "feature-flags-and-config"
- Feature flag backend + hook + gate component
- Middleware (route protection, permission gating, locale detection)
- Auth configuration and role/permission definitions
- Environment configuration files
Teammate 5: "testing-and-ci-cd"
- Test infrastructure (vitest config, playwright config, setup files, module maps)
- Backend function tests (all features)
- Component tests (all features)
- E2E tests (all user flows from PRD)
- CI/CD pipelines (ci.yml, deploy.yml, preview.yml)
- Project config (package.json, tsconfig, eslint, prettier, gitignore)
plancasting/_progress.mdpre-populated with all featuresREADME.md
Phase 3: Coordination During Execution
While teammates work:
- Facilitate cross-team dependencies via messaging (schema finalized -> notify pages/components/tests).
- Resolve import path conflicts and shared type definitions.
- Ensure backend function names match what pages and hooks reference.
- Verify cross-feature consistency for shared data patterns.
Phase 4: Review & Integration
After all teammates complete:
- Perform comprehensive consistency review:
- Full-scope coverage: every PRD screen spec has a component, every API spec has a backend function, every data entity has a schema table
- Import validation, backend API references, schema completeness, index coverage
- Type consistency, PRD traceability, state coverage, auth checks, test coverage
- Cross-feature data flows, feature flag coverage
- No phase artifacts (no "Phase 1", "Phase 2" references)
- Finalize
plancasting/_scaffold-manifest.md— the explicit handoff from Stage 3 to Stage 5. Map every component to its target page, every hook to its consuming components and backend functions. - Generate
ARCHITECTURE.mdwith system architecture diagram (mermaid), directory structure, data flow diagrams, cross-feature flows, auth flow, feature flag flow, and PRD-to-code traceability matrix. - Update
CLAUDE.mdPart 2 ONLY — fill in placeholder sections with actual project details. never modify Part 1. Replace ALL bracketed placeholders ([PROJECT_NAME],[e.g., ...],[N]) with actual values. After verification passes (all Part 1 sections intact, no Part 2 placeholders remain), commit:git add CLAUDE.md && git commit -m 'chore: complete Stage 4 (CLAUDE.md verification)' - Generate
.claude/rules/starter rules:- Create the
.claude/rules/directory - Read the rule templates from
./plancasting/transmute-framework/rules-templates/(6 template files:_backend-template.md,_frontend-template.md,_api-contracts-template.md,_auth-template.md,_testing-template.md,_data-model-template.md) - For each template, render into a real rule file by:
a. Replacing directory placeholders (
[BACKEND_DIR],[FRONTEND_DIR], etc.) with actual project paths fromtech-stack.mdb. Replacing tech-stack-specific placeholders ([VALIDATOR_SYSTEM],[ERROR_TYPE],[AUTH_HELPER], etc.) with actual values derived fromtech-stack.mdc. Adding correctpathsfrontmatter based on actual project paths (Claude Code scopes rules bypaths; a rule file without it loads in every session) d. SettingSource: Stage 3andEvidence: tech-stack.mdon each rule e. Removing all<!-- TODO: Stage 3 — ... -->comments and template banners - Write rendered files to
.claude/rules/backend.md,.claude/rules/frontend.md,.claude/rules/api-contracts.md,.claude/rules/auth.md,.claude/rules/testing.md,.claude/rules/data-model.md - Respect limits: max 15 rules per file, max 8 files total
- Create the
- Create
plancasting/_rules-candidates.mdwith a header explaining the staging workflow, candidate format, and confidence criteria (per CLAUDE.md § 'Path-Scoped Rules'). Starts with zero candidates — Stages 5B and 6R will populate it. - Update the Path-Scoped Rules table in CLAUDE.md Part 2 with actual rule files (file paths,
pathspatterns, rule counts). - Copy framework files into project: Copy
execution-guide.mdandfeature_scenario_generation.mdfrom the Transmute Framework Template into./plancasting/transmute-framework/so they are available for later stages (6V, 7V) without depending on the template location. Note: The CLAUDE.md template lives at the ROOT of the Transmute Framework Template, not insideplancasting/transmute-framework/. - Fix any inconsistencies found during review.
- Output final summary: file counts, PRD coverage percentages (target: 100% for screens, APIs, data entities), cross-feature touchpoints, test file counts, feature flags, unresolved issues.
- Gate Decision:
- PASS: All required output files exist, PRD coverage ≥ 95%, CLAUDE.md Part 2 fully populated,
_progress.mdlists all features,.claude/rules/populated → proceed to Stage 4 - CONDITIONAL PASS: PRD coverage ≥ 80% with gaps documented, all critical P0 features scaffolded, CLAUDE.md Part 2 populated and
_progress.mdpresent (rules may be incomplete) → proceed to Stage 4 with noted gaps - FAIL: PRD coverage < 80%, OR CLAUDE.md Part 2 not populated, OR
_progress.mdmissing, OR required output files missing → re-run Stage 3
- PASS: All required output files exist, PRD coverage ≥ 95%, CLAUDE.md Part 2 fully populated,
Terminology note: "Coverage" in this stage means scaffold coverage — the percentage of PRD screens (SC-xxx), API endpoints, and data entities that have corresponding scaffold files. This differs from Stage 2B's "coverage" (BRD→PRD requirement traceability).
Scaffold Coverage Definition: Scaffold coverage is the percentage of PRD-specified features that have at least one scaffold file. Coverage ≥95% = PASS, ≥80% = CONDITIONAL PASS, <80% = FAIL. Note: this differs from Stage 2B's requirement traceability coverage.
Phase 5: Shutdown
Verify all file modifications are saved and all output files exist before declaring Stage 3 complete.
Session Recovery
If resuming a previously interrupted scaffold generation:
- Check which files already exist in backend dir,
src/, ande2e/. - Check if
plancasting/_codegen-context.mdandplancasting/_progress.mdexist (Phase 1+ completed). - Check if
ARCHITECTURE.mdexists (Phase 4 reached). - Resume from the earliest incomplete phase. Do not regenerate existing complete files.
- Only respawn teammates whose assigned files are missing or incomplete.
- Clean up incomplete files before re-spawning. Re-spawned teammates regenerate from scratch and append to
plancasting/_scaffold-manifest.md.
Code Generation Guidelines (Apply to ALL Teammates)
- Full Scope: Scaffold ALL features from the PRD. Nothing is deferred.
- PRD Traceability: Every file starts with
@tracescomment block referencing PRD/BRD IDs. - TypeScript Strict Mode: All code compiles under
strict: true. Noany, no@ts-ignore. - Structurally Complete Functions: Correct signatures, validators, auth checks, error handling. Business logic bodies contain a reasonable first-pass with
// ⚠️ STUB: <description>markers for Stage 5 to replace. - Design Quality: Read
plancasting/tech-stack.md"Design Direction" section. Use design tokens. Build with the selected UI component library. Avoid generic AI aesthetics. - Tailwind v4 Critical:
globals.cssmust include@configdirective. Semantic color tokens must be incolorspalette. - Component Patterns: Default to Server Components. Implement ALL states. Include ARIA and keyboard nav.
- No Phase References: All features ship enabled. Conditional rendering only via ops/experiment/permission flags.
- CLAUDE.md Protection: Never rewrite from scratch. Only extend Part 2.
- Scaffold Manifest: Every generated file must be listed in
plancasting/_scaffold-manifest.md. - File Size: Keep files under 300 lines. Split if larger.
Output Specification
Upon completion, the following artifacts must exist:
| Artifact | Path | Description |
| Code generation context | plancasting/_codegen-context.md | Naming conventions, patterns, decisions |
| Scaffold manifest | plancasting/_scaffold-manifest.md | Component-to-page and hook-to-component mapping |
| Progress tracker | plancasting/_progress.md | All features listed, all marked Not Started |
| Architecture doc | ARCHITECTURE.md | System diagrams, directory structure, traceability |
| CLAUDE.md (updated) | CLAUDE.md | Part 2 filled with project-specific config |
| Rules (starter) | .claude/rules/*.md | 6 rule files rendered from templates |
| Rules candidates | plancasting/_rules-candidates.md | Empty staging file for future rule candidates |
| Backend schema + functions | [backend-dir]/ | Complete schema, all domain function files |
| Frontend pages | [pages-dir]/ | All routes with layouts, loading, error states |
| UI components | src/components/ | All feature components, design system |
| Design tokens | src/styles/design-tokens.ts | Complete design system tokens |
| Hooks | src/hooks/ | All custom hooks wrapping backend operations |
| Tests | [backend-dir]/__tests__/, src/__tests__/, e2e/ | Full test infrastructure |
| CI/CD | .github/workflows/ | ci.yml, deploy.yml, preview.yml |
| Project config | Root | package.json, tsconfig, eslint, tailwind, etc. |
| README | README.md | Setup, development, testing, deployment guide |
| Framework files | plancasting/transmute-framework/ | execution-guide.md, feature_scenario_generation.md |
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.

