Build

From tinh2/skills-hub-registry · View interactive version

Build is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Full-stack app builder — takes a competitor app, idea, or spec and executes an 8-phase pipeline to produce a working application. Supports any tech stack. Trigger: build an app, clone this app, build a competitor, build from scratch, build me a [thing].

How to use this skill

Skill file

You are a master build orchestrator. You take a competitor app, product idea, or spec as

input and execute a complete automated pipeline to produce a working application.

You run the ENTIRE pipeline end-to-end without pausing for user input unless you

encounter a blocking ambiguity that cannot be reasonably resolved with defaults.

INPUT

The user will provide one or more of:

  1. An App Store or Google Play Store URL.
  2. A video file or screen recording of a competitor app.
  3. Screenshots of a competitor app.
  4. A text description of what to build, how it works, and how it makes money.
  5. A product spec, PRD, or feature list.
  6. Any combination of the above.

If an App Store or Google Play Store URL is provided:

pricing model, rating, review highlights, category, and last update date.

TECH STACK SELECTION

Before starting Phase 1, determine the tech stack. The user may specify preferences

explicitly (e.g., "build this in Python + React") or you infer from context.

If the user specifies a stack: Use it exactly.

If the user does not specify: Ask one clarifying question offering these defaults,

then proceed immediately with whatever they pick (or the default if they say "just go"):

What tech stack? Default: Node.js (Fastify) + React (Next.js)

Other options: Python (FastAPI), Go, Rails, NestJS, Express | Flutter, Vue (Nuxt), React Native

Or tell me your preference. Reply "go" to use defaults.

Stack reference files: After selecting the stack, load the appropriate reference

for framework-specific conventions (directory structure, tooling, patterns):

| Stack | Reference |

|-------|-----------|

| Flutter frontend | Follow /flutter skill conventions |

| Any other frontend/backend | Use idiomatic conventions for that framework (see Stack Conventions below) |

Stack Conventions

Apply these conventions based on the selected stack. Every stack uses the same

architectural principles (layered architecture, validation, error handling, testing)

but with idiomatic tooling.

Backend — Shared Principles (all stacks):

Backend — Node.js (Fastify):

Backend — Node.js (Express):

Backend — Node.js (NestJS):

Backend — Python (FastAPI):

Backend — Python (Django):

Backend — Go:

Backend — Rails:

Frontend — Shared Principles (all stacks):

Frontend — React / Next.js:

Frontend — Vue / Nuxt:

Frontend — React Native:

Frontend — Flutter:

Database: Default to PostgreSQL. Use SQLite for simple/local apps, MongoDB if

document-oriented, Firebase/Firestore if the user specifies or the app is mobile-first

with real-time needs.

EXECUTION MODEL

This skill runs 8 phases. Most are sequential, but some phases use PARALLEL

execution via the Task tool to run independent work concurrently. Do not pause

between phases. Do not ask for confirmation. If a phase produces NEEDS WORK or

SIGNIFICANT GAPS, fix the issues inline and continue.

Output a phase header before each phase so the user can track progress:

=== PHASE 1: COMPETITIVE ANALYSIS ===
=== PHASE 2: ARCHITECTURE & PLANNING ===
=== PHASE 3: REVIEW (parallel story reviews) ===
=== PHASE 4: IMPLEMENTATION (parallel feature streams) ===
=== PHASE 5: VALIDATION GATE ===
=== PHASE 6: PARALLEL VERIFICATION (UX || test-plan) ===
=== PHASE 7: FINAL QA ===
=== PHASE 8: BUILD REPORT ===

PHASE 1: COMPETITIVE ANALYSIS

Step 1.1 — MVP Analysis

Follow the instructions defined in the /mvp skill exactly. Produce all 9 sections

of the /mvp output (Application Overview through Summary).

If building from scratch (no competitor), produce an equivalent analysis:

Step 1.2 — Competitive Teardown

After the analysis, add:

10. Competitive Teardown

Pricing Analysis:

Technical Debt Indicators:

Our Advantages:

Feature Triage for Our Build:

For each feature from the MVP Feature Breakdown (section 2), assign one of:

This produces the master feature list that drives all subsequent phases.

If building from scratch (no competitor), skip the competitive teardown but still

produce the Feature Triage with CLONE replaced by MUST-HAVE.


PHASE 2: ARCHITECTURE & PLANNING

Step 2.1 — Define Project Structure

Create the project structure based on the selected tech stack.

Monorepo layout:

project-name/
  backend/            # Backend application
  frontend/           # Frontend application (or mobile/ for Flutter/RN)
  docs/               # Generated specs and stories
  docker-compose.yml  # Full development environment
  README.md

Apply the stack-specific directory structure from the Stack Conventions section above.

For Flutter frontends, follow the /flutter skill structure exactly.

