AGENT DRIVEN DEVELOPMENT (ADD) PROTOCOL
Agent Driven Development (ADD) is a methodology for AI-assisted software development that combines the power of AI agents with human oversight. It provides a structured approach to development that ensures quality, maintainability, and scalability while leveraging AI capabilities effectively.
Editor: Everything, except where explicitly labeled, was written by an AI Agent (Cursor/Claude) with human prompting.
📡 USAGE
# Download .cursorrules file
curl -o .cursorrules https://agentdriven.dev/index.md
MANDATORY WORKFLOW FOR ALL AI AGENT INTERACTIONS
🔴 CRITICAL RULES - ZERO EXCEPTIONS
- NEVER create/edit files outside project directory
- ALWAYS request permission for installations/bulk operations
- ALWAYS use Git for all file operations
- NEVER skip initialization sequence
- NEVER commit changes across different development phases
- ALWAYS get explicit permission before advancing to next phase
- ALWAYS update version numbers in all files before cutting a new tag
- ALWAYS validate libraries with tests before architectural commitment
- ALWAYS verify system date when updating documentation dates
- ALWAYS review project documentation (README.md, docs/project.md, docs/journal.md) at the start of every interaction
- NEVER work directly on the main branch
- ALWAYS use feature branches with proper prefixes (
feature/
,fix/
,spike/
) - ALWAYS prototype complex implementations before committing to an approach
🚨 INITIALIZATION SEQUENCE
BEFORE ANY PROJECT WORK:
-
VERIFY GIT: Run
git status
(initialize if needed) -
START WITH CONFIG PHASE:
- Market analysis and dependency evaluation
- Create exploratory tests for key libraries
- Document findings in
docs/dependencies.md
anddocs/market-analysis.md
- PROTOTYPE COMPLEX IMPLEMENTATIONS:
- Create spike solutions in
spike/[topic]
branches - Document findings in
docs/spikes/[topic].md
- Evaluate multiple approaches with pros/cons
- Assess technical risks before proceeding
- Create spike solutions in
-
VERIFY CONFIG COMPLETION:
- Git repository initialized
- Market analysis and dependency documentation completed
- Exploratory tests and spike solutions committed
- Technical feasibility and risk assessment documented
- Foundation files (README, .gitignore, etc.) committed
🔄 DEVELOPMENT PHASES
Each phase should be completed sequentially:
v0.0.x
: CONFIG - Market analysis, dependencies, spikes, project setupv0.1.x
: PROJECT - Architecture, interfaces, API contracts, method stubsv0.2.x
: TESTS - Test framework, unit/integration tests, fixturesv0.3.x
: DATA - Models, schemas, migrations, validationv0.4.x
: CODE - Business logic, services, error handlingv0.5.x
: DEVOPS - CI/CD, deployment, securityv0.6.x
: PUBLIC - User interfaces, responsive designv0.7.x
: MONEY - Billing, payments, subscriptionsv0.8.x
: SUPPORT - Documentation, support systems, feedbackv0.9.x
: SCALE - Performance, caching, load balancingv1.0.0+
: RELEASE - Final testing, documentation, launch
PHASE RULES:
- Group related files from same phase in commits
- Complete all requirements before advancing
- Get explicit permission before advancing or skipping phases
- Every feature should follows its own through development phases before being merged
📋 COMMIT WORKFLOW
FOR EVERY CHANGE:
- PLAN → STATUS → GROUP → ADD → VERIFY → COMMIT → CONFIRM
git status
git add <files>
git status # Verify staging
git commit -m "type: message"
git status # Verify clean state
BEFORE TAGGING:
- Update version numbers in all files
- Commit version updates:
git commit -m "chore: Update version to vX.Y.Z"
- Create tag:
git tag -a vX.Y.Z -m "Description of release"
🛠️ TROUBLESHOOTING PROTOCOL
WHEN ENCOUNTERING TECHNICAL CHALLENGES:
- DOCUMENT the issue in
docs/issues/[issue-name].md
- ANALYZE potential causes with evidence
- PROPOSE specific debugging steps
- SEEK APPROVAL before proceeding
- DOCUMENT FINDINGS from debugging
- PROPOSE SOLUTIONS that preserve existing architecture
- AWAIT EXPLICIT DIRECTION before implementing
CRITICAL REQUIREMENTS:
- Never abandon established approaches without permission
- Document all debugging steps and findings
📚 DOCUMENTATION REQUIREMENTS
- Update
docs/journal.md
with each session - Maintain documentation for market analysis, dependencies, and features
- Document exploratory tests and spike solutions
- Commit documentation with related code changes
🚫 CRITICAL REMINDERS
NEVER WORK DIRECTLY ON THE MAIN BRANCH
ALWAYS PROTOTYPE COMPLEX IMPLEMENTATIONS FIRST
APPLY THE ADD PROCESS AT BOTH PROJECT AND FEATURE LEVELS
PROCESS IS MORE IMPORTANT THAN SPEED