Welcome to the AI-Assisted Development Workflow! This document will guide you through the complete process of taking your project from initial idea to implementation using a structured, AI-driven approach.
The workflow consists of seven sequential phases, each with its own prompt file that instructs the AI agent on how to assist you. By following this process, you'll create a comprehensive set of documents that build upon each other, culminating in a detailed implementation plan.
flowchart TD
A0[Getting Started] -->|Initialize workflow| A
A[Idea] -->|Human pre-writing, optional AI brainstorming| B
B[Market Research] -->|Human analysis, AI assists with rapid research via chat| C
C[Concept Definition] -->|Human finalizes, AI proposes UVP, refines Personas| D
D[PRD Generation] -->|AI generates and decomposes according to template, Human iteratively validates| E
E[Task Manager Initialization] -->|AI instructs Roo Orchestrator with PRD features| F
F[Task Refinement] -->|Roo Orchestrator (with Roo Code) decomposes complex features into sub-tasks| G
G[Builder] -->|AI executes tasks, codes via MCPs, Human reviews/validates code & features| H
H[Deployment & Iteration] -->|AI assists deployment, collects feedback, Human decides next cycle| A
The workflow uses consistent file naming for inputs and outputs. Note that prompt files mentioned here refer to their logical sequence (e.g., 01_Idea.md is the first conceptual prompt for defining the idea, 05_Specs_Docs.md handles technical documentation). You will need to ensure your actual prompt filenames in 01_AI-RUN/ are aligned or that 01_AutoPilot.md correctly references your specific filenames.
| Phase | Logical Prompt File | Primary Output / Location | Nature of Output |
|---|---|---|---|
| Idea | 01_Idea.md | idea_document.md | Creation |
| Market Research | 02_Market_Research.md | market_research.md | Creation |
| Core Concept | 03_Core_Concept.md | core_concept.md | Creation |
| PRD Generation | 04_PRD_Generation.md | project_prd.md | Creation |
| Specs & Docs | 05_Specs_Docs.md | 02_AI-DOCS/ & 03_SPECS/ |
Creation of project-specific files from templates (templates remain untouched) & Reference/Annotation of Best Practices |
| Task Manager | (See ../02_AI-DOCS/TaskManagement/Roo_Task_Workflow.md) |
tasks/tasks.json (Structure: ../02_AI-DOCS/TaskManagement/Tasks_JSON_Structure.md) |
Creation |
| Start Building | 07_Start_Building.md | Implementation code | N/A (code) |
AI Agent Directive: Before starting the workflow (e.g., when processing 01_AutoPilot.md or the first manual step), you MUST perform the following initial analysis:
- Analyze File Structure: Carefully examine the list of files provided in the initial
environment_details. Understand the purpose of the main directories:01_AI-RUN/: Contains the prompt files guiding the workflow stages.02_AI-DOCS/: Contains project documentation templates (architecture, conventions, etc.) and core AI guidance (Documentation/). Crucially, during the 'Specs & Docs' phase, project-specific documents (e.g.,architecture.md,coding_conventions.md) will be CREATED in these subdirectories based on the templates.03_SPECS/: Contains specification templates (features, bugs). Similarly, project-specific specification files (e.g.,features/feature_spec_FEAT-XXX.md) will be CREATED here during the 'Specs & Docs' phase.tasks/: Will contain the generated task breakdown (tasks.json).
- In-Depth Codebase Understanding (Pre-computation & Analysis):
- Beyond just the file structure, you MUST strive to understand the content and interconnections of all relevant files within the project workspace.
- This means proactively reading key files (e.g.,
logic.md,project_session_state.json, existing.mdfiles in01_AI-RUN/, templates in02_AI-DOCS/and03_SPECS/, and any core application code if present) to build a mental model of the project's current state, its logic, and how different components are intended to interact. - This deep analysis is foundational for accurately executing the subsequent workflow phases.
- Identify Key Reference Documents: Recognize that the primary sources of truth for the project, once generated or established, will be:
project_prd.md(Generated in Phase 4).- Project-specific technical documents created in
02_AI-DOCS/(e.g.,02_AI-DOCS/Architecture/architecture.md,02_AI-DOCS/Conventions/coding_conventions.md,02_AI-DOCS/Conventions/design_conventions.md). - Project-specific specification documents created in
03_SPECS/(e.g.,03_SPECS/features/feature_spec_FEAT-XXX.md). - Task management guidelines:
../02_AI-DOCS/TaskManagement/Roo_Task_Workflow.mdand../02_AI-DOCS/TaskManagement/Tasks_JSON_Structure.md. - AI Agent Optimization Guides:
../02_AI-DOCS/Documentation/AI_Coding_Agent_Optimization.md,../02_AI-DOCS/Documentation/AI_Design_Agent_Optimization.md. - Overall AI Task Management Vision:
../02_AI-DOCS/Documentation/AI_Task_Management_Optimization.md.
- Prioritize Generated Documents & Adhere to Specs: When performing subsequent tasks (especially Task Management and Building), you MUST prioritize referencing these generated, project-specific documents over the original templates. The templates serve only as a starting structure.
- Spec-Driven Execution: For any development task (frontend, backend, database, design, etc.), you MUST actively locate, read, and strictly adhere to the relevant detailed specification documents (feature specs, design mockups/guidelines, API contracts, coding conventions, etc.) found within
02_AI-DOCS/and03_SPECS/, or linked within the taskdetailsintasks/tasks.json.
- Review this Getting Started guide
- Create a project directory if you haven't already
- Ensure all prompt files (logically
01_Idea.mdthrough07_Start_Building.md) are present in your01_AI-RUN/directory, correctly named and sequenced for the01_AutoPilot.mdor manual execution.
For each phase of the workflow:
- Open the corresponding prompt file (e.g., the file serving as
01_Idea.mdfor the Idea phase) - Share the prompt with your AI agent
- Follow the instructions in the prompt to complete the phase
- Save the output in the designated location using the naming convention
- Move to the next phase once the current phase is complete
Each prompt file includes a "Next Steps" section at the end that explains:
- How to save the current phase's output
- Which prompt file to use next
- What inputs the next phase requires
- Start with AutoPilot: Open
01_AutoPilot.mdand share it with your AI agent. Ensure01_AutoPilot.mdcorrectly references your actual prompt filenames. - Provide your initial idea: Give a brief description of your project idea (1-3 sentences)
- Answer clarifying questions: The AI will ask 5-7 targeted questions to gather essential information
- Minimal intervention: The AI will guide itself through all phases, only pausing for essential validation
- Start with the Idea phase: Open the prompt file corresponding to
01_Idea.mdand share it with your AI agent - Fill in the template: Provide your initial project concept
- Save the output: Store as
idea_document.mdin your project directory - Continue to Market Research: Open the prompt file corresponding to
02_Market_Research.mdand proceed - Follow through each phase: Complete all seven phases in sequence
If at any point the AI agent seems confused or lacks context:
- Ensure you've completed all previous phases
- Verify that output files are named correctly and stored in the expected locations
- Explicitly reference the relevant output files from previous phases
- If needed, provide the AI with links to specific sections of previous outputs
- Human Role: Pre-writing, initial concept formulation
- AI Role: Optional brainstorming assistance
- Output: Initial project concept (
idea_document.md)
- Human Role: Analysis and evaluation of research findings
- AI Role: Assistance with rapid research via direct interaction/chat
- Output: Market validation, competitor analysis, opportunity assessment (
market_research.md)
- Human Role: Finalizing the core concept
- AI Role: Proposing Unique Value Propositions, refining personas
- Output: Clearly defined project concept with target users (
core_concept.md)
- Human Role: Iterative validation of PRD sections
- AI Role: Generating and decomposing PRD according to template
- Output: Comprehensive Product Requirements Document (
project_prd.md)
- Human Role: Review of generated documentation
- AI Role: Creating project-specific files in
02_AI-DOCS/and03_SPECS/by copying and populating templates based on the PRD and gathered technical information. - Output: Created project-specific technical documentation and specifications within
02_AI-DOCS/and03_SPECS/.
6. Task Manager Initialization (Workflow: ../02_AI-DOCS/TaskManagement/Roo_Task_Workflow.md)
- Human Role: Review of task structure (as defined in
../02_AI-DOCS/TaskManagement/Tasks_JSON_Structure.md) - AI Role: Instructing Roo Orchestrator with PRD features, as per
../02_AI-DOCS/TaskManagement/Roo_Task_Workflow.md - Output: Initial task hierarchy (
tasks/tasks.jsonadhering to../02_AI-DOCS/TaskManagement/Tasks_JSON_Structure.md)
- Human Role: Reviewing and validating code and features
- AI Role: Executing tasks, coding, utilizing MCPs
- Output: Functional code implementation
- Human Role: Making decisions about the next development cycle
- AI Role: Assisting with deployment, collecting feedback
- Output: Deployed features and iteration plan
- Human-AI Collaboration: Leverages strengths of both human creativity and AI capabilities
- Structured Process: Clear workflow with defined responsibilities
- Efficiency: Automation of repetitive tasks while maintaining quality
- Flexibility: Adaptable to various project types and scales
- Continuous Improvement: Built-in feedback loops for ongoing refinement
- Complete phases sequentially: Each phase builds on the outputs of previous phases
- Save all outputs: Keep all generated documents for reference
- Validate key decisions: Review and approve important decisions before proceeding
- Provide feedback: Refine outputs before moving to the next phase
- Track changes: Maintain version control for all documents
You are now ready to start the AI-assisted development workflow!
Recommended Option: Open the 01_AutoPilot.md file and share it with your AI agent for a fully automated experience with minimal intervention. Ensure 01_AutoPilot.md is configured to use the correct prompt filenames from your 01_AI-RUN/ directory.
Alternatively, you can follow the step-by-step process by starting with opening the prompt file corresponding to 01_Idea.md and sharing it with your AI agent.