Skip to content

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:

  1. Problem - What problem does this solve?
  2. Solution - How to implement it
  3. Example - Working code example
  4. Gotchas - Common mistakes to avoid
  5. References - Links to documentation or related patterns

Usage

Agents should reference patterns when implementing similar functionality:

# Read a pattern before implementing
pattern_path = Path("/ge-ops/wiki/patterns/authentication/oauth2.md")
pattern = pattern_path.read_text()

# Implement based on the pattern
# ...

# If you discover improvements, note them in your learnings
# Annegreet will review and update the pattern if needed