One file for all AI coding assistants
Every AI coding tool needs its own rules file:
.cursorrulesfor Cursorclaude.mdfor Claudewindsurf_rules.mdfor Windsurf- Custom files for other tools
Create one .ai-rules file that works with all AI tools.
Create .ai-rules in your project root:
# AI Rules Standard v1.0
version: "1.0"
metadata:
apply_on: "context"
priority: "high"
development:
languages: ["python"]
style: "clean and readable"
constraints:
- "Use type hints"
- "Add docstrings"
- "Keep functions small"
ignore:
- "*.pyc"
- "__pycache__/"That's it! Any AI tool supporting ARS will understand your preferences.
version: "1.0"
development:
languages: ["javascript"]
style: "modern"
constraints:
- "Use const/let instead of var"
- "Add meaningful comments"# AI Rules
## Project
- **Language**: JavaScript
- **Style**: Modern
## Requirements
- Use const/let instead of var
- Add meaningful commentsversion: ARS version (required)metadata: Behavior control (when/how to apply rules)development: Language and style preferencesconstraints: Rules the AI should followignore: Files/patterns to ignoretools: Tool-specific settings (optional)
See examples/ for common project types.
- Check for
.ai-rulesin project root - Parse YAML or Markdown format
- Fall back to legacy formats if not found
Replace your existing rule files with .ai-rules:
- Copy your current rules
- Convert to ARS format
- Test with your AI tools
- Remove old files
Open source and community-driven. Contribute at github.com/level09/air.
MIT License - see LICENSE file.