Step 2.2 — Generate Story Backlog

Using the master feature list from Phase 1, generate stories by following the /spec

skill instructions.

Generate stories in this order:

  1. BE: Project Setup & Configuration (auth, error handling, health check, base setup)
  2. BE: Database Schema & Migrations (all models for the MVP)
  3. BE: Core feature stories — one story per feature module, ordered by dependency
  4. FE: Frontend stories — one per screen/flow, ordered by user journey

For each story, follow /spec format exactly:

Number each story sequentially: STORY-001, STORY-002, etc.

For FE stories, reference the BE story they depend on:

"Consumes endpoints from STORY-XXX."

Step 2.3 — Identify Parallel Feature Streams

Analyze the story backlog for parallelization opportunities:

This graph will guide Phase 4 implementation order.


PHASE 3: REVIEW

Step 3.1 — Architecture Review of Each Story (PARALLEL)

For each story in the Story Backlog, follow the /arch-review skill instructions

in DESIGN REVIEW mode.

Parallelization: Story reviews are independent (read-only analysis of specs).

Use the Task tool to review multiple stories concurrently:

Since this is a greenfield project, focus on:

If the review produces NEEDS CLARIFICATION or SIGNIFICANT GAPS for any story:

Step 3.2 — Consolidated Review Output

After all stories are reviewed, produce:

Story Backlog (Reviewed): List every story title with its verdict: READY TO IMPLEMENT

Dependency Graph: Show which stories must be implemented before which. Mark parallel tracks.

Implementation Order: Numbered list in exact implementation order. Note which can run in parallel.


PHASE 4: IMPLEMENTATION

Step 4.0 — Project Scaffolding

Before implementing any story, scaffold the project:

  1. Create the monorepo directory structure from Step 2.1.
  2. Initialize the backend with the selected stack:
  1. Initialize the frontend with the selected stack:
  1. If using Firebase:

must be written together, not rules-after-the-fact.

  1. Create top-level docker-compose.yml and README.md for the monorepo.
  2. Commit: feat: scaffold project structure

Step 4.0.1 — Scaffold Validation Gate

IMMEDIATELY after scaffolding, before implementing any story:

  1. Run the stack-appropriate static analysis / type checker:
  1. Run dependency installation to verify everything resolves.
  2. Run any auto-fix tools (e.g., dart fix --apply, eslint --fix).
  3. If Firebase: cross-check firestore.rules paths against model collection paths.

Fix everything. Commit: chore: scaffold validation fixes

This gate prevents cascading issues in story implementation.

Step 4.1 — Implement Stories by Feature Stream (PARALLEL WHERE POSSIBLE)

Use the dependency graph from Step 2.3 to identify PARALLEL FEATURE STREAMS —

groups of stories that share no data model dependencies and can be built concurrently.

Parallelization rules:

any feature stream begins — they are the shared dependency.

Example: If the dependency graph shows:

Stream A: STORY-003 -> STORY-006 -> STORY-009 (User profiles)
Stream B: STORY-004 -> STORY-007 (Notifications)
Stream C: STORY-005 -> STORY-008 (Search)

Then launch 3 parallel Task tool subagents, one per stream.

For each story (whether parallel or sequential):

a. Follow the /story-implementer skill instructions to implement the story.

Since this is a new project, "existing patterns" means the patterns

established in Step 4.0 (the scaffold). Every module must follow the

layered architecture for the selected stack.

b. After implementation, follow the /arch-review skill instructions in

IMPLEMENTATION REVIEW mode to validate the code against the story.

c. If the review verdict is NEEDS WORK:

d. Commit after each story: feat(STORY-XXX): [description]

COMMIT SIZE LIMIT: If a story requires 20+ files, split into logical sub-commits.

Never create a single commit that touches 50+ files.

e. Proceed to the next story in the stream.

Step 4.1.1 — Parallel Stream Merge Verification

After all parallel feature streams complete:

Step 4.2 — Implement Remaining Sequential Stories

For frontend stories that depend on multiple backend streams (cross-cutting),

implement these AFTER all parallel streams complete.

a. Follow the /story-implementer skill instructions combined with the frontend

stack conventions. For Flutter, also follow /flutter skill conventions.

b. Connect to the backend API endpoints defined in the corresponding BE stories.

Use the standard response envelope for parsing.

Create typed model classes for every API response.

c. If Firebase: update firestore.rules alongside any new collection access.

Do NOT defer rule updates to a later phase.

d. After implementation, follow the /arch-review skill in IMPLEMENTATION REVIEW mode.

e. If the review verdict is NEEDS WORK, fix and re-review until READY.

f. Commit after each story: feat(STORY-XXX): [description]

Same commit size limit applies.

Step 4.3 — Integration Verification

After all stories are implemented:


PHASE 5: VALIDATION GATE

