scaffold
Skill853 starsChanged yesterdayMITView on GitHub
Architecture-aware scaffolding (/scaffold) for .NET 10: generates a Features/<VerbPhrase>/ slice (IEndpoint, IHandler, validator, integration tests) or a new module (implementation + Contracts, ModuleDbContext), matching existing conventions. Use for "scaffold", "add feature", "new endpoint", "add entity", "new module". Do NOT use for deciding architecture (use modular-slices or architecture-advisor) or project setup (use dotnet-init).
53 other projects use a version of this.
Adopted by
Most recently taken up by
- Rune-kit/runetheir own version, first seen Nov 29, 2026
- genfeedai/genfeed.aitheir own version, first seen Nov 29, 2026
- DKutzen22/synapsetheir own version, first seen Nov 29, 2026
- howells/scaffoldtheir own version, first seen Nov 16, 2026
- chuckplayer/claude-agent-packtheir own version, first seen Nov 16, 2026
- mikeparcewski/wicked-gardentheir own version, first seen Nov 8, 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 versions53 projects use a version of this.
Word for word · 1
- codewithmukesh/dotnet-claude-kit★ 853100% same
Edited · 0
None found.
Wrote their own version · 52
- SethGammon/Citadel★ 927same 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★ 106same name
- Rune-kit/rune★ 96same name
42 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 repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- .opencode/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/dotnet-rules.mdCursor rule
- architecture-advisorSkill
- aspireSkill
- authenticationSkill
- build-fixSkill
- cachingSkill
- ci-cdSkill
- code-reviewSkill
- configurationSkill
- console-cliSkill
- dependency-injectionSkill
- desktop-mvvmSkill
- de-sloppifySkill
- dockerSkill
- doctorSkill
- dotnet-initSkill
- ef-coreSkill
- error-handlingSkill
- instinct-systemSkill
- loggingSkill
- messagingSkill
- migrateSkill
- minimal-apiSkill
- modern-csharpSkill
- modular-slicesSkill
- native-aotSkill
- openapiSkill
- opentelemetrySkill
- resilienceSkill
- specSkill
- tddSkill
- testingSkill
- verifySkill
- wrap-upSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 45 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 41
If it is ambiguous, ask rather than guess.
- Very specific: line 55
Use the instinct-system skill and Roslyn MCP tools (find_symbol, get_file_outline) on one existing feature folder:
- Very specific: line 73
A new module: create <Module> and <Module>.Contracts projects, <Module>Module : IModule, <Module>Permissions, <Module>DbContext : …
- Very specific: line 75
If the Modularity building blocks are missing, scaffold them first from skills/modular-slices/references/building-blocks.md.
- Distinctive: line 79
Every scaffolded feature must satisfy all of these:
- Distinctive: line 102
If the build or tests fail, fix and re-run before presenting results.
“Common” is measured: kept by at least 6 in 10 of the 45 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: Architecture-Aware Feature Scaffolding
What
Generates a complete feature, or a new module, with every file it needs. It never generates half a feature: the endpoint, handler, request, validator, response, EF configuration and integration tests come as one unit, in modern C# 14 (primary constructors, collection expressions, records, sealed internal classes, TypedResults).
The default shape is modular slices (ADR-008, modular-slices skill). Other architectures are supported when the codebase already uses them. File placement maps and code templates live in references/architecture-patterns.md:
- Modular slices (default):
src/Modules/<Module>/<Module>/Features/<VerbPhrase>/, one class per file - Single-project VSA: the same slice files in
Features/, without modules - Clean Architecture: files across Domain, Application, Infrastructure, Api
- DDD: aggregate methods and domain events, with a thin handler
When
- "Scaffold a [feature]", "create an endpoint for", "add a feature"
- "Generate CRUD for", "add entity", "new module", "scaffold a module"
- Starting a new feature after
/spechas produced an approved plan - Customizing generation templates or defining what a complete slice includes
How
Step 1: Detect the architecture
src/Modules/<Name>/<Name>and<Name>.Contractsprojects,IModuleclasses: modular slices- A single API project with
Features/folders and no modules: single-project VSA - Domain / Application / Infrastructure / Api projects: Clean Architecture (plus DDD if aggregates raise domain events)
- An empty or new solution: modular slices, unless the
architecture-advisorrecommended something else
If it is ambiguous, ask rather than guess. Load the matching skill (modular-slices, or architecture-advisor for single-project VSA, Clean Architecture, DDD).
Step 2: Clarify scope
Confirm before generating (skip what the plan already answers):
- Operations needed, named as verb phrases (
PlaceOrder,CancelOrder,ListOrders) - Key fields and invariants for any new entity
- Which module owns it, or whether it needs a new module (decide by who owns the data)
- The permission each endpoint needs, and whether the data is tenant-owned
- Events other modules need from this change, if any
Step 3: Learn conventions
Use the instinct-system skill and Roslyn MCP tools (find_symbol, get_file_outline) on one existing feature folder:
- Naming (
*Endpoint,*Handler,*Request,*RequestValidator,*Response) - How handlers report errors (
Problems.*codes, or an existingResult<T>) - Permission constants and test helper style (
{Module}Api.cs)
Match what exists. Do not bring the default conventions into a codebase that uses different ones.
Step 4: Generate
A feature (default): in Features/<VerbPhrase>/ create
<VerbPhrase>Endpoint.cs:internal sealed, implementsIEndpoint, relative route,.RequirePermission(...),.WithName(),.WithSummary(), injects the handler<VerbPhrase>Handler.cs:internal sealed, implementsIHandler, primary constructor with the moduleDbContextandTimeProvider,HandleAsyncreturning aResults<...>union<VerbPhrase>Request.csand<Noun>Response.cs:public sealed record(shared responses go inFeatures/Common/)<VerbPhrase>RequestValidator.cs:internal sealed, rules with meaningtests/<Module>.Tests/Features/<VerbPhrase>/<VerbPhrase>Tests.cs
A new module: create <Module> and <Module>.Contracts projects, <Module>Module : IModule, <Module>Permissions, <Module>DbContext : ModuleDbContext, add builder.AddModule<<Module>Module>() to the Api, Worker and Migrator hosts, add the projects to the .slnx, add a test project, and create the first migration.
If the Modularity building blocks are missing, scaffold them first from skills/modular-slices/references/building-blocks.md.
Step 5: Completeness checklist (mandatory)
Every scaffolded feature must satisfy all of these:
- Endpoint: one
IEndpointper feature, discovered automatically; nothing added toProgram.csor the module class - Permission:
.RequirePermission(...)or an explicit.AllowAnonymous()on every endpoint - Handler:
internal sealed, implementsIHandler, returns aTypedResultsunion; no mediator, no repository - Errors:
Problems.NotFound()/Conflict(code, ...)/RuleBroken(code, ...)with<module>.<reason>codes; never bare strings - Validator: FluentValidation with real rules, run by the shared endpoint filter
- Contracts: request/response records
public; everything elseinternal; anything other modules need goes in<Module>.Contracts - Data: entities paired with
IEntityTypeConfiguration<T>; reads useAsNoTracking()and projections; lists are paged (page size capped at 50) - Events: cross-module side effects published with
db.Publish(evt, clock)beforeSaveChangesAsync - CancellationToken: on every async method and passed to every async call
- Tests: success, permission refusal (403), validation refusal (400
validation-failed), each business rule code, and cross-tenant 404 for tenant-owned data
For single-project VSA the same list applies minus the Contracts and module items. For Clean Architecture or DDD codebases, follow their error and dispatch conventions (for example Result<T> with Mediator) but keep the endpoint, validation, data, cancellation and test items.
Step 6: Verify
dotnet build --no-restore
dotnet test --no-build --filter "FullyQualifiedName~{FeatureName}"
dotnet test --no-build --filter "FullyQualifiedName~Architecture"If the build or tests fail, fix and re-run before presenting results. The architecture tests catch a public handler or a reference to another module's implementation.
Example
User: /scaffold cancelling an order
Claude: Detected architecture: modular slices (src/Modules/Orders). Feature goes in Orders.
Created files:
src/Modules/Orders/Orders/Features/CancelOrder/CancelOrderEndpoint.cs
src/Modules/Orders/Orders/Features/CancelOrder/CancelOrderHandler.cs
src/Modules/Orders/Orders/Features/CancelOrder/CancelOrderRequest.cs
src/Modules/Orders/Orders/Features/CancelOrder/CancelOrderRequestValidator.cs
src/Modules/Orders/Orders.Contracts/OrderCancelled.cs -- event for Billing
tests/Orders.Tests/Features/CancelOrder/CancelOrderTests.cs
Handler returns Results<Ok<OrderResponse>, ProblemHttpResult>
Error codes: orders.cannot-cancel (409)
Tests: success, 403 without orders.manage, 400 empty reason, 409 shipped order, 404 other tenant
Checklist: 10/10 | Build: PASS | Tests: 5/5 PASS | Architecture tests: PASSRelated
modular-slices: the default architecture and its building blocksarchitecture-advisor: single-project slices, Clean Architecture and DDD referencesdotnet-init: set up the project and CLAUDE.md before scaffoldingtdd: write the feature's tests first, then scaffold to make them pass
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.

