MCPcopy Index your code
hub / github.com/dyoshikawa/rulesync

github.com/dyoshikawa/rulesync @v9.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v9.2.0 ↗ · + Follow
3,583 symbols 11,700 edges 703 files 412 documented · 11% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Rulesync Logo

Rulesync

CI npm version npm downloads Ask DeepWiki Mentioned in Awesome Claude Code Mentioned in Awesome Gemini CLI

Documentation | npm

A Node.js CLI tool that automatically generates configuration files for various AI development tools from unified AI rule files. Features selective generation, comprehensive import/export capabilities, and supports major AI development tools with rules, commands, MCP, ignore files, subagents and skills.

[!NOTE] If you are interested in Rulesync latest news, please follow the maintainer's X(Twitter) account: @dyoshikawa1993

Installation

npm install -g rulesync
# or
brew install rulesync

Single Binary

curl -fsSL https://github.com/dyoshikawa/rulesync/releases/latest/download/install.sh | bash

See Installation docs for manual install and platform-specific instructions.

Getting Started

# Create necessary directories, sample rule files, and configuration file
rulesync init

# Install official skills (recommended)
rulesync fetch dyoshikawa/rulesync --features skills

# Generate unified configurations with all features
rulesync generate --targets "*" --features "*"

If you already have AI tool configurations:

# Import existing files (to .rulesync/**/*)
rulesync import --targets claudecode    # From CLAUDE.md
rulesync import --targets cursor        # From .cursorrules
rulesync import --targets copilot       # From .github/copilot-instructions.md

Want to convert configuration from one AI tool to another directly, without adopting the .rulesync/ source-of-truth workflow?

# Convert Cursor rules to Copilot and Claude Code in one shot (no .rulesync/ files written)
rulesync convert --from cursor --to copilot,claudecode

See Quick Start guide for more details.

Supported Tools and Features

The tables below show whether each tool supports a given feature (✅ = supported, blank = not supported). A ✅ means the feature is supported in at least one mode (project, global, or simulated) — for example, Codex CLI commands is global-only. For each tool's --targets value and full mode breakdown (project / global / simulated / MCP tool config), see the Supported Tools reference.

AI Coding Tools

Tool rules ignore mcp commands subagents skills hooks permissions
Amp
Claude Code
Codex CLI
GitHub Copilot
GitHub Copilot CLI
Goose
Hermes Agent
Grok CLI
Cursor
deepagents-cli
Factory Droid
OpenCode
Cline
Kilo Code
Roo Code
Rovodev (Atlassian)
Takt
Vibe Code
Qwen Code
Reasonix
Kiro ⚠️
Kiro CLI
Kiro IDE
Google Antigravity IDE
Google Antigravity CLI
JetBrains AI Assistant
JetBrains Junie
AugmentCode
Devin Desktop
Warp
Replit
Pi Coding Agent
Zed

Open Standards

Tool rules ignore mcp commands subagents skills hooks permissions
AGENTS.md
AgentsSkills
  • ⚠️: Deprecated — still supported, but see the note below

Deprecation notes

  • Google Antigravity (antigravity-ide / antigravity-cli) — Antigravity 2.0 splits into two products with separate global config trees: the desktop antigravity-ide and the antigravity-cli (agy). For project-scope rules, both antigravity-ide and antigravity-cli emit the root rule as a plain cross-tool AGENTS.md at the project root (the Gemini-lineage discovery order is AGENTS.md, CONTEXT.md, GEMINI.md; the IDE has read AGENTS.md since v1.20.3) and non-root rules under .agents/rules/.
  • Kiro (kiro) — Kiro's IDE and CLI use diverging config formats (IDE: Markdown subagents .kiro/agents/*.md and structured JSON hooks .kiro/hooks/*.json; CLI: JSON agent-config subagents .kiro/agents/*.json and hooks in .kiro/agents/default.json), so kiro is split into kiro-cli and kiro-ide. The legacy kiro target remains as a deprecated alias with its current behavior unchanged. The two targets share every surface except subagents (Markdown vs JSON) and hooks; Kiro IDE hooks are emitted as a single .kiro/hooks/rulesync.json ({ "version": "v1", "hooks": [ ... ] }) in project (.kiro/hooks/) and global (~/.kiro/hooks/) scope, while the CLI uses .kiro/agents/default.json. Global skills (~/.kiro/skills/) and global Kiro IDE subagents (~/.kiro/agents/) are supported too, as are global Kiro CLI commands (~/.kiro/prompts/) and subagents (~/.kiro/agents/).

Some features accept per-feature options (e.g., Claude Code's ignore feature supports fileMode: "local" to write to settings.local.json instead of settings.json). See Configuration > Per-feature options for details.

Documentation

For full documentation including configuration, CLI reference, file formats, programmatic API, and more, visit the documentation site.

License

MIT License

Core symbols most depended-on inside this repo

writeFileContent
called by 1607
src/utils/file.ts
getFileContent
called by 1530
src/features/commands/hermesagent-command.ts
ensureDir
called by 874
src/utils/file.ts
formatError
called by 393
src/utils/error.ts
readFileContent
called by 380
src/utils/file.ts
getJson
called by 354
src/features/mcp/amp-mcp.ts
getFrontmatter
called by 329
src/features/skills/pi-skill.ts
setupTestDirectory
called by 274
src/test-utils/test-directories.ts

Shape

Method 2,031
Function 979
Class 573

Languages

TypeScript100%

Modules by API surface

src/features/permissions/codexcli-permissions.ts33 symbols
src/config/config.ts33 symbols
src/utils/logger.ts32 symbols
src/utils/file.ts29 symbols
src/features/rules/rules-processor.ts28 symbols
src/lib/update.ts25 symbols
src/features/permissions/augmentcode-permissions.ts23 symbols
src/features/mcp/goose-mcp.ts23 symbols
src/lib/generate.ts21 symbols
src/features/permissions/cursor-permissions.ts21 symbols
src/features/hooks/vibe-hooks.ts21 symbols
src/features/subagents/hermesagent-subagent.ts20 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add rulesync \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact