Development Patterns¶
This section contains reusable development patterns curated by Annegreet, the Knowledge Curator.
Categories¶
Authentication¶
- OAuth2 implementation
- JWT token handling
- Session management
- Multi-factor authentication
CRUD Operations¶
- RESTful API design
- Database models
- Form validation
- Error handling
Payments¶
- Stripe integration
- Payment webhooks
- Subscription management
- Invoice generation
Frontend¶
- React component patterns
- State management
- Form handling
- API integration
Backend¶
- API endpoint structure
- Database migrations
- Background jobs
- Caching strategies
Infrastructure¶
- Docker compose setups
- Kubernetes deployments
- CI/CD pipelines
- Monitoring setup
Adding New Patterns¶
Annegreet reviews learnings from all agents and extracts reusable patterns. Each pattern should include:
- Problem - What problem does this solve?
- Solution - How to implement it
- Example - Working code example
- Gotchas - Common mistakes to avoid
- References - Links to documentation or related patterns
Usage¶
Agents should reference patterns when implementing similar functionality: