Thanks to visit codestin.com
Credit goes to github.com

Skip to content

The universal configuration manager for your AI assistants. Define context once in a single ai-rulez.yml file, and use the CLI to generate synchronized instructions for Claude, Cursor, Copilot, and all your favorite AI tools.

License

Notifications You must be signed in to change notification settings

Goldziher/ai-rulez

Repository files navigation

ai-rulez

ai-rulez logo

Directory-based AI governance for development teams.

Go Version NPM Version PyPI Version Homebrew

Documentation: goldziher.github.io/ai-rulez


What is ai-rulez?

ai-rulez organizes your AI assistant rules, context, and domain-specific guidance in a single .ai-rulez/ directory. Write once, generate native configurations for Claude, Cursor, Windsurf, Copilot, Gemini, and more.

Key features:

  • Directory-based – One .ai-rulez/ directory for all your AI tooling
  • Multi-tool generation – Generate configs for all major AI assistants from one source
  • Domain separation – Organize rules by backend, frontend, QA, or any domain
  • Profiles – Define profiles for different teams or use cases
  • Includes – Compose from local packages or Git repositories
  • CRUD operations – Manage configuration programmatically via CLI or MCP

Installation

Quick Start (No Installation)

npm:

npx ai-rulez@latest init "My Project"

uv:

uvx ai-rulez init "My Project"

Global Installation

Homebrew (macOS/Linux):

brew install goldziher/tap/ai-rulez

Go:

go install github.com/Goldziher/ai-rulez/cmd@latest

npm (Node.js):

npm install -g ai-rulez

uv (Python):

uv tool install ai-rulez

pip (Python):

pip install ai-rulez

Quick Example

# Initialize a new project
ai-rulez init "My Project" --preset claude

# Add a rule
ai-rulez add rule coding-standards --priority high

# Generate configs for all tools
ai-rulez generate

This creates CLAUDE.md, .cursorrules, and other native configs from your .ai-rulez/ directory.


Learn More

Full Documentation →


Contributing

We welcome contributions! Read CONTRIBUTING.md for development setup and guidelines.

About

The universal configuration manager for your AI assistants. Define context once in a single ai-rulez.yml file, and use the CLI to generate synchronized instructions for Claude, Cursor, Copilot, and all your favorite AI tools.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •