AI Rulez logo

AI Rulez

Centralizes coding-agent rules and settings, then generates, validates, governs, and publishes configurations for 52 assistants.

Install AI Rulez

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ai-rulez": {
      "command": "npx",
      "args": [
        "-y",
        "ai-rulez@latest"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y ai-rulez@latest

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

ai-rulez MCP server brings a shared .ai-rulez configuration into coding-agent workflows, covering rules, context, skills, agents, commands, hooks, permissions, and MCP settings. It can generate native files for 52 supported assistants, validate content and links, detect configuration drift, and manage dependency locks, approvals, signatures, and SBOMs. Reach for it when a team needs one version-controlled source for multiple coding tools rather than separately maintaining each assistant's files. The project also provides a CLI and Go API for automation outside MCP.

Use cases

  • Centralize instructions for several coding assistants
  • Generate assistant-specific files from one project configuration
  • Check generated configuration for drift in CI
  • Validate standalone AGENTS.md and SKILL.md files
  • Lock and publish governed agent bundles

Key features

  • 52 built-in assistant presets
  • Rules, skills, agents, hooks, permissions, and MCP configuration
  • CI drift detection with generate --check
  • Validation with stable AR rule codes
  • Dependency locking, approvals, signatures, and SBOMs
  • CLI, MCP server, and Go API access

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · ai-rulez@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars180Stargazers on the source repository.
npm downloads52kPackage downloads in the last 30 days.
Last commit2d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How AI Rulez works

What ai-rulez does

ai-rulez centralizes configuration for AI coding assistants in a .ai-rulez/ directory. That directory can contain rules, context, skills, agents, commands, hooks, permissions, and MCP server settings. From the shared source, the project produces assistant-specific files such as AGENTS.md, CLAUDE.md, rule directories, skill folders, settings files, and MCP configuration files.

The project includes 52 built-in presets covering coding assistants, command-line agents, and IDE integrations. Presets can be combined, and unsupported tools can be represented with a custom preset. The generated output is intended to be committed with the project so that assistants and developers use the same instructions.

How it works

Initialize a project, define the assistants it uses in .ai-rulez/config.toml, add or edit content, and run generation. A configuration can select presets such as Claude Code, Cursor, Codex, Copilot, and Gemini CLI. The generated files use the conventions expected by each selected tool; for example, the output may include AGENTS.md, CLAUDE.md, assistant skill directories, and MCP settings files.

generate --check can run in CI to identify differences between the shared source and checked-in generated files. Validation checks content, links, and security concerns and reports stable AR rule codes. Validation can also be applied to standalone AGENTS.md and SKILL.md files without an .ai-rulez configuration.

The system also treats remote includes, installed skills, and authored content as governed dependencies. Lock files, approvals, Sigstore signatures, SBOMs, and organization policy can be used to control and inspect these inputs. Plugin bundles, marketplaces, Agent Plugins, and ARD manifests can be built for distribution.

Setup and configuration

Installation options include Homebrew, npm, PyPI, Go, and Scoop. The documented runtime requirements are Node.js 22 or newer for npm and Python 3.11 or newer for PyPI. The tool can also be invoked without a permanent installation through npx ai-rulez@latest or uvx ai-rulez.

A minimal configuration sets a schema version, project name, and preset list:

toml
version = "5.0"
name = "acme"
presets = ["claude", "cursor", "codex", "copilot", "gemini"]

Typical commands include init, add, generate, and validate. Teams can place generation checks in CI and keep both .ai-rulez/ and the resulting assistant files under version control.

Tools and capabilities

  • Author and manage rules, profiles, domains, includes, and skills.
  • Generate native instructions, skills, settings, permissions, hooks, and MCP configuration for selected presets.
  • Validate content, links, and security-related issues with stable rule codes.
  • Review content with verified model evidence and evaluate skills.
  • Lock and sign dependencies, record SBOM information, and apply organization policy.
  • Build and publish plugin bundles, marketplaces, Agent Plugins, and ARD manifests.
  • Use the CLI, MCP server, or Go API to integrate these workflows into other automation.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about AI Rulez

ai-rulez is an MCP server that connects coding assistants to a centralized .ai-rulez configuration and its rules, skills, plugins, and MCP settings. Its main tools support authoring, generating, validating, reviewing, governing, and publishing agent configuration across supported coding assistants, alongside CLI and Go API access.

Install ai-rulez through Homebrew, npm, PyPI, Go, or Scoop. You can also run commands without installing it by using npx ai-rulez@latest or uvx ai-rulez. The npm route requires Node.js 22 or newer, while the PyPI route requires Python 3.11 or newer.

Set the desired presets in .ai-rulez/config.toml, then run ai-rulez generate. The selected presets determine which native files are produced for assistants such as Claude Code, Cursor, Codex, Copilot, and Gemini CLI.

Yes. Run generate --check in CI to detect drift between the shared .ai-rulez source and the generated assistant files. The project also provides validation for content, links, and security issues.

Yes. Cursor is one of ai-rulez's built-in presets. Selecting the cursor preset generates Cursor-compatible rules and MCP configuration alongside the other outputs selected for the project.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAI Rulez AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ai-rulez?style=directory)](https://allmcps.com/mcp/ai-rulez)
HTML Embed
<a href="https://allmcps.com/mcp/ai-rulez"><img src="https://allmcps.com/api/badge/ai-rulez?style=directory" alt="AI Rulez on AllMCPs" /></a>