App Builder Skill
Project Type Detection
| Keywords |
Project Type |
Primary Agents |
| landing, website, marketing |
Static Site |
frontend-specialist |
| dashboard, admin, crud |
Web App |
frontend + backend |
| api, rest, graphql |
API Only |
backend-specialist |
| mobile, ios, android |
Mobile App |
mobile-developer |
| cli, command, terminal |
CLI Tool |
backend-specialist |
| game, unity, godot |
Game |
game-developer |
| ai, ml, rag |
AI/ML |
ai-engineer |
| e-commerce, shop, store |
E-commerce |
backend + frontend |
Tech Stack Selection (2025)
Web Applications
| Scenario |
Stack |
| Full-stack, SSR |
Next.js 14+ (App Router) |
| SPA with API |
React + Vite |
| Vue ecosystem |
Nuxt 3 |
| Static/Blog |
Astro |
| E-commerce |
Next.js + Medusa/Shopify |
Mobile Applications
| Scenario |
Stack |
| Cross-platform (JS team) |
React Native + Expo |
| Cross-platform (any) |
Flutter |
| iOS only |
SwiftUI |
| Android only |
Kotlin + Jetpack Compose |
Backend/API
| Scenario |
Stack |
| Node.js, edge-ready |
Hono |
| Node.js, high perf |
Fastify |
| Python, async |
FastAPI |
| PHP, full-featured |
Laravel |
| E-commerce |
Magento/Sylius/PrestaShop |
Database
| Scenario |
Stack |
| General purpose |
PostgreSQL |
| Serverless |
Neon (PG), Turso (SQLite) |
| Document store |
MongoDB |
| Vector search |
PostgreSQL + pgvector |
| Cache |
Redis / Upstash |
Project Templates
Next.js Full-Stack
project/
├── src/
│ ├── app/ # App Router
│ │ ├── (auth)/ # Auth group
│ │ ├── api/ # API routes
│ │ ├── layout.tsx
│ │ └── page.tsx
│ ├── components/ # Shared components
│ │ └── ui/ # UI primitives
│ ├── lib/ # Utilities
│ └── server/ # Server-only code
├── prisma/ # Database schema
├── public/
├── next.config.ts
├── tailwind.config.ts
└── package.json
FastAPI Backend
project/
├── app/
│ ├── api/
│ │ └── v1/
│ │ └── endpoints/
│ ├── core/ # Config, security
│ ├── models/ # Pydantic models
│ ├── db/ # Database
│ └── main.py
├── tests/
├── alembic/ # Migrations
├── pyproject.toml
└── Dockerfile
React Native + Expo
project/
├── app/ # Expo Router
│ ├── (tabs)/
│ ├── _layout.tsx
│ └── index.tsx
├── components/
├── hooks/
├── store/ # State management
├── services/ # API clients
├── app.json
└── package.json
Design Context Gate & Pre-Flight Discipline (Web & UI Projects)
Before scaffolding UI pages, establish the design foundation to avoid generic "AI slop":
1. Design Context Gate
Gather 3 essential dimensions (ask once, or infer with clear stated assumptions):
- Audience: Who will use this? What do they care about?
- Use Case: What is the single primary action the page drives? (Sign up, purchase, explore, read, configure?)
- Tone: Pick an explicit extreme — editorial, brutalist, soft, utilitarian, luxury, playful, technical, austere ("clean and modern" is not a tone).
2. Pre-Flight Scan (Existing Projects)
Before generating new pages or components, scan:
design.md (or DESIGN.md) — if present, it is the locked design system and overrides defaults.
- Font Stack — inspect package dependencies and CSS imports (preserve existing font pairings).
- Palette Tokens — read
:root variables, Tailwind @theme definitions, and OKLCH color spaces.
- Motion Stance — detect installed motion libraries (
framer-motion, motion, gsap) vs motion-cut projects.
- Framework & Spacing Scale — conform to existing grid and spacing scale (4-pt / 8-pt).
3. Structural Variety & Macrostructures
Break the repetitive "Hero → 3 features → CTA → footer" template. Select a named whole-page macrostructure matched to the brief:
- Bento Grid: Modular irregular grid where visual rhythm comes from varying card sizes and asymmetric spans.
- Long Document: Literature-led, memo/journal prose format with inline section heads.
- Marquee Hero: The hero fills the viewport above the fold; content shifts below the fold into a list or dense grid.
- Stat-Led: A massive metric/number anchors the narrative; subsequent content qualifies the data.
- Workbench: Guided product tour with real screenshots in frames; focus on functional workflow over marketing copy.
- Conversational FAQ: Bold questions and honest accordion answers reading like an interview with the product.
- Manifesto: Large declaration typography; establishes core philosophy before presenting product.
- Photographic / Quote-Led: Led by primary imagery or borrowed credibility pull-quotes.
Agent Coordination
New Project Flow
1. project-planner → Task breakdown & tech selection
2. database-architect → Schema design & migrations
3. backend-specialist → API & business logic implementation
4. frontend-specialist → UI implementation (anti-slop, 8 states)
5. test-engineer → Unit, integration, and E2E test coverage
6. devops-implementer → Deployment & CI/CD setup
Feature Addition Flow
1. explorer-agent → Understand codebase
2. project-planner → Plan changes
3. [appropriate agent] → Implement
4. test-engineer → Add tests
5. code-reviewer → Review
Common Patterns
Authentication
- JWT for APIs
- Session for web apps
- OAuth for third-party
State Management
- Server state: TanStack Query
- Client state: Zustand/Jotai
- Form state: React Hook Form
Styling
- Tailwind CSS as default
- CSS Modules for isolation
- Styled Components for dynamic
Testing
- Unit: Jest/Vitest
- E2E: Playwright
- API: Supertest
Best Practices
✅ Start with TypeScript
✅ Add linting (ESLint/Biome)
✅ Use environment variables
✅ Set up CI/CD from start
✅ Document as you build
❌ Don't skip tests
❌ Don't hardcode config
❌ Don't ignore accessibility
❌ Don't over-engineer early
Rules
- MUST confirm the stack selection with the user before scaffolding — the matrix above is a default, not a verdict
- MUST include
.gitignore, .env.example, a README, a linter config, and a working test harness in every scaffold
- NEVER overwrite an existing project directory without the user's explicit go-ahead
- NEVER scaffold Create React App or other EOL starters — steer to Vite, Next.js, or Astro instead
- CRITICAL: prefer the team's existing expertise over trend-chasing. If the team ships Laravel, scaffolding FastAPI "because it's faster" creates training debt that outweighs the runtime gain.
Gotchas
- Next.js App Router (
app/) and Pages Router (pages/) can coexist technically, but middleware, layouts, and loading-state conventions diverge. Pick one router per project and never mix inside a single feature — debugging the overlap wastes hours.
- Expo Router (file-based, Expo SDK 49+) and React Navigation (imperative) use completely different navigation APIs. Tutorials mix freely; an agent copying code across the split produces uncompilable projects.
- Prisma on SQLite silently ignores features that work on Postgres: no
CHECK constraints, no deferrable foreign keys, no array columns, limited enum support. Dev-on-SQLite / prod-on-Postgres teams hit this at deploy time.
- FastAPI
--reload uses a file watcher that rebuilds Pydantic models on every edit — startup time doubles and benchmark numbers are unreliable. Disable reload for perf tests.
npm create vite@latest respects --template but npx create-next-app@latest prompts interactively even with flags. Fully unattended scaffolds need --ts --tailwind --eslint --app --src-dir --import-alias spelled out.
When NOT to Load
- For modifying an existing project's stack — use
/migrate or /refactor-plan
- For adding a feature to a running app — use
/plan and the relevant language-pattern skill (/typescript-patterns, etc.)
- For onboarding to an unfamiliar codebase — use
/onboard or /explore
- For deciding between 2-3 specific stacks under stated constraints — use
/architecture-decision
- For plugin or agent scaffolding inside ai-toolkit itself — use
/plugin-creator, /agent-creator
1---2name: app-builder3description: App scaffolding: Next.js, Vite, Nuxt, Astro, FastAPI, Django, Laravel, RN, Flutter. Triggers: scaffold, bootstrap, new project, starter, dashboard, mobile app.4---56# App Builder Skill78## Project Type Detection910| Keywords | Project Type | Primary Agents |11|----------|--------------|----------------|12| landing, website, marketing | Static Site | frontend-specialist |13| dashboard, admin, crud | Web App | frontend + backend |14| api, rest, graphql | API Only | backend-specialist |15| mobile, ios, android | Mobile App | mobile-developer |16| cli, command, terminal | CLI Tool | backend-specialist |17| game, unity, godot | Game | game-developer |18| ai, ml, rag | AI/ML | ai-engineer |19| e-commerce, shop, store | E-commerce | backend + frontend |2021---2223## Tech Stack Selection (2025)2425### Web Applications2627| Scenario | Stack |28|----------|-------|29| Full-stack, SSR | Next.js 14+ (App Router) |30| SPA with API | React + Vite |31| Vue ecosystem | Nuxt 3 |32| Static/Blog | Astro |33| E-commerce | Next.js + Medusa/Shopify |3435### Mobile Applications3637| Scenario | Stack |38|----------|-------|39| Cross-platform (JS team) | React Native + Expo |40| Cross-platform (any) | Flutter |41| iOS only | SwiftUI |42| Android only | Kotlin + Jetpack Compose |4344### Backend/API4546| Scenario | Stack |47|----------|-------|48| Node.js, edge-ready | Hono |49| Node.js, high perf | Fastify |50| Python, async | FastAPI |51| PHP, full-featured | Laravel |52| E-commerce | Magento/Sylius/PrestaShop |5354### Database5556| Scenario | Stack |57|----------|-------|58| General purpose | PostgreSQL |59| Serverless | Neon (PG), Turso (SQLite) |60| Document store | MongoDB |61| Vector search | PostgreSQL + pgvector |62| Cache | Redis / Upstash |6364---6566## Project Templates6768### Next.js Full-Stack6970```71project/72├── src/73│ ├── app/ # App Router74│ │ ├── (auth)/ # Auth group75│ │ ├── api/ # API routes76│ │ ├── layout.tsx77│ │ └── page.tsx78│ ├── components/ # Shared components79│ │ └── ui/ # UI primitives80│ ├── lib/ # Utilities81│ └── server/ # Server-only code82├── prisma/ # Database schema83├── public/84├── next.config.ts85├── tailwind.config.ts86└── package.json87```8889### FastAPI Backend9091```92project/93├── app/94│ ├── api/95│ │ └── v1/96│ │ └── endpoints/97│ ├── core/ # Config, security98│ ├── models/ # Pydantic models99│ ├── db/ # Database100│ └── main.py101├── tests/102├── alembic/ # Migrations103├── pyproject.toml104└── Dockerfile105```106107### React Native + Expo108109```110project/111├── app/ # Expo Router112│ ├── (tabs)/113│ ├── _layout.tsx114│ └── index.tsx115├── components/116├── hooks/117├── store/ # State management118├── services/ # API clients119├── app.json120└── package.json121```122123---124125## Design Context Gate & Pre-Flight Discipline (Web & UI Projects)126127Before scaffolding UI pages, establish the design foundation to avoid generic "AI slop":128129### 1. Design Context Gate130Gather 3 essential dimensions (ask once, or infer with clear stated assumptions):131- **Audience**: Who will use this? What do they care about?132- **Use Case**: What is the single primary action the page drives? (Sign up, purchase, explore, read, configure?)133- **Tone**: Pick an explicit extreme — *editorial, brutalist, soft, utilitarian, luxury, playful, technical, austere* ("clean and modern" is not a tone).134135### 2. Pre-Flight Scan (Existing Projects)136Before generating new pages or components, scan:137- **`design.md`** (or `DESIGN.md`) — if present, it is the locked design system and overrides defaults.138- **Font Stack** — inspect package dependencies and CSS imports (preserve existing font pairings).139- **Palette Tokens** — read `:root` variables, Tailwind `@theme` definitions, and OKLCH color spaces.140- **Motion Stance** — detect installed motion libraries (`framer-motion`, `motion`, `gsap`) vs motion-cut projects.141- **Framework & Spacing Scale** — conform to existing grid and spacing scale (4-pt / 8-pt).142143### 3. Structural Variety & Macrostructures144Break the repetitive "Hero → 3 features → CTA → footer" template. Select a named whole-page macrostructure matched to the brief:145- **Bento Grid**: Modular irregular grid where visual rhythm comes from varying card sizes and asymmetric spans.146- **Long Document**: Literature-led, memo/journal prose format with inline section heads.147- **Marquee Hero**: The hero fills the viewport above the fold; content shifts below the fold into a list or dense grid.148- **Stat-Led**: A massive metric/number anchors the narrative; subsequent content qualifies the data.149- **Workbench**: Guided product tour with real screenshots in frames; focus on functional workflow over marketing copy.150- **Conversational FAQ**: Bold questions and honest accordion answers reading like an interview with the product.151- **Manifesto**: Large declaration typography; establishes core philosophy before presenting product.152- **Photographic / Quote-Led**: Led by primary imagery or borrowed credibility pull-quotes.153154---155156## Agent Coordination157158### New Project Flow159160```1611. project-planner → Task breakdown & tech selection1622. database-architect → Schema design & migrations1633. backend-specialist → API & business logic implementation1644. frontend-specialist → UI implementation (anti-slop, 8 states)1655. test-engineer → Unit, integration, and E2E test coverage1666. devops-implementer → Deployment & CI/CD setup167```168169### Feature Addition Flow170171```1721. explorer-agent → Understand codebase1732. project-planner → Plan changes1743. [appropriate agent] → Implement1754. test-engineer → Add tests1765. code-reviewer → Review177```178179---180181## Common Patterns182183### Authentication184- JWT for APIs185- Session for web apps186- OAuth for third-party187188### State Management189- Server state: TanStack Query190- Client state: Zustand/Jotai191- Form state: React Hook Form192193### Styling194- Tailwind CSS as default195- CSS Modules for isolation196- Styled Components for dynamic197198### Testing199- Unit: Jest/Vitest200- E2E: Playwright201- API: Supertest202203---204205## Best Practices206207- ✅ Start with TypeScript208- ✅ Add linting (ESLint/Biome)209- ✅ Use environment variables210- ✅ Set up CI/CD from start211- ✅ Document as you build212213- ❌ Don't skip tests214- ❌ Don't hardcode config215- ❌ Don't ignore accessibility216- ❌ Don't over-engineer early217218## Rules219220- **MUST** confirm the stack selection with the user before scaffolding — the matrix above is a default, not a verdict221- **MUST** include `.gitignore`, `.env.example`, a README, a linter config, and a working test harness in every scaffold222- **NEVER** overwrite an existing project directory without the user's explicit go-ahead223- **NEVER** scaffold Create React App or other EOL starters — steer to Vite, Next.js, or Astro instead224- **CRITICAL**: prefer the team's existing expertise over trend-chasing. If the team ships Laravel, scaffolding FastAPI "because it's faster" creates training debt that outweighs the runtime gain.225226## Gotchas227228- Next.js App Router (`app/`) and Pages Router (`pages/`) can coexist technically, but middleware, layouts, and loading-state conventions diverge. Pick one router per project and never mix inside a single feature — debugging the overlap wastes hours.229- Expo Router (file-based, Expo SDK 49+) and React Navigation (imperative) use completely different navigation APIs. Tutorials mix freely; an agent copying code across the split produces uncompilable projects.230- Prisma on SQLite silently ignores features that work on Postgres: no `CHECK` constraints, no deferrable foreign keys, no array columns, limited `enum` support. Dev-on-SQLite / prod-on-Postgres teams hit this at deploy time.231- FastAPI `--reload` uses a file watcher that rebuilds Pydantic models on every edit — startup time doubles and benchmark numbers are unreliable. Disable reload for perf tests.232- `npm create vite@latest` respects `--template` but `npx create-next-app@latest` prompts interactively even with flags. Fully unattended scaffolds need `--ts --tailwind --eslint --app --src-dir --import-alias` spelled out.233234## When NOT to Load235236- For modifying an **existing** project's stack — use `/migrate` or `/refactor-plan`237- For adding a feature to a running app — use `/plan` and the relevant language-pattern skill (`/typescript-patterns`, etc.)238- For onboarding to an unfamiliar codebase — use `/onboard` or `/explore`239- For deciding between 2-3 specific stacks under stated constraints — use `/architecture-decision`240- For plugin or agent scaffolding inside ai-toolkit itself — use `/plugin-creator`, `/agent-creator`