This directory contains the source of truth for all AI agent steering rules used across different IDEs.
api-standards.md- API design patterns, method naming, return types, error handlingcode-conventions.md- Code formatting, naming conventions, type hints, loggingtesting-standards.md- Test organization, AAA pattern, fixtures, coverage requirementssecurity-guidelines.md- SQL injection prevention, credential management, security best practicesproject-patterns.md- Project-specific patterns (adapters, SQL composition, lazy loading, mixins)cicd-workflow.md- CI/CD workflows, UV commands, Docker builds, release processcopilot-instructions.md- Comprehensive project overview and instructions
- Reads directly from
.windsurf/rules/directory - Uses
applies_tofrontmatter to scope rules to specific file patterns - Automatically discovers all
.mdfiles in the rules directory
- Symlinks in
.github/instructions/directory point to.windsurf/rules/ - Uses
applyTofrontmatter to scope rules to specific file patterns - All rule files are automatically discovered in the instructions directory
- Include files in
.kiro/steering/use#[[file:...]]syntax - Example:
#[[file:../../.windsurf/rules/api-standards.md]] - Frontmatter
inclusion: alwaysensures files are always loaded
Each rule file uses YAML frontmatter with directives for all three IDEs:
---
# Kiro: Always include this file
inclusion: always
# Windsurf: Apply to Python files
applies_to:
- "**/*.py"
# GitHub Copilot: Apply to Python files
applyTo:
- "**/*.py"
---- Edit files in
.windsurf/rules/directory (source of truth) - Changes automatically propagate to:
- Windsurf (reads directly)
- GitHub Copilot (via symlinks in
.github/instructions/) - Kiro (via include syntax)
- No need to update files in
.kiro/steering/or.github/instructions/manually
- Create new file in
.windsurf/rules/ - Add appropriate frontmatter with
inclusion,applies_to, andapplyTo - Create symlink in
.github/instructions/:ln -s ../../.windsurf/rules/newfile.md .github/instructions/newfile.md - Create include file in
.kiro/steering/with#[[file:../../.windsurf/rules/newfile.md]] - All three IDEs will automatically discover and use the new rule
After making changes:
- Windsurf: Rules apply immediately
- GitHub Copilot: Restart Copilot or reload window
- Kiro: Rules apply on next agent invocation