# Rulesync — Sync AI Coding Rules Across Agents > Rulesync distributes shared AI coding rules through npm, Homebrew, or a binary installer so Claude Code and similar tools stay aligned on one rule source. ## Install Copy the content below into your project: ## Quick Use ```bash npm install -g rulesync brew install rulesync curl -fsSL https://github.com/dyoshikawa/rulesync/releases/latest/download/install.sh | bash ``` ## Intro Rulesync distributes shared AI coding rules through npm, Homebrew, or a binary installer so Claude Code and similar tools stay aligned on one rule source. **Best for:** teams struggling with rule drift across Claude Code, Gemini CLI, Codex-style tools, and shared coding standards **Works with:** npm global installs, Homebrew, binary installers, shared agent rules, cross-tool coding-policy distribution **Setup time:** 5-10 minutes ### Key facts (verified) - GitHub: 1090 stars · 66 forks · pushed 2026-05-13. - License: MIT; owner avatar verified from GitHub API for dyoshikawa. - Entry point checked from README: `npm install -g rulesync`. ## Main Rulesync solves a practical governance problem: standards often exist, but each agent or client keeps a slightly different local copy. Because installation is available through npm, brew, and a direct shell installer, it is easy to standardize even when contributors use different machines. Use it when you already know your preferred rules and need reliable propagation, not when you are still debating what the rules should be. ### Source-backed notes - README documents npm, Homebrew, and single-binary installation modes. - The project is explicitly framed as a utility CLI for AI coding agents. - It is referenced in Awesome Claude Code and Awesome Gemini CLI badges on the README. ### FAQ **Q: Is Rulesync itself a rule set?** A: No. It is a distribution utility for keeping rule sources synchronized. **Q: How can I install it?** A: Via npm, Homebrew, or the release installer script in the README. **Q: When is it most useful?** A: After a team already has shared standards and needs them applied consistently across tools. ## Source & Thanks > Source: https://github.com/dyoshikawa/rulesync > License: MIT > GitHub stars: 1090 · forks: 66 --- ## Quick Use ```bash npm install -g rulesync brew install rulesync curl -fsSL https://github.com/dyoshikawa/rulesync/releases/latest/download/install.sh | bash ``` ## Intro Rulesync 通过 npm、Homebrew 或单文件安装器分发共享的 AI 编码规则,让 Claude Code 等工具围绕同一份规则源保持一致。 **Best for:** 被多套 agent 工具规则漂移困扰、希望统一编码规范来源的团队 **Works with:** npm 全局安装、Homebrew、单文件安装器、共享 agent 规则、跨工具编码规范分发 **Setup time:** 5-10 minutes ### Key facts (verified) - GitHub:1090 stars · 66 forks;最近更新 2026-05-13。 - 许可证:MIT;作者头像与仓库链接均已通过 GitHub API 复核。 - README 中核对过的入口命令:`npm install -g rulesync`。 ## Main Rulesync 解决的是一个很现实的问题:规范明明已经有了,但每个 agent 或客户端手里拿的版本都略有不同。 npm、brew 与 shell 安装器三条路径让它更容易跨设备推广,尤其适合团队环境不统一的情况。 它最适合“规则已经定了,但分发不稳”的阶段;如果你还在争论规则内容本身,它不是用来替你做决策的工具。 ### Source-backed notes - README documents npm, Homebrew, and single-binary installation modes. - The project is explicitly framed as a utility CLI for AI coding agents. - It is referenced in Awesome Claude Code and Awesome Gemini CLI badges on the README. ### FAQ **问:Is Rulesync itself a rule set?** 答:No. It is a distribution utility for keeping rule sources synchronized. **问:How can I install it?** 答:Via npm, Homebrew, or the release installer script in the README. **问:When is it most useful?** 答:After a team already has shared standards and needs them applied consistently across tools. ## Source & Thanks > Source: https://github.com/dyoshikawa/rulesync > License: MIT > GitHub stars: 1090 · forks: 66 --- Source: https://tokrepo.com/en/workflows/rulesync-sync-ai-coding-rules-across-agents Author: Prompt Lab