Manage AI rules, commands, and skills across multiple coding agents from one place.
npx skills add https://github.com/block/ai-rules --skill stars-we-preferInstale esta skill com a CLI e comece a usar o fluxo de trabalho SKILL.md em seu espaço de trabalho.
CLI tool to manage AI rules across different AI coding agents. Standardize and distribute your coding guidelines across AMP, Claude, Cline, Codex, Copilot, Cursor, Firebender, Gemini, Goose, Kilocode, and Roo.
curl -fsSL https://raw.githubusercontent.com/block/ai-rules/main/scripts/install.sh | bash
Installs to ~/.local/bin/ai-rules. Verify with ai-rules --version.
Specific version:
curl -fsSL https://raw.githubusercontent.com/block/ai-rules/main/scripts/install.sh | VERSION=v1.0.0 bash
Custom directory:
curl -fsSL https://raw.githubusercontent.com/block/ai-rules/main/scripts/install.sh | INSTALL_DIR=/usr/local/bin bash
Initialize your AI rules directory:
ai-rules init
Creates an ai-rules/ directory with example rule files. Rule files are markdown files containing coding guidelines, conventions, and instructions that get distributed to your AI coding agents.
Edit your rules in ai-rules/*.md files to define your project's coding standards
Generate agent-specific files:
ai-rules generate # All agents
ai-rules generate --agents claude,cursor # Specific agents
Creates CLAUDE.md, AGENTS.md, and other agent-specific files. Cursor uses AGENTS.md.
Check status to ensure everything is in sync:
ai-rules status
| Command | Description |
|---|---|
ai-rules init |
Initialize AI rules in the current directory |
ai-rules generate |
Generate rules for AI coding agents |
ai-rules status |
Show sync status of AI rules |
ai-rules clean |
Remove all generated files |
ai-rules list-agents |
List all supported agents |
ai-rules generate --agents claude,cursor # Generate for specific agents
ai-rules generate --nested-depth 2 # Process subdirectories
ai-rules generate --gitignore # Add generated files to .gitignore
Create ai-rules/ai-rules-config.yaml to set defaults:
agents: [claude, cursor, cline]
nested_depth: 2
gitignore: true
See Configuration Guide for all options.
AMP, Claude Code, Cline, Codex, Copilot, Cursor, Firebender, Gemini, Goose, Kilocode, Roo
See Supported Agents for detailed compatibility information.
See CONTRIBUTING.md for development setup and guidelines.