Rulesync rulesync
install
source · Clone the upstream repo
git clone https://github.com/dyoshikawa/rulesync
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/dyoshikawa/rulesync "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/rulesync" ~/.claude/skills/dyoshikawa-rulesync-rulesync && rm -rf "$T"
manifest:
skills/rulesync/SKILL.mdsource content
Rulesync
Rulesync generates and synchronizes AI rule configuration files across 20+ coding tools (Claude Code, Cursor, Copilot, Windsurf, Cline, Gemini CLI, and more) from a single set of unified rule files in
.rulesync/.
Quick Start
# Install npm install -g rulesync # New project: initialize config, rules, and directory structure rulesync init # Import existing AI tool configs into unified format rulesync import --targets claudecode # From CLAUDE.md rulesync import --targets cursor # From .cursorrules rulesync import --targets copilot # From .github/copilot-instructions.md # Generate tool-specific configs from unified rules rulesync generate --targets "*" --features "*"
Core Workflow
- Init -
createsrulesync init
config andrulesync.jsonc
directory with sample rules.rulesync/ - Write rules - Add shared AI rules in
, MCP configs in.rulesync/rules/
, commands in.rulesync/mcp/.rulesync/commands/ - Generate -
produces tool-specific files (CLAUDE.md, .cursorrules, .github/copilot-instructions.md, etc.)rulesync generate - Verify -
previews changes;rulesync generate --dry-run
validates files are up to date (useful in CI)--check
Key Commands
| Command | Purpose |
|---|---|
| Scaffold project with config and sample rules |
| Generate all tool configs from unified rules |
| Import existing tool config into unified format |
| Fetch rules or skills from a remote repository |
| Install skill sources declared in rulesync.jsonc |
| CI check that generated files are up to date |
| Preview changes without writing files |