Skip to content

AI Rulez

Standards-compliant lifecycle tool for agent knowledge and capabilities: author, generate, bundle, validate, govern, publish.

Install

$npx ai-rulez@latest generate
Claude Code
claude mcp add ai-rulez -- npx ai-rulez@latest generate
Cursor / Claude Desktop (mcp.json)
{
  "mcpServers": {
    "ai-rulez": {
      "command": "npx",
      "args": [
        "ai-rulez@latest",
        "generate"
      ]
    }
  }
}

Install command taken from the project's README or registry entry. Always review code before running it.

The standards-compliant lifecycle tool for agentic governance

Documentation · Quick Start · Examples


What it is

ai-rulez is a standards-compliant lifecycle tool for agent knowledge and capabilities. You keep rules, context, skills, agents, commands, hooks, permissions and MCP servers in one source of truth, .ai-rulez/, and ai-rulez takes them through the whole lifecycle:

author  ->  generate  ->  bundle  ->  lint / validate  ->  govern  ->  publish

Most tools in this space stop at "turn my rules into markdown." ai-rulez treats agent knowledge like software you ship: versioned, linted, locked, signed and audited, with an organization policy layer that enforces a floor no repository can loosen.

  • One source, 52 targets. Author once in .ai-rulez/; generate native files for every harness your team uses instead of hand-copying rules across tools.
  • A real lock file. ai-rulez.lock pins remote includes, installed skills and authored content the way go.sum or package-lock.json pin dependencies.
  • Supply-chain-grade trust. Sigstore signing, in-toto/DSSE attestations, CycloneDX/SPDX SBOMs and reviewer approvals, so "what prompt is actually running in production" has a verifiable answer.
  • Org-wide policy, not just repo config. A central policy sets tighten-only floors; verify and CI gates enforce it everywhere.
Stage What happens Commands Docs
Author Rules, context, skills, agents, commands and checks as markdown in .ai-rulez/, with domains, profiles, roles and includes. .ai-rulez/ is an OKF bundle: OKF is the internal format, and init, add and the MCP tools write it. A pre-OKF tree still loads, with a deprecation notice; migrate okf converts it. Or keep AGENTS.md and .agents/ as the source with source = "agents": ai-rulez translates them to every other tool and never writes into them (guide). init, add, convert, import, migrate okf Author
Generate Native files for 52 harnesses (Claude Code, Cursor, Codex, Copilot, Gemini CLI, OpenCode, Devin, Kilo and more), per project or per user. generate, doctor, clean Harnesses
Bundle Distributable plugin bundles, an Agent Plugins package, an OKF bundle, an ARD manifest, AGENTS.md and llms.txt. generate --plugin, export okf Plugins
Lint and validate Content and security checks with stable AR codes, plus each standard's own schema or rules. Works in a repository with no ai-rulez config (--path, --glob and --outputs pick what to lint); judge grades instruction files with a model, also without config. validate, scan, judge, okf validate, verify Validate
Govern A content-pinning lock, reviewer approvals, Sigstore signing, an organization policy and an SBOM. lock, approve, sign, verify --attestation, sbom Trust model
Publish Reproducible, checksummed release artifacts to GitHub releases, npm, OCI and marketplaces. publish Publish

Supported tools

Similar plugs

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io