Command Palette

Search for a command to run...

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

ruler

БесплатноБез исполняемых скриптовНе проверен

Unified AI agent configuration propagation across 18+ coding assistants.

plurigridот plurigrid★ 73 звезды на GitHub

Об этом скилле

ruler

Unified AI agent configuration propagation across 18+ coding assistants.

Repository: https://github.com/intellectronica/ruler Documentation: https://deepwiki.com/intellectronica/ruler


Overview

Ruler centralizes AI agent instructions in .ruler/ and distributes them to all configured agents via ruler apply. Supports Model Context Protocol (MCP) propagation with merge/overwrite strategies.

.ruler/
├── *.md           # Rules (concatenated alphabetically)
├── ruler.toml     # Agent config + MCP settings
└── mcp.json       # Shared MCP servers

Installation

npm install -g ruler
# or
npx ruler init

Commands

ruler init

Creates .ruler/ directory with default files:

ruler init           # Local project
ruler init --global  # ~/.config/ruler/

Creates:

  • instructions.md - Central AI instructions
  • ruler.toml - Configuration file
  • mcp.json - MCP server definitions

ruler apply

Propagates rules to all configured agents:

ruler apply                          # All default agents
ruler apply --agents claude,codex    # Specific agents
ruler apply --no-mcp                 # Skip MCP propagation
ruler apply --mcp-overwrite          # Replace native MCP configs
ruler apply --no-gitignore           # Skip .gitignore updates

ruler revert

Restores files from backups:

ruler revert                  # Restore all, delete backups
ruler revert --keep-backups   # Restore but keep .bak files

Supported Agents (18)

Agent Identifier Instructions Output MCP Config
GitHub Copilot copilot .github/copilot-instructions.md .vscode/mcp.json
Claude Code claude CLAUDE.md .mcp.json
OpenAI Codex CLI codex AGENTS.md .codex/config.toml
Jules jules AGENTS.md -
Cursor cursor .cursor/rules/ruler_cursor_instructions.mdc .cursor/mcp.json
Windsurf windsurf .windsurf/rules/ruler_windsurf_instructions.md ~/.codeium/windsurf/mcp_config.json
Cline cline .clinerules -
Amp amp AGENT.md -
Aider aider ruler_aider_instructions.md + .aider.conf.yml .mcp.json
Firebase Studio firebase .idx/airules.md -
Open Hands openhands .openhands/microagents/repo.md .openhands/config.toml
Gemini CLI gemini-cli GEMINI.md .gemini/settings.json
Junie junie .junie/guidelines.md -
AugmentCode augmentcode .augment/rules/ruler_augment_instructions.md .vscode/settings.json
Kilo Code kilocode .kilocode/rules/ruler_kilocode_instructions.md .kilocode/mcp.json
OpenCode opencode AGENTS.md opencode.json
Goose goose .goosehints -
Crush crush CRUSH.md .crush.json

Configuration: ruler.toml

Complete configuration reference:

# ═══════════════════════════════════════════════════════════════════
# DEFAULT AGENTS
# ═══════════════════════════════════════════════════════════════════

# Agents to run when --agents flag is not specified
# If omitted, all agents are active
default_agents = ["copilot", "claude", "codex", "cursor", "amp"]

# ═══════════════════════════════════════════════════════════════════
# GLOBAL MCP CONFIGURATION
# ═══════════════════════════════════════════════════════════════════

[mcp]
# Enable/disable MCP propagation globally (default: true)
enabled = true

# How to combine with native configs: "merge" or "overwrite"
# merge: Union of servers, incoming takes precedence on conflicts
# overwrite: Replace native config entirely
merge_strategy = "merge"

# ═══════════════════════════════════════════════════════════════════
# GITIGNORE CONFIGURATION
# ═══════════════════════════════════════════════════════════════════

[gitignore]
# Auto-add generated files to .gitignore (default: true)
enabled = true

# ═══════════════════════════════════════════════════════════════════
# AGENT-SPECIFIC CONFIGURATIONS
# ═══════════════════════════════════════════════════════════════════

[agents.copilot]
enabled = true
output_path = ".github/copilot-instructions.md"

[agents.claude]
enabled = true
output_path = "CLAUDE.md"

[agents.codex]
enabled = true
output_path = "AGENTS.md"
output_path_config = ".codex/config.toml"

# Agent-specific MCP override
[agents.codex.mcp]
enabled = true
merge_strategy = "merge"

[agents.cursor]
enabled = true
output_path = ".cursor/rules/ruler_cursor_instructions.mdc"

[agents.amp]
enabled = true
output_path = "AGENT.md"

[agents.aider]
enabled = true
output_path_instructions = "ruler_aider_instructions.md"
output_path_config = ".aider.conf.yml"

[agents.windsurf]
enabled = false  # Disable specific agent

[agents.opencode]
enabled = true
output_path = "AGENTS.md"

[agents.gemini-cli]
enabled = true
Полный SKILL.md на GitHub

Установить ruler в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл ruler?

Unified AI agent configuration propagation across 18+ coding assistants.

Как установить скилл ruler?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ruler запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить ruler с