agentleFS
Dokkabei97Dokkabei97/forged-claude-code/skills/cto/mvp-scaffold/SKILL.md

mvp-scaffold

Skill2 starsChanged 9 months agoMITView on GitHub

Generates complete project scaffolding from tech stack selection to initial structure. Supports Next.js, FastAPI, Spring Boot and other major stacks with startup-optimized templates including auth, database, CI/CD, and deployment configuration.

  • Reads credentials
  • Installs packages

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start with Auth: Every SaaS needs login. Include it from Day 1.

    line 172
  2. Very specific:

    Environment Variables: Never hardcode secrets. .env.example as contract.

    line 175
  3. Distinctive:

    Create .env.example with all required variables

    line 196
  4. Distinctive:

    Write business logic beyond boilerplate

    line 201

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

MVP Scaffold - Startup Project Scaffolding

Overview

Generates a complete, production-ready project skeleton optimized for startup speed. From zero to deployable in minutes, not days.


1. When to Apply

TriggerBehavior
New project creationFull scaffolding with interactive stack selection
Adding a new service to monorepoService scaffolding within existing structure
"scaffold", "init", "bootstrap" keywordsActivate scaffolding workflow

2. Supported Stacks

Frontend

StackTemplateBest For
Next.js 15 (App Router)next-startupFull-stack web app
React + Vitereact-viteSPA / Dashboard
React Native (Expo)expo-startupMobile-first product

Backend

StackTemplateBest For
Next.js API Routes(included in next-startup)Simple API
FastAPIfastapi-startupPython / AI / Data
Spring Boot (Kotlin)spring-startupEnterprise B2B
NestJSnest-startupComplex Node.js API

Database

ChoiceSetup Included
Supabase (PostgreSQL)Auth + DB + Storage + Realtime
Prisma + PostgreSQLORM + migrations + seeding
Drizzle + PostgreSQLLightweight ORM + type-safe
MongoDB AtlasMongoose models + connection

3. Scaffolding Flow

Phase 1: Stack Selection

1. Ask product type (web/mobile/api/full-stack)
2. Ask backend preference (or recommend based on team skills)
3. Ask database preference (or recommend based on data model)
4. Ask auth method (Supabase Auth / Clerk / NextAuth)
5. Ask deployment target (Vercel / Railway / Docker)

Phase 2: Project Generation

Next.js Startup Template Structure:

{project-name}/
├── src/
│   ├── app/
│   │   ├── layout.tsx          # Root layout with providers
│   │   ├── page.tsx            # Landing page
│   │   ├── (auth)/
│   │   │   ├── login/page.tsx
│   │   │   └── signup/page.tsx
│   │   ├── (dashboard)/
│   │   │   └── page.tsx
│   │   └── api/
│   │       └── health/route.ts # Health check endpoint
│   ├── components/
│   │   ├── ui/                 # shadcn/ui components
│   │   └── layout/
│   ├── lib/
│   │   ├── supabase.ts        # DB client
│   │   ├── utils.ts
│   │   └── constants.ts
│   └── types/
│       └── index.ts
├── prisma/                     # If Prisma selected
│   └── schema.prisma
├── public/
├── .env.example                # Environment template
├── .env.local                  # (gitignored)
├── .gitignore
├── package.json
├── tsconfig.json
├── tailwind.config.ts
├── next.config.ts
├── docker-compose.yml          # Local dev DB
├── Dockerfile                  # Production build
├── .github/
│   └── workflows/
│       └── ci.yml              # CI pipeline
├── CLAUDE.md                   # AI context
└── README.md

FastAPI Startup Template Structure:

{project-name}/
├── src/
│   ├── main.py                 # FastAPI app entry
│   ├── config.py               # Settings with pydantic
│   ├── api/
│   │   ├── __init__.py
│   │   ├── deps.py             # Dependencies
│   │   └── v1/
│   │       ├── __init__.py
│   │       └── endpoints/
│   ├── models/                 # SQLAlchemy models
│   ├── schemas/                # Pydantic schemas
│   ├── services/               # Business logic
│   └── core/
│       ├── security.py
│       └── database.py
├── tests/
├── alembic/                    # DB migrations
├── .env.example
├── pyproject.toml
├── Dockerfile
├── docker-compose.yml
├── .github/workflows/ci.yml
└── README.md

Phase 3: Essential Configurations

Always Include:

  • .env.example with all required env vars (no real values)
  • .gitignore with comprehensive ignore patterns
  • docker-compose.yml for local development
  • GitHub Actions CI pipeline (lint + test + build)
  • CLAUDE.md with project context for AI assistants
  • Health check endpoint (/api/health)

Phase 4: Post-Scaffold Checklist

## Setup Checklist
- [ ] Copy .env.example to .env.local and fill in values
- [ ] Run `docker-compose up -d` for local DB
- [ ] Run `npm install` / `pip install -e .`
- [ ] Run `npm run dev` / `uvicorn src.main:app --reload`
- [ ] Verify health check: http://localhost:3000/api/health
- [ ] Make your first commit

4. Key Principles

  1. Start with Auth: Every SaaS needs login. Include it from Day 1.
  2. Database Migrations: Set up migration tooling immediately.
  3. CI from Start: Even a simple lint+test pipeline prevents regressions.
  4. Environment Variables: Never hardcode secrets. .env.example as contract.
  5. Docker for Dev: Consistent local development across team.

5. Tool Coordination

ToolPurpose
Bashnpx create-next-app, pip install, docker-compose
WriteGenerate config files, boilerplate code
ReadCheck existing project files for conflicts
GlobVerify generated structure

6. Boundaries

Will:

  • Generate complete project structure with all essential configurations
  • Set up auth, database, CI/CD boilerplate
  • Create .env.example with all required variables
  • Provide post-scaffold setup instructions

Will Not:

  • Deploy the project (use deploy-pipeline skill)
  • Write business logic beyond boilerplate
  • Choose the stack for you (use tech-stack-advisor agent)
  • Set up monitoring or observability (Phase 2 concern)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.