Project Architect
A documentation-first project planning system that produces implementation-ready blueprints
and Claude Code-ready prompts. The philosophy: think deeply, document thoroughly, then
execute with zero ambiguity.
Output Pipeline
[Discovery] → SPECIFICATION.md → IMPLEMENTATION.md → TASKS.md → BRANDING.md
(The What) (The How) (The Work) (Identity)
↓ ↓ ↓
└────────────────────┴───────────────────┘
↓
PROMPT.md
(Claude Code Single-Shot)
Each document feeds the next. The final PROMPT.md synthesizes all documents into a single
prompt optimized for Claude Code execution.
Reference Files
Read the appropriate reference file before generating each document:
| Phase | Reference File | When to Read |
|-------|---------------|--------------|
| Discovery | references/elicitation-guide.md | Before asking any questions |
| Tech Stack | references/tech-stacks.md | When user needs stack selection help |
| Patterns | references/design-patterns.md | When making architecture decisions |
| Specification | references/specification-guide.md | Before generating SPECIFICATION.md |
| Implementation | references/implementation-guide.md | Before generating IMPLEMENTATION.md |
| Tasks | references/tasks-guide.md | Before generating TASKS.md |
| Branding | references/branding-guide.md | Before generating BRANDING.md |
| Prompt | references/claude-code-prompt.md | Before generating PROMPT.md |
Workflow
Phase 0: Discovery & Elicitation
Read references/elicitation-guide.md for the full question framework.
Step 0: Scan CWD for Existing Input Documents
Before asking any questions, check the current working directory for pre-existing
input documents using Glob with these patterns:
prd.md,PRD.md,product-requirements.mdrequirements.md,REQUIREMENTS.mdspec.md,SPEC.md,specification.mdbrief.md,project-brief.md,pitch.md
If any match, read the file fully with the Read tool, then consult the
"PRD → SPEC Mapping" section in references/elicitation-guide.md
for how to extract elicitation answers, identify engineering-side gaps, and generate
targeted follow-up questions instead of the full Phase 0 flow. The resulting
SPECIFICATION.md must include a Source: line citing the input document.
If no input document is found, proceed with the full structured elicitation below.
Step 1: Structured Elicitation
Use the AskUserQuestion tool aggressively for choices — the user should tap, not type,
whenever possible.
Minimum understanding before any document generation:
- What does this project do? (elevator pitch)
- Who is it for? (target audience)
- What's the project type? (web app, CLI, library, API, mobile, desktop, infra tool)
- What's the scope? (MVP vs full product)
- Tech stack direction (or "help me choose")
If the user says "help me choose a stack":
Read references/tech-stacks.md and run the interactive stack selection flow.
Present options with trade-offs using AskUserQuestion.
Phase 1: SPECIFICATION.md
Read references/specification-guide.md before generating.
Defines what the project is. Technology-aware but not implementation-detailed.
After generating, pause for user review.
Phase 2: IMPLEMENTATION.md
Read references/implementation-guide.md AND references/design-patterns.md before generating.
Translates specification into how to build it. This is where you:
- Recommend design patterns based on the project's needs (consult patterns reference)
- Define concrete directory structures with file-by-file purpose
- Choose dependencies with rationale
- Define module interfaces and data flows
- Include code snippets for critical patterns (signatures, types, structural examples)
Pattern Recommendations: Consult references/design-patterns.md and recommend specific
patterns with rationale. Don't just name-drop — show how each pattern applies to THIS project
with a short code sketch.
Phase 3: TASKS.md
Read references/tasks-guide.md before generating.
Converts implementation into ordered work items. Each task must be:
- Completable by Claude Code in a single session
- Self-contained with full context
- Ordered by strict dependency chain
- Include the exact files to create/modify
Phase 4: BRANDING.md (Optional)
Read references/branding-guide.md before generating.
Only generate if user wants it or the project is user-facing.
Phase 5: PROMPT.md (Always Generate)
Read references/claude-code-prompt.md before generating.
This is the most critical output. Synthesize all documents into a single-shot prompt
that Claude Code can execute to build the entire project from scratch. The prompt must be
completely self-contained, with inline code for complex patterns and an ordered checklist
of every file to create.
Operating Rules
- Document order is sequential. SPEC → IMPL → TASKS → BRANDING → PROMPT. Never skip ahead.
- Pause between documents. Present each doc, ask for approval before the next.
- Use
AskUserQuestionfor decisions. Tech stack, database, auth, deployment — any
decision with 2-4 clear options should use interactive selection, not freeform questions.
- Recommend, don't dictate. Present 2-3 options with trade-offs. Let user choose.
If user says "you pick", choose and explain why.
- Scale to project size. Weekend project = concise docs, 15-30 tasks. Enterprise
platform = thorough docs, 100+ tasks. Match depth to ambition.
- CWD is the project root. The skill is invoked from inside the already-created
project folder. All output paths — both the planning docs this skill writes AND any
directory trees the generated documents prescribe — are relative to CWD. Never create
or assume a project-name/ wrapper folder.
- Planning docs (this skill's direct output) go to the CWD root, not a
subfolder: ./SPECIFICATION.md, ./IMPLEMENTATION.md, ./TASKS.md,
./BRANDING.md, ./PROMPT.md. Use the Write tool. This keeps the downstream
agent's ./docs/ folder free for the project's own runtime documentation.
- Directory trees inside IMPLEMENTATION.md §3.1 and PROMPT.md "Project Structure"
MUST use . (CWD) as their root, NOT project-name/ or any other wrapper.
- Downstream commands prescribed in TASKS.md and PROMPT.md (e.g.,
npm init,
go mod init, dependency installs) run in CWD. Never instruct the downstream
coding agent to cd into a new subfolder before scaffolding.
- The project name is only a header/title inside documents, never a directory name.
- Cross-reference between documents. IMPL references SPEC sections. TASKS reference IMPL
modules. PROMPT inlines everything needed.
- No filler. Every line must be specific to THIS project. Remove sections that would be
generic boilerplate.
- Design patterns are recommendations. When choosing patterns for IMPLEMENTATION.md,
consult references/design-patterns.md and match patterns to the project's specific needs.
Include a brief "why this pattern" rationale for each recommendation.
Plugin-Aware Integration
Check if the user has other Claude Code plugins or skills installed. If they do:
- Frontend framework planner (react-app-planner, nextjs-app-planner, etc.) → Suggest
using it for deeper framework decisions after architect docs are done
- Frontend design → Reference it for UI component guidance in IMPLEMENTATION.md
- Brand/design skills → Integrate into BRANDING.md generation
- MCP builder → If project includes an MCP server, note the skill for implementation phase
- Language-specific skills (typescript-mastery, etc.) → Incorporate coding standards
from that skill into IMPLEMENTATION.md
Mention relevant skills naturally: "You have a react-app-planner skill — want me to use it
for deeper React architecture decisions after we finish the high-level plan?"
Handling Partial Input
| Scenario | Action |
|-----------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Vague 1-liner | Full elicitation flow with AskUserQuestion |
| Detailed brief | Extract answers, ask only gaps |
| prd.md / PRD found in CWD | Auto-detected in Phase 0 Step 0. Read the file, apply the "PRD → SPEC Mapping" section in elicitation-guide.md, ask only engineering gaps, cite the source in SPEC. |
| Existing SPECIFICATION.md uploaded | Validate against specification-guide.md quality checklist, suggest improvements, then continue from Phase 2. |
| "Just the spec" | Generate SPECIFICATION.md only, offer to continue later |
| "Skip to tasks" | Gather context, generate lightweight spec+impl, then tasks |
| "Just give me a prompt" | Condensed discovery → direct PROMPT.md generation |
| "Help me choose a stack" | Run tech stack advisor from references/tech-stacks.md |
| "What patterns should I use?" | Consult references/design-patterns.md, ask about project |