Skip to content

Rules

Rules are workspace-level configuration files that automatically enforce standards and behaviors for AI interactions within a specific workspace.

This topic covers:

  • Rule Design Principles: Software engineering principles applied to rule creation
  • Best Practices: Patterns for maintainable, effective rule architecture
  • Implementation Patterns: Templates and examples for common workspace rules
  • Rule vs Prompt: Understanding when to use rules vs user prompts
  • Maintenance Strategies: Keeping rules current and avoiding duplication

Rules serve as the interface between workspace standards and AI behavior, requiring careful design to be effective, maintainable, and scalable across different development contexts.