Skip to content

Rules Overview

The .agent/rules/ directory is the single source of truth for all development standards in this repository. Every AI IDE (Cursor, Windsurf, Claude, Copilot, etc.) reads from the same rule files, ensuring consistent behavior across all AI coding assistants.

Rule Files

FileScope
01 · GeneralLanguage, communication, core principles
02 · Coding StyleCommit messages, naming, formatting
03 · ArchitectureProject structure, cross-platform design
04 · SecuritySecrets, auth, input validation
05 · DependenciesVersion pinning, lock files, auditing
06 · CI & TestingPipelines, quality gates, test strategy
07 · GitBranch strategy, PR workflow, atomic commits
08 · Dev EnvLocal setup, DevContainer, tooling
09 · AI InteractionAI agent behavior and boundaries
10 · UI/UXFrontend, accessibility, i18n
11 · DeploymentDocker, IaC, release pipelines
12 · DocsDocumentation standards, Sync logic

How Rules Work

Rules are loaded automatically by each AI IDE via their respective config files:

  • Cursor.cursor/rules/ (symlinks to .agent/rules/)
  • Windsurf.windsurfrules
  • Claude / GeminiCLAUDE.md / GEMINI.md (redirect to .agent/rules/)
  • GitHub Copilot.github/copilot-instructions.md
  • Continue.continue/config.json

Adding or Modifying Rules

  1. Edit the relevant file in .agent/rules/
  2. All AI IDEs will pick up the change automatically on next session
  3. Commit with docs(rules): <description>

Single Source of Truth: Never edit IDE-specific rule files directly. Always update .agent/rules/ and let the symlinks/redirects propagate the change.

Released under the MIT License.