ai-rulez
БесплатноБез исполняемых скриптовНе проверенStandards-compliant lifecycle tool for agent knowledge and capabilities: author in .ai-rulez/, generate for 52 harnesses (Claude Code, Cursor, Codex, Copilot…
от Goldziher★ 182 звезды на GitHubОб этом скилле
AI-Rulez
AI-Rulez is a standards-compliant lifecycle tool for agent knowledge and capabilities. It keeps one source of truth in a config directory (default .ai-rulez/) and takes it through author, generate (52 built-in harness presets: Claude Code, Cursor, Codex, Copilot, Gemini CLI, OpenCode, Devin, and others), bundle (OKF, Agent Plugins, ARD), lint and validate, govern (lock, approvals, Sigstore signing, policy, SBOM) and publish.
Use this skill when:
- Setting up or modifying
.ai-rulez/configuration - Writing rules, context, skills, agents, commands, or checks for AI assistants
- Declaring
hooksor[permissions]once for every harness - Generating a personal config into the home directory with
generate --user - Configuring domains, profiles, or includes
- Using custom config directory names via
--config-dir - Generating outputs for specific AI tools
- Auditing planned writes/deletes with
--dry-run - Installing or managing external skills
Installation
# npm (no install)
npx -y ai-rulez@latest
# Python (no install)
uvx ai-rulez
# Source builds (mise; the build task fetches and verifies the pinned native library)
# Checkout the source revision pinned in this repository's CI, then:
mise run build
Package commands use the published release. Source builds also need the pinned
Liter-LLM native library: mise run build provisions it through
scripts/setup-liter-llm.sh; a bare go install does not do that setup.
Version 5.4.0 includes the governance and plugin validation fixes described below.
For a reviewed source build, use the exact revision recorded in the CI workflow.
Quick Start
# Initialize a new project
ai-rulez init
# Add rules and context
ai-rulez add rule my-rule --priority high
ai-rulez add context my-context
# Generate outputs for all configured presets
ai-rulez generate
# Regenerate whenever .ai-rulez/ changes
ai-rulez generate --watch
# Validate configuration
ai-rulez validate
# Read-only diagnostics: drift, removed presets, missing tools
ai-rulez doctor
Lifecycle commands
ai-rulez generate --plugin # bundle: plugin bundles from the [plugin] block
ai-rulez export okf # bundle: an OKF bundle of the knowledge
ai-rulez validate --strict # validate: warnings fail
ai-rulez okf validate <bundle-dir> # validate: an existing OKF bundle directory
ai-rulez lock # govern: pin includes, skills and content
ai-rulez sign --lock # govern: Sigstore attestation of the lock
ai-rulez sbom -o ai-bom.cdx.json # govern: CycloneDX SBOM
ai-rulez publish --dry-run # publish: preview release artifacts
ai-rulez worktree create|setup # worktree: provision a linked worktree from this checkout (--copy-local is opt-in)
Supported and planned standards, with pinned versions and test status, are in https://goldziher.github.io/ai-rulez/standards/.
Other sources and config-free checks
source = "agents"(or a configuration in.agents/ai-rulez.toml) reads the root and nestedAGENTS.mdand.agents/(skills, rules, agents, checks, commands, context, domains) instead of.ai-rulez/;generatetranslates them to every other tool and never writesAGENTS.mdor.agents/.agents_md_split = truereadsAGENTS.mdas one item per##heading. Start withai-rulez init --source agents.ai-rulez validate --strictworks in a repository with no ai-rulez config, linting the files that follow a convention;--path,--globand--outputschoose what else to lint.ai-rulez judge --estimate --model openai/gpt-4o-minipreviews a model grading of instruction files, again with no config; add--allow-llmto send.
Configuration Structure
.ai-rulez/
config.toml # Governance configuration
config.plugins.toml # Plugin and marketplace layer, selected by default_layers
rules/ # Governance rules (.md files with frontmatter)
context/ # Contextual information (.md files)
skills/ # Specialized capabilities (name/SKILL.md plus resources)
agents/ # Agent definitions (.md files)
commands/ # Custom commands (.md files)
checks/ # Code-review guidelines (.md files)
domains/ # Domain-scoped content
backend/
rules/
context/
skills/
config.toml
Keep governance in config.toml. Put marketplace registries (marketplaces) and authoring
[plugin]/[marketplace] blocks in config.plugins.toml, and select that layer with
default_layers = ["plugins"] before the first table in config.toml. Plugin authoring
can use a separate plugin/.ai-rulez/ tree so public product skills exclude contributor rules.
version = "5.0"
name = "my-project"
description = "Project description"
presets = ["claude", "cursor", "gemini"]
default_layers = ["plugins"]
default = "backe
Установить ai-rulez в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ai-rulez?
Standards-compliant lifecycle tool for agent knowledge and capabilities: author in .ai-rulez/, generate for 52 harnesses (Claude Code, Cursor, Codex, Copilot, Gemini CLI, OpenCode, Devin, and more), bundle (OKF, Agent Plugins, ARD), validate, govern (lock, approvals, signing, SBOM) and publish. Use when configuring rules, context, skills, checks, hooks, permissions, domains, profiles, includes, plugins, or generating tool-specific outputs.
Как установить скилл ai-rulez?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ai-rulez запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic