GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • Universal-AI-Rules
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles

This view

  • Original page
  • New address

GeezerVison is showing github.com β€” .ai

README.md

Universal AI Rules (.ai/ai-rules.yaml) Project

One rules file for all your AI coding assistants πŸ€–

License: MIT Project Status: Concept Looking for Contributors

The Problem We're Solving

Every AI coding tool uses its own format for rules and instructions:

  • GitHub Copilot: .github/copilot-instructions.md
  • Claude (Anthropic): CLAUDE.md or ~/.claude/CLAUDE.md
  • Cursor: .cursor/rules/ directory or legacy .cursorrules
  • Windsurf: .windsurf/rules/ directory
  • Cline: .clinerules/ directory
  • OpenAI Codex & Jules: AGENTS.md
  • Aider: CONVENTIONS.md or .aider.conf.yml
  • Sourcegraph Cody: .sourcegraph/memory.md
  • And dozens more...

This fragmentation leads to:

  • πŸ”„ Duplication of effort - Same rules written multiple times
  • ⚠️ Inconsistency and drift - Rules get out of sync across tools
  • 🚧 Onboarding friction - New tools require creating yet another rules file
  • πŸ“ Maintenance overhead - Updates must be replicated everywhere

Our Proposed Solution

Universal AI Rules aims to provide a single source of truth for all your AI coding assistants:

  • πŸ“„ Unified Format: .ai/ai-rules.yaml - one file to rule them all
  • πŸ”„ Automatic Sync: Generate tool-specific files from your master rules
  • βœ… Schema Validation: Ensure your rules are properly formatted
  • 🀝 Standards-Based: Open specification that anyone can adopt
  • πŸ› οΈ CLI Tools: Easy setup, sync, and maintenance
  • πŸ”Œ Extensible: Support for new AI tools as they emerge

Vision: How It Would Work

⚠️ Note: This is currently a concept. The CLI and tools described below don't exist yet - we're looking for contributors to help build them!

# Future CLI usage (not yet implemented)
npm install -g @universal-ai-rules/cli

# Initialize in your project
ai-rules init

# Sync to all supported tools
ai-rules sync

# Validate your rules
ai-rules validate

The vision is that your .ai/ai-rules.yaml would become the master source, and tool-specific files would be auto-generated:

# .ai/ai-rules.yaml
version: "1.0"
project:
  name: "My Awesome Project"
  description: "A fintech application with microservices architecture"

rules:
  - name: "Language and Framework"
    content: "Use TypeScript 5.8+ and Next.js 15.3+ for frontend"
    applies_to: ["frontend", "typescript"]
  
  - name: "Security Guidelines"
    content: "Always validate input for SQL injection. Never hardcode secrets."
    applies_to: ["security", "backend"]

tools:
  enabled: ["cursor", "claude", "copilot", "windsurf"]
  cursor:
    output_path: ".cursor/rules/"
  claude:
    output_path: "CLAUDE.md"

Why AI Rule Files Matter

AI rule files serve as a persistent knowledge base for your AI coding assistants, providing:

🎯 Consistency

Every team member and AI tool gets the same guidance, leading to uniform code suggestions that match your project's standards.

⚑ Reduced Overhead

No more re-explaining context in every prompt. The AI already "knows" your setup, preferences, and constraints.

πŸ”’ Enhanced Security

Centralize security guidelines to steer AI away from common vulnerabilities. Research shows well-crafted prompts significantly reduce security flaws in generated code.

🧠 Project Context Memory

Convey high-level context the AI might not infer from code alone - domain knowledge, architecture decisions, and business constraints.

Planned AI Tool Support

