app-builder

Main application building orchestrator. Creates full-stack applications from natural language requests. Determines project type, selects tech stack, coordinates agents. Use for creating new applications, scaffolding projects, or building features from scratch.

$ Installer

git clone https://github.com/xenitV1/claude-code-maestro /tmp/claude-code-maestro && cp -r /tmp/claude-code-maestro/skills/app-builder ~/.claude/skills/claude-code-maestro

// tip: Run this command in your terminal to install the skill


name: app-builder description: Main application building orchestrator. Creates full-stack applications from natural language requests. Determines project type, selects tech stack, coordinates agents. Use for creating new applications, scaffolding projects, or building features from scratch.

App Builder - Application Building Orchestrator

Purpose

Analyzes user's natural language requests, determines the appropriate tech stack, plans project structure, and coordinates expert agents to create a working application.


1. Project Type Detection

1.1 Keyword Matrix

KeywordsProject TypeTemplate
blog, post, articleBlogastro-static
e-commerce, product, cart, paymentE-commercenextjs-saas
dashboard, panel, managementAdmin Dashboardnextjs-fullstack
api, backend, service, restAPI Serviceexpress-api
python, fastapi, djangoPython APIpython-fastapi
mobile, android, ios, react nativeMobile App (RN)react-native-app
flutter, dartMobile App (Flutter)flutter-app
portfolio, personal, cvPortfolionextjs-static
crm, customer, salesCRMnextjs-fullstack
saas, subscription, stripe, paymentSaaSnextjs-saas
landing, promotional, marketingLanding Pagenextjs-static
docs, documentation, contentDocumentationastro-static
extension, plugin, chrome, browserBrowser Extensionchrome-extension
desktop, electron, windows, macDesktop Appelectron-desktop
cli, command line, terminal, toolCLI Toolcli-tool
monorepo, workspace, multi-packageMonorepomonorepo-turborepo

1.2 Detection Process

1. Tokenize user request
2. Extract keywords
3. Determine project type
4. Detect missing information โ†’ forward to conversation-manager
5. Suggest tech stack

2. Tech Stack Selection

2.1 Default Stack (Web App - 2025)

Frontend:
  framework: Next.js 15 (Stable)
  language: TypeScript 5.7+
  styling: Tailwind CSS v4 (Alpha/Stable)
  state: React 19 Actions / Server Components
  bundler: Turbopack (Stable for Dev)

Backend:
  runtime: Node.js 23 (Native Test Runner)
  framework: Next.js API Routes / Hono (for Edge)
  validation: Zod / TypeBox

Database:
  primary: PostgreSQL
  orm: Prisma / Drizzle
  hosting: Supabase / Neon

Auth:
  provider: Auth.js (v5) / Clerk

Monorepo:
  tool: Turborepo 2.0 (New Terminal UI)

2.2 Alternative Options

NeedDefaultAlternative
Real-time-Supabase Realtime, Socket.io
File storage-Cloudinary, S3
PaymentStripeLemonSqueezy, Paddle
Email-Resend, SendGrid
Search-Algolia, Typesense

3. Agent Coordination

3.1 Agent Pipeline

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                   APP BUILDER (Orchestrator)                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                              โ”‚
                              โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                     PROJECT PLANNER                          โ”‚
โ”‚  โ€ข Task breakdown                                            โ”‚
โ”‚  โ€ข Dependency graph                                          โ”‚
โ”‚  โ€ข File structure planning                                   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                              โ”‚
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ–ผ                   โ–ผ                   โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ DATABASE        โ”‚ โ”‚ BACKEND         โ”‚ โ”‚ FRONTEND        โ”‚
โ”‚ ARCHITECT       โ”‚ โ”‚ SPECIALIST      โ”‚ โ”‚ SPECIALIST      โ”‚
โ”‚                 โ”‚ โ”‚                 โ”‚ โ”‚                 โ”‚
โ”‚ โ€ข Schema design โ”‚ โ”‚ โ€ข API routes    โ”‚ โ”‚ โ€ข Components    โ”‚
โ”‚ โ€ข Migrations    โ”‚ โ”‚ โ€ข Controllers   โ”‚ โ”‚ โ€ข Pages         โ”‚
โ”‚ โ€ข Seed data     โ”‚ โ”‚ โ€ข Middleware    โ”‚ โ”‚ โ€ข Styling       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
          โ”‚                   โ”‚                   โ”‚
          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                              โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                 PARALLEL PHASE (Optional)                    โ”‚
โ”‚  โ€ข Security Auditor โ†’ Vulnerability check                   โ”‚
โ”‚  โ€ข Test Engineer โ†’ Unit tests                               โ”‚
โ”‚  โ€ข Performance Optimizer โ†’ Bundle analysis                  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                              โ”‚
                              โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                     DEVOPS ENGINEER                          โ”‚
โ”‚  โ€ข Environment setup                                         โ”‚
โ”‚  โ€ข Preview deployment                                        โ”‚
โ”‚  โ€ข Health check                                              โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

3.2 Execution Order

