Create app

From SethGammon/Citadel · View interactive version

Create app is an AI agent skill from the GitHub repository SethGammon/Citadel. End-to-end app creation from a single description. Five tiers: blank project, guided, templated, fully generated, or feature addition to existing codebase. Routes through PRD, architecture, and Archon campaign with verification at every step.

How to use this skill

Skill file

/create-app — From Description to Verified Application

Orientation

Use when: building a new app from scratch -- full scaffold, design system, and feature set from a single description.

Don't use when: adding a feature to an existing app (use /marshal or /archon); generating a single component (use /scaffold).

Tier Detection

Use when the user wants to create an app, add a feature, or scaffold a project. Classify the input into one of five tiers:

Tier 1: Blank Project

Tier 2: Guided

Tier 3: Templated

If no template matches, fall through to Tier 2.

Tier 4: Generated (Full Autonomy)

2 phases. Quality spot-checks every phase. Circuit breakers armed.

Tier 5: Feature Addition (Existing Codebase)

the feature is well-scoped and all conditions are machine-verifiable.

Tier Classification

| Input Pattern | Tier |

|---|---|

| "blank project", "scaffold", "new empty" | 1 |

| "help me build", "I want to create", "guide me" | 2 |

| "todo app", "blog", "dashboard", well-known app type | 3 |

| "build me [detailed]", "create [app]", confident description | 4 |

| "add [feature]", "implement [feature]", existing project + feature description | 5 |

| Ambiguous | Default to Tier 2 (safest) |

Protocol

Step 1: CLASSIFY

Read the user's input. Determine the tier. Announce what you'll do in plain language — not tier numbers. If the classification is wrong, accept user overrides ("just scaffold it" → Tier 1, "just build it" → Tier 4).

Proposal-only and pre-approval turns

Use the host session's configured effort level for this routing and proposal

turn. Downstream skills keep their own effort settings.

When the user requests a stack proposal or first steps before approving a build,

present that proposal after the initial project and matching-template check.

Choose reasonable defaults and state assumptions. Defer environment diagnostics,

additional stack/architecture research, dependency installation, and application

code until approval. A proposal-only turn ends at that approval boundary; it

does not enter the downstream build campaign.

Step 2: EXECUTE TIER

Tier 1: Invoke /scaffold. Done.

Tier 2: /prd → user approves → /architect → user approves → Archon campaign → brief user after each major phase.

Tier 3: Check .planning/_templates/app-types/ for template → present PRD, ask for changes → /architect with template defaults → Archon campaign.

Tier 4:

  1. /prd express mode (0-1 questions)
  2. User approves PRD (only mandatory checkpoint)
  3. /architect (auto-approve if all end conditions are machine-verifiable)
  4. Archon campaign with ALL safety systems active:
  1. Execute autonomously until complete or parked
  2. Run full verification of all PRD end conditions, present results

Tier 5 (Feature Addition):

  1. Read existing codebase — file tree, package.json, key entry points, existing patterns
  2. /prd in feature mode (max 2 questions)
  3. User approves feature spec (one mandatory checkpoint)
  4. /architect in existing codebase mode — Phase 0 always "Baseline" (run typecheck + tests, record counts). Auto-approve if machine-verifiable.
  5. Archon campaign — every phase end condition includes "no new typecheck errors vs baseline" and "existing tests pass"
  6. On completion: verify all feature end conditions + baseline regression check, present results

Step 3: VERIFY (All Tiers except 1)

Check each PRD end condition (run commands, check files, invoke /live-preview for visual checks). Report PASS / PARTIAL / FAIL with specifics.

Step 4: DELIVER

Present: what was built, what was verified, what needs attention, how to run it, and suggested next step (e.g., /postmortem or deploy command).

Quality Gates

Fringe Cases

Vague requirements: Default to Tier 2 and ask clarifying questions before producing the PRD.

Project already initialized: Existing source files (src/, app/, package.json with deps) → automatically classify as Tier 5. Do not scaffold over an existing project.

If .planning/ does not exist: /prd and /architect will create it. If not possible, present inline and ask the user to run /do setup first.

Tier misclassification: Switch immediately on user correction without re-reading the input.

Exit Protocol

After the campaign completes and verification runs, output:

---HANDOFF---
- App: {name}
- Built: {feature ledger summary}
- Verified: {N}/{total} end conditions passed
- Status: {complete | partial | failed}
- To run: {start command}
- Next: {suggested next step, e.g., /postmortem or deploy command}
- Reversibility: amber -- multi-tier creation, revert the creation commits
---
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.