directives/ # What to do (Markdown SOPs)
execution/ # How to do it (Python scripts)
.tmp/ # Intermediate files (gitignored)
.env # Environment variables (gitignored)
- ✅ Read directives
- ✅ Call execution scripts
- ✅ Handle errors
- ✅ Update directives with learnings
- ❌ Don't do everything myself
- Repeatable task with clear steps
- Complex workflow needing documentation
- Task that might be done again
- Deterministic operation (API calls, data processing)
- Task requiring reliability and testing
- Operation using external services/credentials
Error → Fix → Test → Update Directive → Stronger System
Deliverables (cloud-based):
- Google Sheets, Slides
- Deployed apps
- Cloud services
Intermediates (.tmp/):
- Scraped data
- Temp exports
- Processing artifacts
- Check for tools first - Don't reinvent the wheel
- Self-anneal when things break - Learn from errors
- Update directives as you learn - Living documentation
- Deliverables in cloud, intermediates in .tmp - Clear separation
User: "Scrape data from example.com"
My steps:
- Read
directives/scrape_website.md - Identify inputs: URL
- Call
execution/scrape_single_site.py --url https://example.com - Review output in
.tmp/scraped_data.json - Report to user
If error: Check directive → Fix script → Test → Update directive
Full guide: See ARCHITECTURE.md