PhaseAgent(s)Parallel?Prerequisite
1Project PlannerโŒ-
2Database ArchitectโŒPlan ready
3Backend SpecialistโŒSchema ready
4Frontend Specialistโœ…API ready (partial)
5Security Auditor, Test Engineerโœ…Code ready
6DevOps EngineerโŒAll code ready

4. Project Scaffolding

4.1 Directory Structure (Next.js Full-Stack)

project-name/
โ”œโ”€โ”€ prisma/
โ”‚   โ”œโ”€โ”€ schema.prisma
โ”‚   โ”œโ”€โ”€ migrations/
โ”‚   โ””โ”€โ”€ seed.ts
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ app/
โ”‚   โ”‚   โ”œโ”€โ”€ layout.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ page.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ globals.css
โ”‚   โ”‚   โ”œโ”€โ”€ api/
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ [resource]/
โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ route.ts
โ”‚   โ”‚   โ””โ”€โ”€ [feature]/
โ”‚   โ”‚       โ””โ”€โ”€ page.tsx
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”œโ”€โ”€ ui/
โ”‚   โ”‚   โ””โ”€โ”€ [feature]/
โ”‚   โ”œโ”€โ”€ lib/
โ”‚   โ”‚   โ”œโ”€โ”€ db.ts
โ”‚   โ”‚   โ”œโ”€โ”€ auth.ts
โ”‚   โ”‚   โ””โ”€โ”€ utils.ts
โ”‚   โ”œโ”€โ”€ hooks/
โ”‚   โ””โ”€โ”€ types/
โ”œโ”€โ”€ public/
โ”œโ”€โ”€ .env.example
โ”œโ”€โ”€ .env.local
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ tailwind.config.ts
โ”œโ”€โ”€ tsconfig.json
โ””โ”€โ”€ README.md

4.2 Core Files

Files automatically created for every project:

  • package.json - Dependencies
  • tsconfig.json - TypeScript config
  • tailwind.config.ts - Tailwind config
  • .env.example - Environment variables template
  • README.md - Project documentation
  • .gitignore - Git ignore rules
  • prisma/schema.prisma - Database schema

5. Feature Building

5.1 Feature Analysis

Request: "add payment system"

Analysis:
โ”œโ”€โ”€ Required Changes:
โ”‚   โ”œโ”€โ”€ Database: orders, payments tables
โ”‚   โ”œโ”€โ”€ Backend: /api/checkout, /api/webhooks/stripe
โ”‚   โ”œโ”€โ”€ Frontend: CheckoutForm, PaymentSuccess
โ”‚   โ””โ”€โ”€ Config: Stripe API keys
โ”‚
โ”œโ”€โ”€ Dependencies:
โ”‚   โ”œโ”€โ”€ stripe package
โ”‚   โ””โ”€โ”€ Existing user authentication
โ”‚
โ””โ”€โ”€ Estimated Time: 15-20 minutes

5.2 Iterative Enhancement

1. Analyze existing project
2. Create change plan
3. Present plan to user
4. Get approval
5. Apply changes
6. Test
7. Show preview

6. Context Management

6.1 Project State

{
  "projectPath": "/path/to/project",
  "projectType": "nextjs-ecommerce",
  "techStack": {
    "frontend": "next.js",
    "database": "postgresql",
    "auth": "clerk"
  },
  "features": ["product-listing", "cart", "checkout"],
  "pendingFeatures": ["admin-panel"],
  "lastModified": "2025-12-30T08:00:00Z"
}

6.2 Context Loading

At session start:
1. Read current-project.json
2. Load project state
3. Restore conversation history
4. Present summary to user (optional)

7. Error Handling

7.1 Build Errors

Error Type โ†’ Solution Strategy:

TypeScript Error โ†’ Fix type, add missing import
Missing Dependency โ†’ Run npm install
Port Conflict โ†’ Suggest alternative port
Database Error โ†’ Check migration, validate connection string

7.2 Recovery Strategy

1. Detect error
2. Try automatic fix
3. If failed, report to user
4. Suggest alternative
5. Rollback if necessary

8. Integration Points

This skill integrates with the following skills and agents:

ComponentRole
conversation-managerUser communication, Q&A
project-planner agentTask breakdown, dependency graph
frontend-specialist agentUI components, pages
backend-specialist agentAPI, business logic
database-architect agentSchema, migrations
devops-engineer agentDeployment, preview
progress-reporter scriptReal-time status updates

9. Usage Example

User: "Make an Instagram clone with photo sharing and likes"

App Builder Process:
1. Project type: Social Media App
2. Tech stack: Next.js + Prisma + Cloudinary + Clerk
3. 
   โ”Œโ”€ Create plan
   โ”œโ”€ Database schema (users, posts, likes, follows)
   โ”œโ”€ API routes (12 endpoints)
   โ”œโ”€ Pages (feed, profile, upload)
   โ””โ”€ Components (PostCard, Feed, LikeButton)
4. Coordinate agents
5. Report progress
6. Start preview
7. Notify user when complete