Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 hooks or [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 nested AGENTS.md and .agents/ (skills, rules, agents, checks, commands, context, domains) instead of .ai-rulez/; generate translates them to every other tool and never writes AGENTS.md or .agents/. agents_md_split = true reads AGENTS.md as one item per ## heading. Start with ai-rulez init --source agents.
  • ai-rulez validate --strict works in a repository with no ai-rulez config, linting the files that follow a convention; --path, --glob and --outputs choose what else to lint.
  • ai-rulez judge --estimate --model openai/gpt-4o-mini previews a model grading of instruction files, again with no config; add --allow-llm to 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
Полный SKILL.md на GitHub

Установить ai-rulez в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/cli-reference.mdreferences/configuration.mdreferences/includes-and-skills.mdreferences/presets-and-outputs.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить ai-rulez с