| name | code-scaffolder |
| description | Generate idiomatic project scaffolding, config files, and boilerplate per language โ use when starting a new project, adding a service, or bootstrapping a library/package (e.g. "scaffold a Rust CLI", "set up a new FastAPI project"). |
Code Scaffolder
Generate idiomatic project structures, configuration files, and boilerplate for new projects across the languages covered by the framework's language expert agents (see the registry, claude.json).
When to Use
- Starting a new project from scratch
- Adding a new service to an existing system
- Setting up test infrastructure for a project
- Creating CI/CD pipeline configurations
- Bootstrapping a library or package
Workflow
- Confirm the language, project type, and project name; ask for any missing requirements (framework choice, package manager, target platform).
- Create the directory structure and essential files from the matching template below, adapting names and conventions to the project.
- Generate the language-appropriate config files (see Configuration Files).
- Hand off implementation to the matching language expert agent from the roster; involve devops-orchestrator for CI/CD and Dockerfiles, database-specialist for migrations.
Templates by Language
Rust โ CLI Application
my-cli/
โโโ Cargo.toml
โโโ src/
โ โโโ main.rs
โ โโโ cli.rs # clap argument definitions
โ โโโ config.rs # configuration handling
โ โโโ error.rs # custom error types (thiserror)
โโโ tests/integration.rs
โโโ .github/workflows/ci.yml
โโโ .gitignore
โโโ README.md
Rust โ Library Crate
my-lib/
โโโ Cargo.toml
โโโ src/
โ โโโ lib.rs
โ โโโ types.rs
โโโ tests/integration.rs
โโโ examples/basic.rs
โโโ benches/benchmark.rs
โโโ README.md
Go โ HTTP Service
my-service/
โโโ go.mod
โโโ cmd/server/main.go
โโโ internal/
โ โโโ handler/handler.go
โ โโโ service/service.go
โ โโโ repository/repository.go
โโโ pkg/models/models.go
โโโ tests/integration_test.go
โโโ Dockerfile
โโโ Makefile
โโโ README.md
Python โ FastAPI Application
my-api/
โโโ pyproject.toml
โโโ src/my_api/
โ โโโ __init__.py
โ โโโ main.py # FastAPI app
โ โโโ routes/__init__.py
โ โโโ models/__init__.py
โ โโโ services/__init__.py
โ โโโ config.py
โโโ tests/
โ โโโ conftest.py
โ โโโ test_routes.py
โโโ Dockerfile
โโโ .github/workflows/ci.yml
โโโ README.md
TypeScript โ Next.js Application
my-app/
โโโ package.json
โโโ tsconfig.json
โโโ next.config.ts
โโโ src/
โ โโโ app/
โ โ โโโ layout.tsx
โ โ โโโ page.tsx
โ โ โโโ globals.css
โ โโโ components/ui/
โ โโโ lib/utils.ts
โโโ tests/setup.ts
โโโ .eslintrc.json
โโโ .prettierrc
โโโ README.md
TypeScript โ Node.js API
my-api/
โโโ package.json
โโโ tsconfig.json
โโโ src/
โ โโโ index.ts
โ โโโ routes/
โ โโโ middleware/
โ โโโ services/
โ โโโ types/
โโโ tests/setup.ts
โโโ Dockerfile
โโโ README.md
C# โ ASP.NET Core Web API
MyApi/
โโโ MyApi.sln
โโโ src/MyApi/
โ โโโ MyApi.csproj
โ โโโ Program.cs
โ โโโ Controllers/
โ โโโ Services/
โ โโโ Models/
โ โโโ appsettings.json
โโโ tests/MyApi.Tests/
โ โโโ MyApi.Tests.csproj
โ โโโ Controllers/
โโโ Dockerfile
โโโ README.md
Java โ Spring Boot Application
my-app/
โโโ pom.xml (or build.gradle)
โโโ src/
โ โโโ main/
โ โ โโโ java/com/example/myapp/
โ โ โ โโโ MyAppApplication.java
โ โ โ โโโ controller/
โ โ โ โโโ service/
โ โ โ โโโ repository/
โ โ โ โโโ model/
โ โ โโโ resources/application.yml
โ โโโ test/java/com/example/myapp/MyAppApplicationTests.java
โโโ Dockerfile
โโโ README.md
CI/CD Template (GitHub Actions)
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
- name: Build
- name: Test
- name: Lint
Configuration Files
Generate the appropriate config files per language:
- Rust:
Cargo.toml, clippy.toml, rustfmt.toml
- Go:
go.mod, Makefile, .golangci.yml
- Python:
pyproject.toml, ruff.toml (or .flake8), mypy.ini
- TypeScript:
tsconfig.json, .eslintrc.json, .prettierrc
- C#:
.csproj, .editorconfig, Directory.Build.props
- Java:
pom.xml or build.gradle, checkstyle.xml
Integration
After scaffolding, delegate follow-on work to the appropriate specialists from the roster:
- The matching language expert agent โ implementation of application logic
- devops-orchestrator โ CI/CD pipelines and Dockerfile hardening
- database-specialist โ database schema and migration setup
Scaffolded code should compile/run out of the box (empty but valid), and the test scaffold should pass before handing off.