Project architect

From KilimcininKorOglu/cli-tweaks · View interactive version

Project architect is an AI agent skill from the GitHub repository KilimcininKorOglu/cli-tweaks. Documentation-first project planning that produces implementation-ready blueprints and single-shot coding agent prompts. Generates 4 interconnected docs: SPECIFICATION.md, IMPLEMENTATION.md, TASKS.md, BRANDING.md, plus a PROMPT.md prompt for autonomous execution. Includes interactive tech stack sele

How to use this skill

Skill file

Project Architect

A documentation-first project planning system that produces implementation-ready blueprints

and Droid-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
                              (Droid Single-Shot)

Each document feeds the next. The final PROMPT.md synthesizes all documents into a single

prompt optimized for Droid 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/droid-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:

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 AskUser tool aggressively for choices — the user should tap, not type,

whenever possible.

Minimum understanding before any document generation:

  1. What does this project do? (elevator pitch)
  2. Who is it for? (target audience)
  3. What's the project type? (web app, CLI, library, API, mobile, desktop, infra tool)
  4. What's the scope? (MVP vs full product)
  5. 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 AskUser.

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:

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:

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/droid-prompt.md before generating.

This is the most critical output. Synthesize all documents into a single-shot prompt

that Droid 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

  1. Document order is sequential. SPEC → IMPL → TASKS → BRANDING → PROMPT. Never skip ahead.
  1. Pause between documents. Present each doc, ask for approval before the next.
  1. Use AskUser for decisions. Tech stack, database, auth, deployment — any

decision with 2-4 clear options should use interactive selection, not freeform questions.

  1. Recommend, don't dictate. Present 2-3 options with trade-offs. Let user choose.

If user says "you pick", choose and explain why.

  1. Scale to project size. Weekend project = concise docs, 15-30 tasks. Enterprise

platform = thorough docs, 100+ tasks. Match depth to ambition.

  1. 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.

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.

MUST use . (CWD) as their root, NOT project-name/ or any other wrapper.

go mod init, dependency installs) run in CWD. Never instruct the downstream

coding agent to cd into a new subfolder before scaffolding.

  1. Cross-reference between documents. IMPL references SPEC sections. TASKS reference IMPL

modules. PROMPT inlines everything needed.

  1. No filler. Every line must be specific to THIS project. Remove sections that would be

generic boilerplate.

  1. 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 Droid plugins or skills installed. If they do:

using it for deeper framework decisions after architect docs are done

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 AskUser |

| 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 |

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.