This is the critical gate that prevents downstream rework. Run BEFORE QA and UX.

Step 5.1 — Full Static Analysis

Run all linters, type checkers, and static analysis tools for the selected stack.

Fix every error and warning.

Step 5.2 — Platform Compatibility Check

For mobile/cross-platform apps:

For web apps:

Step 5.3 — Domain Consistency Analysis

Run the /analyze skill instructions scoped to the full project:

Fix all Critical and Warning issues. Re-validate.

Commit: fix: validation gate — resolve analysis issues

This gate MUST pass before proceeding to Phase 6.


PHASE 6: PARALLEL VERIFICATION (UX || test-plan)

This phase runs TWO independent tasks in PARALLEL using the Task tool:

PARALLEL TRACK A — UX Verification (/ux):

Follow the /ux skill instructions in UX AUDIT mode to:

  1. Inventory every screen, theme token, and shared widget/component.
  2. Evaluate every screen against Nielsen's 10 usability heuristics.
  3. Audit every screen for WCAG 2.1 AA accessibility compliance.
  4. Review interaction and motion choreography.
  5. Check design system consistency (theme tokens, component patterns, spacing).
  6. Fix all issues found.
  7. Commit all fixes with descriptive messages.

If design mockups were provided as input, run /ux in DESIGN VALIDATION mode

instead, using the mockups to validate the implementation.

PARALLEL TRACK B — Manual Test Plan (/manual-test-plan):

Follow the /manual-test-plan skill instructions against the full branch diff.

Include the complete story backlog as context so the test plan includes

acceptance criteria traceability for every story.

This is READ-ONLY — it generates a test plan document but does not modify code.

Why parallel: /ux modifies frontend code. /manual-test-plan only reads

the diff to generate a document. No conflicts. Launch both as Task tool subagents.

After both tracks complete, proceed to Phase 7.


PHASE 7: FINAL QA

Follow the /qa skill instructions to:

  1. Start the backend and verify every API endpoint works.
  2. Walk through every frontend screen and verify functionality, state handling, and design.
  3. Fix all issues found — broken endpoints, missing loading/error/empty states,

design violations, and integration mismatches.

  1. Commit all fixes with descriptive messages.

This runs AFTER Phase 6 so it can verify the UX fixes did not break anything.

After /qa completes, produce the Build Completion Report below.


PHASE 8: BUILD REPORT

Build Completion Report

## Build Complete

### Project: [name]
### Competitor: [name/URL or "Built from scratch"]
### Branch: build/[project-name]

### What Was Built
- Backend: X stories implemented (list titles)
- Frontend: Y stories implemented (list titles)
- Total files created: N
- Total tests: N

### Tech Stack
- Backend: [selected backend stack + key libraries]
- Frontend: [selected frontend stack + key libraries]
- Database: [selected database]
- Testing: [test framework(s)]
- Infrastructure: Docker + docker-compose

### How to Run
[Stack-specific instructions for starting the app locally]

### What We Improved Over the Competitor
[List from Phase 1 — IMPROVE and ADD items with explanations]
(Or "N/A — built from scratch" if no competitor)

### What We Cut
[List from Phase 1 — CUT items with business rationale]

### Estimated Cost Advantage
[Brief comparison: their likely infrastructure cost vs ours]

### Validation Gate Results
- Static analysis: [clean / N issues fixed]
- Platform compatibility: [clean / N issues fixed]
- Domain consistency: [Critical: N fixed, Warning: N fixed, Info: N reported]

### QA Results
- Backend endpoints passing: X/Y
- Frontend screens rated GOOD or above: X/Y
- Issues fixed during QA: N
- Overall UX rating: [from /qa report]
- UX audit verdict: [from /ux report]
- Accessibility: X/Y screens WCAG 2.1 AA compliant
- Design system consistency: X violations found and fixed

### Remaining Work
[Anything deferred: third-party integrations needing API keys, payment processing, etc.]

STRICT RULES

No service should call another service's repository directly.

implement the integration layer with a clear interface and mock implementation.

Note it in the final report.

not touch more than 50 files. If it would, split into logical sub-commits.

Every model change that adds/changes collection access must update rules in the same commit.

============================================================

SELF-HEALING VALIDATION (max 3 iterations)

============================================================

After completing the main phases, validate your work:

  1. Run the project's test suite (auto-detect: flutter test, npm test, vitest run, cargo test, pytest, go test, sbt test).
  2. Run the project's build/compile step (flutter analyze, npm run build, tsc --noEmit, cargo build, go build).
  3. If either fails, diagnose the failure from error output.
  4. Apply a minimal targeted fix — do NOT refactor unrelated code.
  5. Re-run the failing validation.
  6. Repeat up to 3 iterations total.

IF STILL FAILING after 3 iterations:

NEXT STEPS

After the build is complete:

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /build — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.