Rulesync 代码创建
- 作者仓库星标 0
- 作者仓库 skills-registry
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 -
rulesync initcreatesrulesync.jsoncconfig and.rulesync/directory with sample rules - Write rules - Add shared AI rules in
.rulesync/rules/, MCP configs in.rulesync/mcp/, commands in.rulesync/commands/ - Generate -
rulesync generateproduces tool-specific files (CLAUDE.md, .cursorrules, .github/copilot-instructions.md, etc.) - Verify -
rulesync generate --dry-runpreviews changes;--checkvalidates files are up to date (useful in CI)
Key Commands
| Command | Purpose |
|---|---|
rulesync init |
Scaffold project with config and sample rules |
rulesync generate --targets "*" --features "*" |
Generate all tool configs from unified rules |
rulesync import --targets <tool> |
Import existing tool config into unified format |
rulesync fetch owner/repo --features skills |
Fetch rules or skills from a remote repository |
rulesync install |
Install skill sources declared in rulesync.jsonc |
rulesync generate --check |
CI check that generated files are up to date |
rulesync generate --dry-run |
Preview changes without writing files |
Detailed Reference
- Installation, Quick Start
- Why Rulesync?, Configuration, Global Mode, Simulated Features, Declarative Sources, Official Skills, Dry Run, Case Studies
- Supported Tools, CLI Commands, File Formats, MCP Server
- Programmatic API
- FAQ
<!-- tomevault:4.0:skill_md:2026-05-23 -->Source: codekiln/beans — distributed by TomeVault.
- 流狐分类
- 通用
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 即装即用
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- macOS · Linux · Windows
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 检测到的网络行为
- 允许外网请求
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Quick Start
Quick Start
Core Workflow
Init - rulesync init creates rulesync.jsonc config and .rulesync/ directory with sample rules Write rules - Add shared AI rules in .rulesync/rules/, MCP configs in .rulesync/mcp/, commands in .rulesync/commands/ Generate - rulesync generate produces…
# 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
```bash
# 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
1. **Init** - `rulesync init` creates `rulesync.jsonc` config and `.rulesync/` directory with sample rules
2. **Write rules** - Add shared AI rules in `.rulesync/rules/`, MCP configs in `.rulesync/mcp/`, commands in `.rulesync/commands/`
3. **Generate** - `rulesync generate` produces tool-specific files (CLAUDE.md, .cursorrules, .github/copilot-instructions.md, etc.)
4. **Verify** - `rulesync generate --dry-run` previews changes; `--check` validates files are up to date (useful in CI)
## Key Commands
| Command | Purpose |
| ------------------------------------------------ | ------------------------------------------------ |
| `rulesync init` | Scaffold project with config and sample rules |
| `rulesync generate --targets "*" --features "*"` | Generate all tool configs from unified rules |
| `rulesync import --targets <tool>` | Import existing tool config into unified format |
… 证据边界与执行链路
作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Quick Start → Core Workflow → Key Commands → Detailed Reference
要点 -> Init · Write rules · Generate · Verify
文件/命令 -> .rulesync/ · rulesync init · rulesync.jsonc · .rulesync/rules/ · .rulesync/mcp/ · .rulesync/commands/ · rulesync generate · rulesync generate --dry-run
内容 SHA-256 -> a8daa273ea85
方法与流程
适用与边界
原文中的明确线索
.rulesync/、rulesync init、rulesync.jsonc、.rulesync/rules/、.rulesync/mcp/、.rulesync/commands/、rulesync generate、rulesync generate --dry-run