Tool Status Config File
GitHub Copilot πŸ“‹ Planned .github/copilot-instructions.md
Claude (Anthropic) πŸ“‹ Planned CLAUDE.md, CLAUDE.local.md
Cursor πŸ“‹ Planned .cursor/rules/*.md
Windsurf πŸ“‹ Planned .windsurf/rules/*.md
Cline πŸ“‹ Planned .clinerules/*.md
OpenAI Codex πŸ“‹ Planned AGENTS.md
Google Jules πŸ“‹ Planned AGENTS.md
Aider πŸ“‹ Planned CONVENTIONS.md
Sourcegraph Cody πŸ“‹ Planned .sourcegraph/memory.md
JetBrains AI πŸ“‹ Planned .junie/instructions.md

Want to help implement support for these tools? We need contributors to build the adapters!

Project Structure

This is a monorepo containing multiple packages (currently empty repos - looking for contributors!):

Universal AI Rules/
β”œβ”€β”€ πŸ“¦ ai-rules-spec/          # Core specification and schema (TODO)
β”œβ”€β”€ πŸ› οΈ ai-rules-cli/           # Command-line interface (TODO)
β”œβ”€β”€ πŸ”Œ ai-rules-adapters/      # Tool-specific adapters (TODO)
β”œβ”€β”€ 🌐 universal-ai-rules-site/ # Documentation website (TODO)
└── ⭐ awesome-ai-rules/       # Curated examples and templates (TODO)

Best Practices for Writing Rules

Based on analysis of successful AI rule implementations:

βœ… Do

  • Write clear, concise, actionable rules
  • Use specific examples and exceptions
  • Keep rules scoped and relevant to context
  • Break complex guidelines into atomic rules
  • Evolve rules over time based on AI feedback

❌ Don't

  • Write overly long rules (keep under 500 lines total)
  • Include irrelevant context that might confuse the AI
  • Duplicate the same rule across multiple sections
  • Use vague language - be specific about expectations

πŸ“ Example Structure

rules:
  - name: "Code Style"
    content: "Use Python 3.11+ with type hints. Prefer composition over inheritance."
    applies_to: ["python", "backend"]
    
  - name: "Security"
    content: "Use parameterized queries to prevent SQL injection. Store secrets in environment variables only."
    applies_to: ["security", "database"]

Specification

The specification is still being developed. We plan to create detailed documentation covering:

  • Schema definitions and validation rules
  • File format specifications
  • Tool adapter requirements
  • Extension mechanisms

Want to help design the specification? Check out the ai-rules-spec directory and contribute!

Get Involved

This project needs YOU! We're looking for contributors to help build the future of AI-assisted development:

  • ⭐ Star our repos to show support for the concept
  • πŸ’‘ Share ideas - what features would you want?
  • πŸ“ Help design the specification - what should the YAML format look like?
  • πŸ”§ Build the CLI - Node.js/TypeScript developers needed
  • πŸ”Œ Create adapters - help support your favorite AI tool
  • πŸ› Report issues or suggest improvements
  • πŸ’¬ Join discussions - let's figure this out together!

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

Roadmap

Phase 1: Foundation (Looking for contributors!)

  • Define core specification (v1.0)
  • Create basic CLI tool structure
  • Implement YAML schema validation
  • Build first few tool adapters (Cursor, Claude, Copilot)

Phase 2: Core Features

  • Full CLI with sync functionality
  • Support for all major AI tools
  • Rule templates and examples
  • Documentation website

Phase 3: Advanced Features

  • VS Code extension for GUI management
  • Team collaboration features
  • Rule templates marketplace
  • Advanced validation and linting
  • Integration with popular frameworks

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Special thanks to the AI coding community and the teams behind:

  • GitHub Copilot for pioneering repository-specific instructions
  • Anthropic Claude for demonstrating the power of persistent context
  • Cursor, Windsurf, Cline, and other tools for advancing AI-assisted development
  • The open source community for driving standardization efforts

Made with ❀️ by the Universal AI Rules community
One rules file to rule them all πŸ€–

Pinned Loading

  1. ai-rules-spec ai-rules-spec Public

    1

  2. ai-rules-cli ai-rules-cli Public

  3. awesome-ai-rules awesome-ai-rules Public

  4. ai-rules-adapters ai-rules-adapters Public

Repositories

Loading
Type
Sort
Showing 5 of 5 repositories
  • awesome-ai-rules Public

    Uh oh!

    There was an error while loading. Please reload this page.

    Universal-AI-Rules/awesome-ai-rules's past year of commit activity
    0 MIT 0 0 0 Updated Jun 28, 2025
  • ai-rules-adapters Public

    Uh oh!

    There was an error while loading. Please reload this page.

    Universal-AI-Rules/ai-rules-adapters's past year of commit activity
    0 MIT 0 0 0 Updated Jun 28, 2025
  • ai-rules-spec Public

    Uh oh!

    There was an error while loading. Please reload this page.

    Universal-AI-Rules/ai-rules-spec's past year of commit activity
    1 MIT 0 0 0 Updated Jun 28, 2025
  • ai-rules-cli Public

    Uh oh!

    There was an error while loading. Please reload this page.

    Universal-AI-Rules/ai-rules-cli's past year of commit activity
    0 MIT 0 0 0 Updated Jun 28, 2025
  • .github Public

    Uh oh!

    There was an error while loading. Please reload this page.

    Universal-AI-Rules/.github's past year of commit activity
    0 0 0 0 Updated Jun 28, 2025

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Uh oh!

There was an error while loading. Please reload this page.

Most used topics

Loading…

Uh oh!

There was an error while loading. Please reload this page.

You are visitor 01402503 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.