Goldziher/ai-rulez
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.
Write AI assistant rules once. Generate configs for 18 different tools.
Every AI coding tool wants its own config format. Claude needs CLAUDE.md, Cursor wants .cursor/rules/, Copilot expects .github/copilot-instructions.md. Keeping them in sync is tedious and error-prone.
ai-rulez solves this: define rules and context in .ai-rulez/, run generate, and get native configs for all your tools.
npx ai-rulez@latest init && npx ai-rulez@latest generate[Documentation](https://goldziher.github.io/ai-rulez/)
# No install required
npx ai-rulez@latest init "My Project"
npx ai-rulez@latest generateThis creates:
.ai-rulez/
├── config.yaml # Which tools to generate for
├── rules/ # Guidelines AI must follow
├── context/ # Project background info
├── skills/ # Specialized AI roles
├── agents/ # Agent-specific prompts
└── commands/ # Slash commandsAnd generates native configs for each tool you specify.
# .ai-rulez/config.yaml
version: "3.0"
name: "My Project"
presets:
- claude
- cursor
- copilot
- windsurf
# Optional: team-specific profiles
profiles:
backend: [backend, database]
frontend: [frontend, ui]
# Optional: share rules across repos
includes:
- name: companyLoading reviews...