rulesync 0.67.0 → 0.68.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -152
- package/dist/index.cjs +4278 -6736
- package/dist/index.js +4301 -5440
- package/package.json +7 -3
- package/dist/amazonqcli-PWXCSRAN.js +0 -9
- package/dist/augmentcode-4AFYW4BU.js +0 -9
- package/dist/chunk-35VMCHXQ.js +0 -17
- package/dist/chunk-3QGD3CH5.js +0 -86
- package/dist/chunk-5GKH5TQ4.js +0 -17
- package/dist/chunk-7BIZ5Y6F.js +0 -81
- package/dist/chunk-7QVQO6MQ.js +0 -17
- package/dist/chunk-B2HD24KC.js +0 -145
- package/dist/chunk-CS7AV6JT.js +0 -55
- package/dist/chunk-KONQNQY3.js +0 -17
- package/dist/chunk-OARJESSZ.js +0 -12
- package/dist/chunk-V36ICGOY.js +0 -392
- package/dist/chunk-WCON5BAI.js +0 -12
- package/dist/chunk-WFOWHPBC.js +0 -210
- package/dist/chunk-WYYQXVHC.js +0 -17
- package/dist/chunk-YZUDL4GW.js +0 -117
- package/dist/chunk-ZMGXHLYP.js +0 -17
- package/dist/claudecode-OC7VHCF6.js +0 -10
- package/dist/cline-A4KFSAQE.js +0 -10
- package/dist/codexcli-YP3X7FWB.js +0 -10
- package/dist/copilot-3LIMXQ7O.js +0 -9
- package/dist/cursor-QV72CDJC.js +0 -10
- package/dist/geminicli-XPSJJS65.js +0 -10
- package/dist/junie-265XIW43.js +0 -10
- package/dist/kiro-6OHFHN5X.js +0 -9
- package/dist/opencode-C5QAYVJ5.js +0 -17
- package/dist/qwencode-5RR24UW6.js +0 -10
- package/dist/roo-5IXVBUHD.js +0 -10
- package/dist/windsurf-DVQUJJJ5.js +0 -10
package/README.md
CHANGED
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
[](https://www.npmjs.com/package/rulesync)
|
|
5
5
|
[](https://www.npmjs.com/package/rulesync)
|
|
6
6
|
|
|
7
|
+
> [!IMPORTANT]
|
|
8
|
+
> Starting from v0.68.0, we have implemented a major refactoring by the maintainers. If the behavior is unstable, please specify and run v0.67.0.
|
|
9
|
+
> Additionally, as a result, we have deprecated some features, support, and backward compatibility. If you wish to see any of these features restored, please create an Issue.
|
|
10
|
+
> As background, this tool has been built using Vibe Coding up until now, but the codebase had become extremely complex, making future extensions difficult, so we had to discard the existing codebase. We plan to continue active development going forward.
|
|
11
|
+
> Thank you for your continued support of rulesync.
|
|
12
|
+
|
|
7
13
|
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 19+ AI development tools with rules, commands, MCP, ignore files, and subagents. Uses the recommended `.rulesync/rules/*.md` structure, with full backward compatibility for legacy `.rulesync/*.md` layouts.
|
|
8
14
|
|
|
9
15
|
## Installation
|
|
@@ -14,95 +20,59 @@ npm install -g rulesync
|
|
|
14
20
|
pnpm add -g rulesync
|
|
15
21
|
# or
|
|
16
22
|
yarn global add rulesync
|
|
23
|
+
# or
|
|
24
|
+
bun add -g rulesync
|
|
25
|
+
|
|
26
|
+
# And then
|
|
27
|
+
rulesync --version
|
|
28
|
+
rulesync --help
|
|
17
29
|
```
|
|
18
30
|
|
|
19
31
|
## Getting Started
|
|
20
32
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
npx rulesync init --legacy
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
2. **Edit the generated rule files:**
|
|
33
|
-
- **Recommended**: Edit files in `.rulesync/rules/` directory
|
|
34
|
-
- **Legacy**: Edit files in `.rulesync/` directory
|
|
35
|
-
|
|
36
|
-
3. **Generate tool-specific configuration files:**
|
|
37
|
-
```bash
|
|
38
|
-
# Generate all features for all tools (recommended)
|
|
39
|
-
npx rulesync generate --targets * --features *
|
|
40
|
-
|
|
41
|
-
# Generate specific features for specific tools
|
|
42
|
-
npx rulesync generate --targets copilot,cursor,cline --features rules,commands
|
|
43
|
-
npx rulesync generate --targets claudecode --features rules,commands,subagents
|
|
44
|
-
|
|
45
|
-
# Generate only rules (fastest option)
|
|
46
|
-
npx rulesync generate --targets * --features rules
|
|
47
|
-
|
|
48
|
-
# Generate subagents for Claude Code
|
|
49
|
-
npx rulesync generate --targets claudecode --features subagents
|
|
50
|
-
|
|
51
|
-
# Generate specific tools with all features
|
|
52
|
-
npx rulesync generate --targets claudecode,cursor --features *
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
### Existing Project
|
|
56
|
-
|
|
57
|
-
If you already have AI tool configurations:
|
|
33
|
+
```bash
|
|
34
|
+
# Create necessary directories and sample rule files
|
|
35
|
+
npx rulesync init
|
|
36
|
+
# Create a new configuration file
|
|
37
|
+
npx rulesync config --init
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
On the other hand, if you already have AI tool configurations:
|
|
58
41
|
|
|
59
42
|
```bash
|
|
60
|
-
# Import existing
|
|
43
|
+
# Import existing files (to .rulesync/**/*)
|
|
61
44
|
npx rulesync import --targets claudecode # From CLAUDE.md
|
|
62
45
|
npx rulesync import --targets cursor # From .cursorrules
|
|
63
46
|
npx rulesync import --targets copilot # From .github/copilot-instructions.md
|
|
64
|
-
npx rulesync import --targets
|
|
65
|
-
npx rulesync import --targets qwencode # From QWEN.md
|
|
66
|
-
npx rulesync import --targets opencode # From AGENTS.md
|
|
67
|
-
npx rulesync import --targets agentsmd # From AGENTS.md + .agents/memories/*.md
|
|
68
|
-
npx rulesync import --targets windsurf # From .windsurf/rules/
|
|
47
|
+
npx rulesync import --targets claudecode --features rules,mcp,commands,subagents
|
|
69
48
|
|
|
70
|
-
#
|
|
71
|
-
npx rulesync import --targets claudecode --legacy
|
|
72
|
-
npx rulesync import --targets cursor --legacy
|
|
73
|
-
npx rulesync import --targets copilot --legacy
|
|
49
|
+
# And more tool supports
|
|
74
50
|
|
|
75
51
|
# Generate unified configurations with all features
|
|
76
|
-
npx rulesync generate --targets * --features *
|
|
52
|
+
npx rulesync generate --targets "*" --features "*"
|
|
77
53
|
```
|
|
78
54
|
|
|
79
|
-
## Supported Tools
|
|
80
|
-
|
|
81
|
-
rulesync supports both **generation** and **import** for
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
- **JetBrains Junie** - IntelliJ Family (`.junie/guidelines.md` + IDE integration)
|
|
101
|
-
- **Kiro IDE** - AWS IDE (`.kiro/steering/*.md` + **AI Ignore Files** `.aiignore`)
|
|
102
|
-
|
|
103
|
-
### Standardized Formats
|
|
104
|
-
- **AgentsMd** - Universal Format (`AGENTS.md` + `.agents/memories/*.md` for standardized AI agent instructions)
|
|
105
|
-
- **AugmentCode Legacy** - Backward compatibility (`.augment-guidelines` format support)
|
|
55
|
+
## Supported Tools and Features
|
|
56
|
+
|
|
57
|
+
rulesync supports both **generation** and **import** for All of the major AI coding tools:
|
|
58
|
+
|
|
59
|
+
| Tool | rules | ignore | mcp | commands | subagents |
|
|
60
|
+
|------------------------|:-----:|:------:|:-----:|:--------:|:---------:|
|
|
61
|
+
| AGENTS.md | ✅ | | | | |
|
|
62
|
+
| Claude Code | ✅ | | ✅ | ✅ | ✅ |
|
|
63
|
+
| Codex CLI | ✅ | ✅ | | | |
|
|
64
|
+
| Gemini CLI | ✅ | ✅ | | ✅ | |
|
|
65
|
+
| GitHub Copilot | ✅ | | ✅ | | |
|
|
66
|
+
| Cursor | ✅ | ✅ | ✅ | | |
|
|
67
|
+
| OpenCode | ✅ | | | | |
|
|
68
|
+
| Cline | ✅ | ✅ | ✅ | | |
|
|
69
|
+
| Roo Code | ✅ | ✅ | ✅ | ✅ | |
|
|
70
|
+
| Qwen Code | ✅ | ✅ | | | |
|
|
71
|
+
| Kiro IDE | ✅ | ✅ | | | |
|
|
72
|
+
| Amazon Q Developer CLI | ✅ | | ✅ | | |
|
|
73
|
+
| JetBrains Junie | ✅ | ✅ | | | |
|
|
74
|
+
| AugmentCode | ✅ | ✅ | | | |
|
|
75
|
+
| Windsurf | ✅ | ✅ | | | |
|
|
106
76
|
|
|
107
77
|
## Why rulesync?
|
|
108
78
|
|
|
@@ -123,105 +93,58 @@ Enable hybrid development workflows combining multiple AI tools:
|
|
|
123
93
|
- **Windsurf** for comprehensive AI-assisted editing with Cascade AI
|
|
124
94
|
- **Gemini CLI** for Google AI integration and custom workflows
|
|
125
95
|
|
|
126
|
-
### 🔓 **No
|
|
127
|
-
Avoid
|
|
96
|
+
### 🔓 **No Lock-in**
|
|
97
|
+
Avoid lock-in completely. If you decide to stop using rulesync, you can continue using the generated rule files as-is.
|
|
128
98
|
|
|
129
99
|
### 🎯 **Consistency Across Tools**
|
|
130
100
|
Apply consistent rules across all AI tools, improving code quality and development experience for the entire team.
|
|
131
101
|
|
|
132
|
-
### 📁 **Organized Structure**
|
|
133
|
-
New organized directory structure (`.rulesync/rules/`) keeps rules well-organized, while maintaining full backward compatibility with legacy layouts (`.rulesync/*.md`) for existing projects.
|
|
134
|
-
|
|
135
102
|
## Quick Commands
|
|
136
103
|
|
|
137
104
|
```bash
|
|
138
105
|
# Initialize new project (recommended: organized rules structure)
|
|
139
106
|
npx rulesync init
|
|
140
107
|
|
|
141
|
-
# Initialize with legacy layout (backward compatibility)
|
|
142
|
-
npx rulesync init --legacy
|
|
143
|
-
|
|
144
|
-
# Add new rule file to recommended location
|
|
145
|
-
npx rulesync add typescript-rules
|
|
146
|
-
|
|
147
|
-
# Add rule file to legacy location (for existing projects)
|
|
148
|
-
npx rulesync add typescript-rules --legacy
|
|
149
|
-
|
|
150
108
|
# Import existing configurations (to .rulesync/rules/ by default)
|
|
151
|
-
npx rulesync import --targets
|
|
152
|
-
npx rulesync import --targets amazonqcli
|
|
153
|
-
npx rulesync import --targets qwencode
|
|
154
|
-
npx rulesync import --targets agentsmd
|
|
155
|
-
npx rulesync import --targets claudecode # Imports subagents too
|
|
156
|
-
|
|
157
|
-
# Import to legacy location (for existing projects)
|
|
158
|
-
npx rulesync import --targets cursor --legacy
|
|
159
|
-
npx rulesync import --targets amazonqcli --legacy
|
|
160
|
-
npx rulesync import --targets windsurf --legacy
|
|
161
|
-
|
|
162
|
-
# Validate rules
|
|
163
|
-
npx rulesync validate
|
|
109
|
+
npx rulesync import --targets claudecode --features rules,ignore,mcp,commands,subagents
|
|
164
110
|
|
|
165
111
|
# Generate all features for all tools (new preferred syntax)
|
|
166
|
-
npx rulesync generate --targets * --features *
|
|
112
|
+
npx rulesync generate --targets "*" --features "*"
|
|
167
113
|
|
|
168
114
|
# Generate specific features for specific tools
|
|
169
115
|
npx rulesync generate --targets copilot,cursor,cline --features rules,mcp
|
|
170
116
|
npx rulesync generate --targets claudecode --features rules,subagents
|
|
171
117
|
|
|
172
|
-
# Generate only rules (no MCP, ignore files, or subagents)
|
|
173
|
-
npx rulesync generate --targets * --features rules
|
|
174
|
-
|
|
175
|
-
# Generate subagents for supported tools
|
|
176
|
-
npx rulesync generate --targets claudecode --features subagents
|
|
177
|
-
|
|
178
|
-
# Watch for changes
|
|
179
|
-
npx rulesync watch
|
|
180
|
-
|
|
181
|
-
# Show project status
|
|
182
|
-
npx rulesync status
|
|
118
|
+
# Generate only rules (no MCP, ignore files, commands, or subagents)
|
|
119
|
+
npx rulesync generate --targets "*" --features rules
|
|
183
120
|
|
|
184
121
|
# Add generated files to .gitignore
|
|
185
122
|
npx rulesync gitignore
|
|
186
123
|
```
|
|
187
124
|
|
|
188
|
-
##
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
### ⚡ Features
|
|
212
|
-
- **[Selective Generation](./docs/features/selective-generation.md)** - Generate only what you need with --features option
|
|
213
|
-
- **[Custom Slash Commands](./docs/features/custom-commands.md)** - Create unified commands for Claude Code and Gemini CLI
|
|
214
|
-
- **[MCP Integration](./docs/features/mcp.md)** - Model Context Protocol server configuration
|
|
215
|
-
- **[Subagents System](./docs/features/subagents.md)** - Create specialized AI assistants and workflows
|
|
216
|
-
- **[Import System](./docs/features/import.md)** - Import existing AI tool configurations
|
|
217
|
-
- **[Rule Validation](./docs/features/validation.md)** - Validate rule files and configuration
|
|
218
|
-
|
|
219
|
-
### 📚 Guides
|
|
220
|
-
- **[Getting Started](./docs/guides/getting-started.md)** - Comprehensive setup guide
|
|
221
|
-
- **[Best Practices](./docs/guides/best-practices.md)** - Proven strategies and patterns
|
|
222
|
-
- **[Migration Guide](./docs/guides/migration.md)** - Migrate from existing AI tool configurations
|
|
223
|
-
- **[Troubleshooting](./docs/guides/troubleshooting.md)** - Common issues and solutions
|
|
224
|
-
- **[Real-World Examples](./docs/guides/examples.md)** - Practical implementation examples
|
|
125
|
+
## Configuration
|
|
126
|
+
|
|
127
|
+
You can configure rulesync by creating a `rulesync.jsonc` file in the root of your project.
|
|
128
|
+
|
|
129
|
+
```jsonc
|
|
130
|
+
// rulesync.jsonc
|
|
131
|
+
{
|
|
132
|
+
// List of tools to generate configurations for. You can specify "*" to generate all tools.
|
|
133
|
+
"targets": ["cursor", "claudecode", "geminicli", "opencode", "codexcli"],
|
|
134
|
+
|
|
135
|
+
// Features to generate. You can specify "*" to generate all features.
|
|
136
|
+
"features": ["rules", "ignore", "mcp", "commands", "subagents"],
|
|
137
|
+
|
|
138
|
+
// Base directory or directories for generation
|
|
139
|
+
"baseDir": ".",
|
|
140
|
+
|
|
141
|
+
// Delete existing files before generating
|
|
142
|
+
"delete": true,
|
|
143
|
+
|
|
144
|
+
// Verbose output
|
|
145
|
+
"verbose": false
|
|
146
|
+
}
|
|
147
|
+
```
|
|
225
148
|
|
|
226
149
|
## License
|
|
227
150
|
|
|
@@ -231,4 +154,4 @@ MIT License
|
|
|
231
154
|
|
|
232
155
|
Issues and Pull Requests are welcome!
|
|
233
156
|
|
|
234
|
-
For development setup and contribution guidelines, see [CONTRIBUTING.md](./CONTRIBUTING.md).
|
|
157
|
+
For development setup and contribution guidelines, see [CONTRIBUTING.md](./CONTRIBUTING.md).
|