Vibe Coding Workflow
by @shiiyyo
Structured 5-phase AI-assisted development workflow (requirements → architecture → code generation → debugging → iteration). Use when the user mentions "vibe...
clawhub install vibe-coding-workflow📖 About This Skill
name: vibe-coding-workflow description: Structured 5-phase AI-assisted development workflow (requirements → architecture → code generation → debugging → iteration). Use when the user mentions "vibe coding", wants a structured multi-phase AI collaboration for a software project, says "help me build a project step by step", asks how to start a new feature or project with AI, encounters bugs they can't resolve, wants to refactor messy code, or asks about AI-assisted development workflows. Also use when the user says "Phase 1/2/3/4/5", "requirements doc", "architecture design", or explicitly asks to "follow the workflow".
Vibe Coding Workflow
A structured 5-phase workflow for AI-assisted software development, from vague idea to working product.
Global Principles
Phase 1: Requirements
Goal: Turn a vague idea into a structured, actionable requirements document.
Complete Steps 1 → 2 → 3 in order. Do not merge or skip steps.
Step 1 — Clarify the Idea
Trigger: User describes an idea in 1–2 sentences without specifying audience, context, or pain points.
Ask:
Do not discuss tech stack yet. Summarize into 2–3 sentences: who + what scenario + what problem.
Done when:
Step 2 — Technology Selection
Enter when: Step 1 is complete.
Collect constraints from user:
Provide 2–3 tech options, each with: rough architecture, key dependencies, runtime model, pros/cons, and best-fit scenario.
Do not choose for the user. Explicitly say: "Please pick an option before I continue."
Done when:
Step 3 — Structured Confirmation
Enter when: Tech stack is confirmed.
Auto-fill the requirements template from the conversation so far:
| Field | Content | |---|---| | System background | | | Goal of this build | | | Users & use cases | | | Inputs / outputs (format + frequency) | | | Boundaries & constraints (including "out of scope") | | | Error handling approach | | | Acceptance criteria (testable, not subjective) | |
Show the filled template to the user. Ask them to correct inaccuracies and fill gaps.
Done when:
Phase 2: Architecture
Goal: Define project structure, module responsibilities, data flow, and interface contracts — before writing any implementation code.
Enter when: Phase 1 requirements doc is confirmed.
Outputs to produce:
1. Directory structure (down to file level) 2. One-sentence responsibility for each directory/file 3. Mermaid flowchart of data flow 4. Interface contracts between modules (function names, params, return types) 5. Weakest point in the design and why
No implementation code in this phase — interfaces and structure only.
Done when:
docs/architecture.md)Phase 3: Code Generation
Goal: Implement modules one at a time, consistent with the architecture doc.
Enter when: Phase 2 directory structure and interface contracts are confirmed.
For each module, state before generating:
One module per generation. Do not attempt to generate the full project at once.
Generation order: 1. Foundation (utilities, data models, storage layer) 2. Business logic 3. UI layer or external adapters
After each module: verify it can be imported and its key functions can be called.
Done when:
Phase 4: Debugging
Goal: Solve problems collaboratively using complete information + root cause explanation + step-by-step execution.
Step 1 — Gather Full Context
Ask user to provide:Step 2 — Explain the Error
Step 3 — Step-by-Step Fix
Step 4 — Summary
After resolution, output:> Problem: ___; Cause: ___; Fix: ___
Remind user to save this note for future reuse.
If unresolved after 3+ rounds in the same conversation:
Phase 5: Iteration
Goal: For each type of change, re-enter the correct phase.
| Scenario | Entry point | |---|---| | New feature | Phase 1 (Step 1) — treat as a small project; note existing stack in "System background" | | Performance / UX issue (working but slow/awkward) | Phase 4 — describe the felt problem + paste relevant code | | Messy code structure (works but hard to maintain) | Phase 2 — redesign module boundaries before adding features |
Done when: