Skip to content

Install and apply

This library ships bare ai-rulez modules under modules/. Consumer projects declare intention in .ai-rulez/config.toml via builtins and [[includes]], then run ai-rulez generate.

Terminal window
mise install
task install

mise.toml pins Node, Task, and ai-rulez.

Terminal window
task apply RECIPE=python-cli-standard TARGET=~/code/my-project

That copies examples/<RECIPE>/config.toml to TARGET/.ai-rulez/config.toml.

3. Point includes at the published library

Section titled “3. Point includes at the published library”

Local recipe paths work only inside this checkout. In a consumer project, rewrite each include:

[[includes]]
name = "house"
source = "https://github.com/mrjk/ai-rules.git"
path = "modules/house"
ref = "v1.0.0"
include = ["rules", "context", "skills", "agents"]
merge_strategy = "local-override"

Pin ref to a release tag when you want stable updates.

Add context under .ai-rulez/context/, then:

Terminal window
cd ~/code/my-project
ai-rulez validate
ai-rulez generate

Typical outputs (presets in the recipe): Cursor (.cursor/rules/), Codex (AGENTS.md), GitHub Copilot (.github/copilot-instructions.md).

Recipes enable the ai-rulez MCP server. With MCP connected, ask the assistant to use the enablement-guide skill to turn modules on or off, then regenerate.

See Recipes and Library structure.