rulesync 6.7.0 → 6.8.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 +52 -49
- package/dist/index.cjs +564 -396
- package/dist/index.js +564 -396
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -118,26 +118,29 @@ Get-FileHash rulesync.exe -Algorithm SHA256 | ForEach-Object {
|
|
|
118
118
|
## Getting Started
|
|
119
119
|
|
|
120
120
|
```bash
|
|
121
|
+
# Install rulesync globally
|
|
122
|
+
npm install -g rulesync
|
|
123
|
+
|
|
121
124
|
# Create necessary directories, sample rule files, and configuration file
|
|
122
|
-
|
|
125
|
+
rulesync init
|
|
123
126
|
|
|
124
127
|
# Install official skills (recommended)
|
|
125
|
-
|
|
128
|
+
rulesync fetch dyoshikawa/rulesync --features skills
|
|
126
129
|
```
|
|
127
130
|
|
|
128
131
|
On the other hand, if you already have AI tool configurations:
|
|
129
132
|
|
|
130
133
|
```bash
|
|
131
134
|
# Import existing files (to .rulesync/**/*)
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
rulesync import --targets claudecode # From CLAUDE.md
|
|
136
|
+
rulesync import --targets cursor # From .cursorrules
|
|
137
|
+
rulesync import --targets copilot # From .github/copilot-instructions.md
|
|
138
|
+
rulesync import --targets claudecode --features rules,mcp,commands,subagents
|
|
136
139
|
|
|
137
140
|
# And more tool supports
|
|
138
141
|
|
|
139
142
|
# Generate unified configurations with all features
|
|
140
|
-
|
|
143
|
+
rulesync generate --targets "*" --features "*"
|
|
141
144
|
```
|
|
142
145
|
|
|
143
146
|
## Supported Tools and Features
|
|
@@ -150,7 +153,7 @@ Rulesync supports both **generation** and **import** for All of the major AI cod
|
|
|
150
153
|
| AgentsSkills | | | | | | ✅ | |
|
|
151
154
|
| Claude Code | ✅ 🌏 | ✅ | ✅ 🌏 📦 | ✅ 🌏 | ✅ 🌏 | ✅ 🌏 | ✅ |
|
|
152
155
|
| Codex CLI | ✅ 🌏 | | 🌏 | 🌏 | 🎮 | ✅ 🌏 | |
|
|
153
|
-
| Gemini CLI | ✅ 🌏 | ✅ | ✅ 🌏 | ✅ 🌏 | 🎮 |
|
|
156
|
+
| Gemini CLI | ✅ 🌏 | ✅ | ✅ 🌏 | ✅ 🌏 | 🎮 | ✅ 🌏 | |
|
|
154
157
|
| GitHub Copilot | ✅ | | ✅ | ✅ | ✅ | ✅ | |
|
|
155
158
|
| Cursor | ✅ | ✅ | ✅ | ✅ 🌏 | ✅ 🌏 | ✅ 🌏 | ✅ |
|
|
156
159
|
| Factory Droid | ✅ 🌏 | | ✅ 🌏 | ✅ 🌏 | ✅ 🌏 | ✅ 🌏 | |
|
|
@@ -211,46 +214,46 @@ Rulesync is trusted by leading companies and recognized by the industry:
|
|
|
211
214
|
|
|
212
215
|
```bash
|
|
213
216
|
# Initialize new project (recommended: organized rules structure)
|
|
214
|
-
|
|
217
|
+
rulesync init
|
|
215
218
|
|
|
216
219
|
# Import existing configurations (to .rulesync/rules/ by default)
|
|
217
|
-
|
|
220
|
+
rulesync import --targets claudecode --features rules,ignore,mcp,commands,subagents,skills
|
|
218
221
|
|
|
219
222
|
# Fetch configurations from a Git repository
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
+
rulesync fetch owner/repo
|
|
224
|
+
rulesync fetch owner/repo@v1.0.0 --features rules,commands
|
|
225
|
+
rulesync fetch https://github.com/owner/repo --conflict skip
|
|
223
226
|
|
|
224
227
|
# Generate all features for all tools (new preferred syntax)
|
|
225
|
-
|
|
228
|
+
rulesync generate --targets "*" --features "*"
|
|
226
229
|
|
|
227
230
|
# Generate specific features for specific tools
|
|
228
|
-
|
|
229
|
-
|
|
231
|
+
rulesync generate --targets copilot,cursor,cline --features rules,mcp
|
|
232
|
+
rulesync generate --targets claudecode --features rules,subagents
|
|
230
233
|
|
|
231
234
|
# Generate only rules (no MCP, ignore files, commands, or subagents)
|
|
232
|
-
|
|
235
|
+
rulesync generate --targets "*" --features rules
|
|
233
236
|
|
|
234
237
|
# Generate simulated commands and subagents
|
|
235
|
-
|
|
238
|
+
rulesync generate --targets copilot,cursor,codexcli --features commands,subagents --simulate-commands --simulate-subagents
|
|
236
239
|
|
|
237
240
|
# Dry run: show changes without writing files
|
|
238
|
-
|
|
241
|
+
rulesync generate --dry-run --targets claudecode --features rules
|
|
239
242
|
|
|
240
243
|
# Check if files are up to date (for CI/CD pipelines)
|
|
241
|
-
|
|
244
|
+
rulesync generate --check --targets "*" --features "*"
|
|
242
245
|
|
|
243
246
|
# Add generated files to .gitignore
|
|
244
|
-
|
|
247
|
+
rulesync gitignore
|
|
245
248
|
|
|
246
249
|
# Update rulesync to the latest version (single-binary installs)
|
|
247
|
-
|
|
250
|
+
rulesync update
|
|
248
251
|
|
|
249
252
|
# Check for updates without installing
|
|
250
|
-
|
|
253
|
+
rulesync update --check
|
|
251
254
|
|
|
252
255
|
# Force update even if already at latest version
|
|
253
|
-
|
|
256
|
+
rulesync update --force
|
|
254
257
|
```
|
|
255
258
|
|
|
256
259
|
## Dry Run
|
|
@@ -262,7 +265,7 @@ Rulesync provides two dry run options for the `generate` command that allow you
|
|
|
262
265
|
Show what would be written or deleted without actually writing any files. Changes are displayed with a `[DRY RUN]` prefix.
|
|
263
266
|
|
|
264
267
|
```bash
|
|
265
|
-
|
|
268
|
+
rulesync generate --dry-run --targets claudecode --features rules
|
|
266
269
|
```
|
|
267
270
|
|
|
268
271
|
### `--check`
|
|
@@ -271,7 +274,7 @@ Same as `--dry-run`, but exits with code 1 if files are not up to date. This is
|
|
|
271
274
|
|
|
272
275
|
```bash
|
|
273
276
|
# In your CI pipeline
|
|
274
|
-
|
|
277
|
+
rulesync generate --check --targets "*" --features "*"
|
|
275
278
|
echo $? # 0 if up to date, 1 if changes needed
|
|
276
279
|
```
|
|
277
280
|
|
|
@@ -291,20 +294,20 @@ The `fetch` command allows you to fetch configuration files directly from a Git
|
|
|
291
294
|
|
|
292
295
|
```bash
|
|
293
296
|
# Full URL format
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
297
|
+
rulesync fetch https://github.com/owner/repo
|
|
298
|
+
rulesync fetch https://github.com/owner/repo/tree/branch
|
|
299
|
+
rulesync fetch https://github.com/owner/repo/tree/branch/path/to/subdir
|
|
300
|
+
rulesync fetch https://gitlab.com/owner/repo # GitLab (planned)
|
|
298
301
|
|
|
299
302
|
# Prefix format
|
|
300
|
-
|
|
301
|
-
|
|
303
|
+
rulesync fetch github:owner/repo
|
|
304
|
+
rulesync fetch gitlab:owner/repo # GitLab (planned)
|
|
302
305
|
|
|
303
306
|
# Shorthand format (defaults to GitHub)
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
307
|
+
rulesync fetch owner/repo
|
|
308
|
+
rulesync fetch owner/repo@ref # Specify branch/tag/commit
|
|
309
|
+
rulesync fetch owner/repo:path # Specify subdirectory
|
|
310
|
+
rulesync fetch owner/repo@ref:path # Both ref and path
|
|
308
311
|
```
|
|
309
312
|
|
|
310
313
|
### Options
|
|
@@ -323,27 +326,27 @@ npx rulesync fetch owner/repo@ref:path # Both ref and path
|
|
|
323
326
|
|
|
324
327
|
```bash
|
|
325
328
|
# Fetch skills from external repositories
|
|
326
|
-
|
|
327
|
-
|
|
329
|
+
rulesync fetch vercel-labs/agent-skills --features skills
|
|
330
|
+
rulesync fetch anthropics/skills --features skills
|
|
328
331
|
|
|
329
332
|
# Fetch all features from a public repository
|
|
330
|
-
|
|
333
|
+
rulesync fetch dyoshikawa/rulesync --path .rulesync
|
|
331
334
|
|
|
332
335
|
# Fetch only rules and commands from a specific tag
|
|
333
|
-
|
|
336
|
+
rulesync fetch owner/repo@v1.0.0 --features rules,commands
|
|
334
337
|
|
|
335
338
|
# Fetch from a private repository (uses GITHUB_TOKEN env var)
|
|
336
339
|
export GITHUB_TOKEN=ghp_xxxx
|
|
337
|
-
|
|
340
|
+
rulesync fetch owner/private-repo
|
|
338
341
|
|
|
339
342
|
# Or use GitHub CLI to get the token
|
|
340
|
-
GITHUB_TOKEN=$(gh auth token)
|
|
343
|
+
GITHUB_TOKEN=$(gh auth token) rulesync fetch owner/private-repo
|
|
341
344
|
|
|
342
345
|
# Preserve existing files (skip conflicts)
|
|
343
|
-
|
|
346
|
+
rulesync fetch owner/repo --conflict skip
|
|
344
347
|
|
|
345
348
|
# Fetch from a monorepo subdirectory
|
|
346
|
-
|
|
349
|
+
rulesync fetch owner/repo:packages/my-package
|
|
347
350
|
```
|
|
348
351
|
|
|
349
352
|
## Configuration
|
|
@@ -695,7 +698,7 @@ Currently, supports rules and commands generation for Claude Code. Import for gl
|
|
|
695
698
|
2. Initialize files for global files in the directory.
|
|
696
699
|
```bash
|
|
697
700
|
cd ~/.aiglobal
|
|
698
|
-
|
|
701
|
+
rulesync init
|
|
699
702
|
```
|
|
700
703
|
3. Edit `~/.aiglobal/rulesync.jsonc` to enable global mode.
|
|
701
704
|
```jsonc
|
|
@@ -718,7 +721,7 @@ Currently, supports rules and commands generation for Claude Code. Import for gl
|
|
|
718
721
|
5. Generate rules for global settings.
|
|
719
722
|
```bash
|
|
720
723
|
# Run in the `~/.aiglobal` directory
|
|
721
|
-
|
|
724
|
+
rulesync generate
|
|
722
725
|
```
|
|
723
726
|
|
|
724
727
|
> [!NOTE]
|
|
@@ -735,7 +738,7 @@ Simulated commands, subagents and skills allow you to generate simulated feature
|
|
|
735
738
|
1. Prepare `.rulesync/commands/*.md`, `.rulesync/subagents/*.md` and `.rulesync/skills/*/SKILL.md` for your purposes.
|
|
736
739
|
2. Generate simulated commands, subagents and skills for specific tools that are included in cursor, codexcli and etc.
|
|
737
740
|
```bash
|
|
738
|
-
|
|
741
|
+
rulesync generate \
|
|
739
742
|
--targets copilot,cursor,codexcli \
|
|
740
743
|
--features commands,subagents,skills \
|
|
741
744
|
--simulate-commands \
|
|
@@ -762,7 +765,7 @@ Rulesync supports compressing tokens consumed by MCP servers [d-kimuson/modular-
|
|
|
762
765
|
|
|
763
766
|
```bash
|
|
764
767
|
# Enable modular-mcp via CLI
|
|
765
|
-
|
|
768
|
+
rulesync generate --targets claudecode --features mcp --modular-mcp
|
|
766
769
|
|
|
767
770
|
# Or via configuration file
|
|
768
771
|
{
|
|
@@ -906,7 +909,7 @@ So, in this case, approximately 92% reduction in MCP tools consumption!
|
|
|
906
909
|
Rulesync provides official skills that you can install using the fetch command:
|
|
907
910
|
|
|
908
911
|
```bash
|
|
909
|
-
|
|
912
|
+
rulesync fetch dyoshikawa/rulesync --features skills
|
|
910
913
|
```
|
|
911
914
|
|
|
912
915
|
This will install the Rulesync documentation skill to your project.
|