Complete AI development workflow for 19+ tools. Ships with builtin rules, agents, and conventions. Generate native configs for Claude, Cursor, Copilot, Windsurf, Gemini, Codex and more from a single source.
Project description
ai-rulez
A complete development workflow for AI coding tools
Documentation · Quick Start · Examples
The Problem
Every AI coding tool wants its own config: Claude needs CLAUDE.md, Cursor wants .cursor/rules/, Copilot expects .github/copilot-instructions.md. Each has different formats, frontmatter, and directory conventions. If you use more than one tool, you're maintaining duplicate rules that inevitably drift apart.
The Solution
Write your rules, context, skills, agents, and commands once in .ai-rulez/. Run generate. Get native configs for every tool you use.
npx ai-rulez@latest init && npx ai-rulez@latest generate
ai-rulez generates correct, tool-native output for 19 platforms: Claude, Cursor, Windsurf, Copilot, Gemini, Cline, Continue.dev, Codex, OpenCode, Amp, Junie, Antigravity, and more. Each preset respects the target tool's conventions — proper frontmatter, directory structure, file extensions, agent formats.
What Ships Out of the Box
ai-rulez isn't just a config generator. It ships with 32 builtin domains containing opinionated rules, agents, and workflows that establish a professional development baseline immediately.
Builtin Rules (auto-included)
These activate automatically. No configuration needed.
| Domain | What it enforces |
|---|---|
| ai-governance | No AI signatures in commits. Concise communication. Systematic debugging. Verification before claiming success. Critical review of subagent output. |
| code-quality | Anti-patterns prevention. Complexity limits. Dead code removal. Error handling standards. Readability. |
| testing | TDD workflow (red-green-refactor, no exceptions). Testing anti-patterns. Meaningful assertions. Test independence. |
| git-workflow | Atomic commits. Conventional commit messages. Safe operations. Branch hygiene. |
| security | Secrets handling. Input validation. Dependency auditing. Least privilege. |
| token-efficiency | Task runner usage. Incremental approach. Context preservation. Batch operations. |
| agent-delegation | Multi-agent coordination and delegation patterns. |
Builtin Agents
Specialized agents ready to use as subagents:
| Agent | Domain | Model | What it does |
|---|---|---|---|
| code-reviewer | ai-governance | sonnet | Reviews changes for correctness, security, and conventions. Reports by severity. |
| test-writer | testing | sonnet | Writes tests following strict TDD. Fails first, then implements. |
| security-auditor | security | sonnet | Audits dependencies, scans for CVEs, reviews input validation. |
| docs-writer | ai-governance | haiku | Writes clear, concise documentation. No fluff. |
| devops-engineer | cicd | haiku | CI/CD pipelines, GitHub Actions, Docker, deployment automation. |
| release-engineer | cicd | haiku | Version management, changelogs, multi-registry publishing. |
Opt-in Domains
Enable these based on your stack:
Languages (10): rust, python, typescript, go, java, ruby, php, elixir, csharp, r
Bindings (10): pyo3, napi-rs, magnus, ext-php-rs, rustler, wasm, jni-rs, extendr, cgo, vite-plus
Operational: cicd, docker, observability, documentation, default-commands
# .ai-rulez/config.toml
builtins = ["rust", "python", "pyo3", "cicd", "docker", "default-commands"]
Content Types
| Type | Purpose | Example |
|---|---|---|
| Rules | What AI must/must not do | Security standards, coding conventions |
| Context | What AI should know | Architecture docs, domain knowledge |
| Skills | Reusable prompts and workflows | Deployment checklist, review protocol |
| Agents | Specialized AI personas | Code reviewer, performance engineer |
| Commands | Slash commands across tools | /review, /deploy, /test |
Organization at Scale
ai-rulez scales from solo projects to large organizations:
Domains — Group content by feature, language, or team:
.ai-rulez/domains/backend/rules/
.ai-rulez/domains/frontend/rules/
Profiles — Generate different configs for different audiences:
[profiles]
backend = ["backend", "database"]
frontend = ["frontend", "ui"]
Remote Includes — Share rules across repositories:
[[includes]]
name = "company-standards"
source = "https://github.com/company/ai-rules.git"
merge_strategy = "local-override"
Installed Skills — Pull reusable skills from external repos:
[[installed_skills]]
name = "kreuzberg"
source = "https://github.com/kreuzberg-dev/kreuzberg"
MCP Server
ai-rulez includes a built-in MCP server with 35+ tools that lets AI assistants manage their own governance. Add rules, update context, generate configs — all programmatically.
[[mcp_servers]]
name = "ai-rulez"
command = "npx"
args = ["-y", "ai-rulez@latest", "mcp"]
Installation
# No install required
npx ai-rulez@latest <command>
# Or install globally
brew install goldziher/tap/ai-rulez # macOS
npm install -g ai-rulez # npm
pip install ai-rulez # pip
go install github.com/Goldziher/ai-rulez/cmd@latest # Go
Documentation
Full documentation at goldziher.github.io/ai-rulez.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_rulez-4.0.5.tar.gz.
File metadata
- Download URL: ai_rulez-4.0.5.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d6b3560204f46bdc018ab7d136cd643448108bd9b97e3ab23ec8c77d2793e58
|
|
| MD5 |
f981bb113194379eb3dc1d9aed55f4ca
|
|
| BLAKE2b-256 |
8cc32224918d696f834564d93f96c04478fb9d88aab979e4ae905f60d8bb4a34
|
Provenance
The following attestation bundles were made for ai_rulez-4.0.5.tar.gz:
Publisher:
publish.yaml on Goldziher/ai-rulez
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_rulez-4.0.5.tar.gz -
Subject digest:
0d6b3560204f46bdc018ab7d136cd643448108bd9b97e3ab23ec8c77d2793e58 - Sigstore transparency entry: 1380512552
- Sigstore integration time:
-
Permalink:
Goldziher/ai-rulez@1122a798c853e860daa6b2896110ba6a61e44a47 -
Branch / Tag:
refs/tags/v4.0.5 - Owner: https://github.com/Goldziher
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@1122a798c853e860daa6b2896110ba6a61e44a47 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ai_rulez-4.0.5-py3-none-any.whl.
File metadata
- Download URL: ai_rulez-4.0.5-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
851ec6fcbf839191e00615752bb0b4214295c7862f6fa2660db0d3edec812bca
|
|
| MD5 |
0a586b0ba668a624138c4ef4d0af6bff
|
|
| BLAKE2b-256 |
ed58307c3cd171e7829e747b65ab09fae88705508a7e8e9943544a74c8adc344
|
Provenance
The following attestation bundles were made for ai_rulez-4.0.5-py3-none-any.whl:
Publisher:
publish.yaml on Goldziher/ai-rulez
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_rulez-4.0.5-py3-none-any.whl -
Subject digest:
851ec6fcbf839191e00615752bb0b4214295c7862f6fa2660db0d3edec812bca - Sigstore transparency entry: 1380512671
- Sigstore integration time:
-
Permalink:
Goldziher/ai-rulez@1122a798c853e860daa6b2896110ba6a61e44a47 -
Branch / Tag:
refs/tags/v4.0.5 - Owner: https://github.com/Goldziher
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@1122a798c853e860daa6b2896110ba6a61e44a47 -
Trigger Event:
push
-
Statement type: