AI Workflow
A comprehensive workflow for building software with AI assistance, emphasizing planning, incremental development, testing, and maintaining control over your codebase
Table of Contents
Quick Start Summary
The essence of the AI-assisted development workflow
The Core Workflow
Essential steps for AI-assisted development
Typical Time Investment
Expected time commitment for each phase
Planning & Context Setup
Establish a solid foundation before writing code
Create Your PLAN.md
Document project goals, features, and technical decisions
Create Context Files
Provide AI with project-specific guidelines and references
Manual Foundation
Set up the initial boilerplate yourself
Manual Boilerplate Setup
Why and how to set up your project foundation manually
AI-Assisted Development Loop
The iterative process for building features with AI
Break Down Features
Decompose features into small, achievable steps
Implement One Step
Work on a single step with clear, detailed instructions
Test & Verify
Manually test each implementation step
Manual Code Review
Review and improve AI-generated code
Write Tests (When Appropriate)
Add test coverage for features that need it
Commit Your Work
Create checkpoints with meaningful commits
Feature Completion & Review
Final steps when a feature is fully implemented
End-to-End Feature Testing
Test the complete feature flow comprehensively
Code Quality Review
Review all code generated for the feature
Update Documentation
Keep documentation current with changes
Final Feature Commit
Create a comprehensive commit for the completed feature
Key Principles
Core tenets of effective AI-assisted development
Fundamental Principles
The non-negotiable rules for quality AI-assisted development
Common Pitfalls to Avoid
Mistakes developers make with AI assistance
Planning & Setup Mistakes
Errors made before coding begins
Implementation Mistakes
Errors during the development process
Testing & Quality Mistakes
Shortcuts that hurt long-term quality
Troubleshooting Common Issues
Solutions to problems you might encounter
AI Keeps Breaking Things
Every change breaks something else
Spending Too Much Time Planning
Hours on PLAN.md, no code written
AI Not Following Context
AI keeps using patterns you said not to use
Don't Understand AI's Code
Looking at generated code and confused
Tests Taking Forever
Writing tests is slowing you down significantly