Scaffolds a brand-new, empty full-stack project from zero — the complete solution, all project/class/file structure, every app, and every test project — ready for feature work via sdlc-skill. Generates the .NET 10 Aspire event-driven microservices backend (services + API gateway + AppHost + shared/domain/infrastructure), an Angular web app, an Expo / React Native mobile app, and all test projects (backend unit, frontend unit, API/integration, functional, performance), plus the documentation s...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Project Scaffold?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/elhajahmadj-project-scaffold)
---
name: project-scaffold
description: >-
Scaffolds a brand-new, empty full-stack project from zero — the complete solution, all
project/class/file structure, every app, and every test project — ready for feature work via
sdlc-skill. Generates the .NET 10 Aspire event-driven microservices backend (services + API
gateway + AppHost + shared/domain/infrastructure), an Angular web app, an Expo / React Native
mobile app, and all test projects (backend unit, frontend unit, API/integration, functional,
performance), plus the documentation set. Captures the project's brand (colors + fonts) into a
design-tokens source of truth. Invoke when starting a new project, or when the user says
"scaffold/bootstrap/create a new project", "set up the repo", "build the blank project", or
sdlc-skill detects a greenfield (empty) workspace. Triggers: new project, scaffold, bootstrap,
blank project, set up repo, create solution, project structure, greenfield init.
---
# Project Scaffold
Build a **complete but empty** full-stack project the team can start shipping features into
immediately. The output is a compiling, runnable skeleton with every layer, app, and test
project in place — **no product features yet**. Feature work then flows through **`sdlc-skill`**.
This skill owns **project-init only**. Once the skeleton builds and runs, hand control to
`sdlc-skill` for all subsequent change work.
> **Naming.** Throughout this bundle, `App` is a **placeholder** for the real project name chosen
> at init. Ask the user for the name first; use it (PascalCase for .NET namespaces, kebab-case for
> folders) everywhere `App` appears below. Example: name "Orbit" → `Orbit.AppHost`,
> `Orbit.Service.Identity`, `OrbitDbContext`, `Orbit.sln`.
## Step 0 — Gather inputs (ask once, up front)
Ask the user for all of these before generating anything:
1. **Project name** (→ the `App` placeholder) and a one-line description.
2. **Initial services.** The backend is event-driven microservices. Always scaffold
**`Identity`** (auth) + **`ApiGateway`**; ask which **domain services** to start with (e.g.
`Orders`, `Catalog`, `Notifications`). Default to one domain service (`Core`) if unsure — more
are added later via `sdlc-skill`.
3. **Brand — colors + fonts** (for the design-tokens source of truth). Accept pasted hex/HSL values,
a palette, or an uploaded **style-guide image / PDF / Figma export**. If the user has no brand
yet, use a neutral accessible starter palette and mark it **PLACEHOLDER — confirm before launch**.
4. **Which platforms** to include now: backend + web + mobile (default all three). Mobile can be
deferred, but scaffold its folder + parity note so it's never forgotten.
5. **Target remote** (optional) for the first push. Never push unless asked.
Record the answers in `memory.md` and `handoff.md` as the project's founding decisions.
## Architecture to generate (default: full event-driven microservices)
Mirror this proven layout (the architecture the bundle is tuned for). Each service owns its data
and talks to others **only through integration events** (outbox → idempotent inbox over RabbitMQ) —
no service-to-service HTTP, no cross-service table access.
```
<repo root>/
App.sln
AgentReadMe.md # onboarding (see the doc set below)
requirements.md dependencies.md handoff.md memory.md
docker-compose.yml .env.example .gitignore
docs/ # the full doc set (see "Documentation set")
scripts/ # db-up, db-add-migration (rebuilds before generating), run-local
src/
backend/
App.AppHost/ # .NET Aspire orchestrator: Postgres + Redis + RabbitMQ + services + gateway + web
App.ServiceDefaults/ # shared Aspire wiring (telemetry, health, resilience, forwarded headers)
App.ApiGateway/ # YARP reverse proxy (the single public ingress; health at :8080/health)
App.Service.Identity/ # auth service (always)
App.Service.<Name>/ # one project per domain service
App.Domain/ # domain entities/value objects (or per-service Domain folders)
App.Infrastructure/ # EF Core, AppDbContext, Data/Migrations, outbox/inbox, repositories
App.Shared.Contracts/ # public DTOs / API contracts
App.Shared.Events/ # integration event records + catalog
frontend/
web/ # Angular app (proxies /api, /health, /hubs to the gateway)
mobile/ # Expo / React Native app (managed workflow)
tests/
back-end unit/
App.TestCommon/ # shared fakers, fixtures, FixedTimeProvider, in-memory db, RecordingEventPublisher
App.Service.<Name>.UnitTests/ # xUnit + FluentAssertions + Moq + Bogus, one per service
integration/ # over-the-wire API tests (xUnit, live stack), grouped under Services/
functional/ # NUnit + Playwright UI tests (Page Object Model)
performance/ # NBomber load tests with per-endpoint SLOs
```
**If the user chose a lighter start** (only when they override the default): scaffold a single
`App.Api` backend with the same Clean-Architecture layers (`App.Domain`, `App.Infrastructure`,
`App.Application`) and skip the gateway/broker — but keep the event seam (outbox table + an
in-process dispatcher) so it can split into services later. Default is the full topology above.
## Generation order
Generate top-down, verifying each layer compiles before the next.
1. **Repo + solution.** `git init`; create the solution (`dotnet new sln -n App`). **Note:** on .NET 10+
this produces the XML **`App.slnx`** format (not `App.sln`) — use whichever file `dotnet new sln`
actually emits in all later `dotnet sln add` / `dotnet build <solution>` calls. Add `.gitignore`
(`dotnet new gitignore` + web/mobile `node_modules`, `bin/obj`, `.env`), `.env.example`.
2. **Backend projects.** Create each project with `dotnet new` (webapi for services + gateway,
classlib for domain/infra/shared, `aspire-apphost` + `aspire-servicedefaults` for Aspire),
`dotnet sln add` each, and wire references (services → Domain/Infrastructure/Shared; every
service → ServiceDefaults). Add **Central Package Management** (`Directory.Packages.props`).
3. **Data + events.** In `App.Infrastructure`: `AppDbContext`, `Data/Migrations/`, the **outbox**
(`IEventPublisher.Stage` before `SaveChanges`) + **inbox** (`IEventHandler<T>`, idempotent,
stale-safe). Generate the **first** EF migration (`InitialBaseline`) and wire migrate-on-startup
with a `HasPendingModelChanges()` guard. Provide `scripts/db-add-migration.ps1` that **rebuilds
before generating** (prevents the `PendingModelChanges` startup crash).
4. **Gateway + AppHost.** YARP routes in `App.ApiGateway`; `App.AppHost` references every service +
the gateway + the web app, and provisions Postgres/Redis/RabbitMQ containers.
5. **Web app.** `ng new` into `src/frontend/web` (routing + SCSS/CSS), add a proxy config to the
gateway, Jest (`jest-preset-angular`) for unit tests, and the **design-tokens** in `styles.css`
(from Step 0 brand). One sample routed page + a shared component library folder.
6. **Mobile app.** `create-expo-app` into `src/frontend/mobile` (TypeScript, managed workflow),
`theme.ts` design-tokens mirror, `jest-expo` for unit tests, runtime-derived dev API origin, one
sample screen + navigation.
7. **Test projects.** Create each test project, add to `App.sln`:
- `tests/back-end unit/App.TestCommon` + `App.Service.<Name>.UnitTests` (xUnit, FluentAssertions,
Moq, Bogus) with one passing sanity test per service.
- `tests/integration` (xUnit `WebApplicationFactory` / over-the-wire client + one health-endpoint
test).
- `tests/functional` (NUnit + Playwright + a Page Object base + one smoke test).
- `tests/performance` (NBomber + one smoke scenario with a placeholder SLO).
8. **Design-tokens.** Write the brand into `skills`-style tokens: the design-system doc
(`docs/design-system.md`), `web/src/styles.css`, and `mobile/src/constants/theme.ts`. If brand is
a placeholder, leave `FILL`/`PLACEHOLDER` markers and record a dependency to confirm it.
9. **Documentation set.** Create every doc below with a real skeleton (not empty), cross-linked.
10. **Dev scripts + compose.** `scripts/db-up.ps1`, `run-local.ps1`; `docker-compose.yml` as the
non-Aspire way to run the stack.
## Documentation set to create
Seed all of these at root / under `docs/` (the same registry the rest of the bundle maintains):
- `AgentReadMe.md` — onboarding: what the app is, how to build/run/test, conventions, how to push.
- `requirements.md` — feature registry (`F-###`), starts empty-but-structured.
- `dependencies.md` — external services/credentials/infra still needed (`D-###`).
- `handoff.md` — architecture + current state (seed with the founding decisions).
- `memory.md` — standing conventions + key decisions (seed with Step-0 answers).
- `docs/plans.md` — detailed implementation plans for picked-up items; each entry = the plan + an
`## Execution` section (`F-###`/`D-###`).
- `docs/backlog.md` — the single backlog + ideas + risks, in sections: **Ready for Dev** (ranked),
**Suggestions** (`AS-###`), **Risks / AI-Flags** (`AF-###`).
- `docs/tests.md` — test registry with **Unit / API-Integration / Functional / Performance** sections;
`docs/missing-tests.md` — coverage gaps with reasons.
- `docs/application-guide.md` (big-picture), `docs/design-system.md` (the design-tokens doc).
- `docs/html/build.mjs` — HTML mirror generator. It writes `docs/html/*.html` mirrors **and a navigation
hub `documentsIndex.html` at the repo root** that links every generated doc (like a docs index). Register
each doc in `build.mjs` so it renders and `--check` passes.
## Verify before handing off
- ✓ `dotnet build App.sln` succeeds.
- ✓ Each unit-test project runs green (`dotnet test` on the sanity tests, isolated `--artifacts-path`).
- ✓ `ng build` (web) and `npx tsc --noEmit` (web + mobile) are clean; web/mobile sample unit test passes.
- ✓ The Aspire AppHost starts, provisions Postgres/Redis/RabbitMQ, and the gateway health check at
`:8080/health` is green; the web app serves; the mobile app loads in Expo Go.
- ✓ The first EF migration applies on startup with no `PendingModelChanges`.
- ✓ The design-tokens exist in all three places (doc + web + mobile); placeholders are flagged.
- ✓ The documentation set exists and cross-links resolve.
## Hand-off
Report the generated structure, what builds/runs, and any `PLACEHOLDER`/`FILL` the user must
confirm (brand, SLOs). Then state: **"Skeleton ready — feature work now goes through `sdlc-skill`."**
Commit only if asked (one `chore: scaffold <App> project skeleton` commit; stage explicit paths;
keep `.env` and local config uncommitted).