rulesync 0.69.0 → 0.71.0

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.
Files changed (4) hide show
  1. package/README.md +152 -13
  2. package/dist/index.cjs +2256 -1258
  3. package/dist/index.js +2262 -1264
  4. package/package.json +6 -4
package/README.md CHANGED
@@ -60,10 +60,10 @@ rulesync supports both **generation** and **import** for All of the major AI cod
60
60
  |------------------------|:-----:|:------:|:-----:|:--------:|:---------:|
61
61
  | AGENTS.md | ✅ | | | | |
62
62
  | Claude Code | ✅ | | ✅ | ✅ | ✅ |
63
- | Codex CLI | ✅ | ✅ | | | |
63
+ | Codex CLI | ✅ | ✅ | | 🎮 | 🎮 |
64
64
  | Gemini CLI | ✅ | ✅ | | ✅ | |
65
- | GitHub Copilot | ✅ | | ✅ | | |
66
- | Cursor | ✅ | ✅ | ✅ | | |
65
+ | GitHub Copilot | ✅ | | ✅ | 🎮 | 🎮 |
66
+ | Cursor | ✅ | ✅ | ✅ | 🎮 | 🎮 |
67
67
  | OpenCode | ✅ | | | | |
68
68
  | Cline | ✅ | ✅ | ✅ | | |
69
69
  | Roo Code | ✅ | ✅ | ✅ | ✅ | |
@@ -74,6 +74,9 @@ rulesync supports both **generation** and **import** for All of the major AI cod
74
74
  | AugmentCode | ✅ | ✅ | | | |
75
75
  | Windsurf | ✅ | ✅ | | | |
76
76
 
77
+
78
+ 🎮: Simulated Commands/Subagents (Experimental Feature)
79
+
77
80
  ## Why rulesync?
78
81
 
79
82
  ### 🔧 **Tool Flexibility**
@@ -83,15 +86,7 @@ Team members can freely choose their preferred AI coding tools. Whether it's Git
83
86
  AI development tools evolve rapidly with new tools emerging frequently. With rulesync, switching between tools doesn't require redefining your rules from scratch.
84
87
 
85
88
  ### 🎯 **Multi-Tool Workflow**
86
- Enable hybrid development workflows combining multiple AI tools:
87
- - **GitHub Copilot** for code completion and inline suggestions
88
- - **Cursor** for intelligent refactoring and project-wide changes
89
- - **Claude Code** for architecture design and complex problem solving
90
- - **Cline** for autonomous debugging and file system operations
91
- - **Amazon Q Developer CLI** for comprehensive chat-based development with built-in commands and MCP integration
92
- - **OpenCode** for secure terminal-based development with granular permission controls
93
- - **Windsurf** for comprehensive AI-assisted editing with Cascade AI
94
- - **Gemini CLI** for Google AI integration and custom workflows
89
+ Enable hybrid development workflows combining multiple AI tools.
95
90
 
96
91
  ### 🔓 **No Lock-in**
97
92
  Avoid lock-in completely. If you decide to stop using rulesync, you can continue using the generated rule files as-is.
@@ -99,6 +94,9 @@ Avoid lock-in completely. If you decide to stop using rulesync, you can continue
99
94
  ### 🎯 **Consistency Across Tools**
100
95
  Apply consistent rules across all AI tools, improving code quality and development experience for the entire team.
101
96
 
97
+ ### 🎮 **Simulated Commands and Subagents**
98
+ Simulated commands and subagents are experimental features that allow you to generate simulated commands and subagents for copilot, cursor and codexcli. This is useful for shortening your prompts.
99
+
102
100
  ## Quick Commands
103
101
 
104
102
  ```bash
@@ -118,6 +116,9 @@ npx rulesync generate --targets claudecode --features rules,subagents
118
116
  # Generate only rules (no MCP, ignore files, commands, or subagents)
119
117
  npx rulesync generate --targets "*" --features rules
120
118
 
119
+ # Generate simulated commands and subagents with experimental features
120
+ npx rulesync generate --targets copilot,cursor,codexcli --features commands,subagents --experimental-simulate-commands --experimental-simulate-subagents
121
+
121
122
  # Add generated files to .gitignore
122
123
  npx rulesync gitignore
123
124
  ```
@@ -126,6 +127,8 @@ npx rulesync gitignore
126
127
 
127
128
  You can configure rulesync by creating a `rulesync.jsonc` file in the root of your project.
128
129
 
130
+ Example:
131
+
129
132
  ```jsonc
130
133
  // rulesync.jsonc
131
134
  {
@@ -142,10 +145,146 @@ You can configure rulesync by creating a `rulesync.jsonc` file in the root of yo
142
145
  "delete": true,
143
146
 
144
147
  // Verbose output
145
- "verbose": false
148
+ "verbose": false,
149
+
150
+ // Experimental features
151
+ "experimentalSimulateCommands": false,
152
+ "experimentalSimulateSubagents": false
146
153
  }
147
154
  ```
148
155
 
156
+ ## Each File Format
157
+
158
+ ### `rulesync/rules/*.md`
159
+
160
+ Example:
161
+
162
+ ```md
163
+ ---
164
+ root: true # true that is less than or equal to one file for overview such as AGENTS.md, false for details such as .agents/memories/*.md
165
+ targets: ["*"] # * = all, or specific tools
166
+ description: "rulesync project overview and development guidelines for unified AI rules management CLI tool"
167
+ globs: ["**/*"] # file patterns to match (e.g., ["*.md", "*.txt"])
168
+ cursor: # for cursor-specific rules
169
+ alwaysApply: true
170
+ description: "rulesync project overview and development guidelines for unified AI rules management CLI tool"
171
+ globs: ["*"]
172
+ ---
173
+
174
+ # rulesync Project Overview
175
+
176
+ This is rulesync, a Node.js CLI tool that automatically generates configuration files for various AI development tools from unified AI rule files. The project enables teams to maintain consistent AI coding assistant rules across multiple tools.
177
+
178
+ ...
179
+ ```
180
+
181
+ ### `rulesync/commands/*.md`
182
+
183
+ Example:
184
+
185
+ ```md
186
+ ---
187
+ description: 'Review a pull request' # command description
188
+ targets: ["*"] # * = all, or specific tools
189
+ ---
190
+
191
+ target_pr = $ARGUMENTS
192
+
193
+ If target_pr is not provided, use the PR of the current branch.
194
+
195
+ Execute the following in parallel:
196
+
197
+ ...
198
+ ```
199
+
200
+ ### `rulesync/subagents/*.md`
201
+
202
+ Example:
203
+
204
+ ```md
205
+ ---
206
+ name: planner # subagent name
207
+ targets: ["*"] # * = all, or specific tools
208
+ description: >- # subagent description
209
+ This is the general-purpose planner. The user asks the agent to plan to
210
+ suggest a specification, implement a new feature, refactor the codebase, or
211
+ fix a bug. This agent can be called by the user explicitly only.
212
+ claudecode: # for claudecode-specific rules
213
+ model: opus # opus, sonnet, haiku or inherit
214
+ ---
215
+
216
+ You are the planner for any tasks.
217
+
218
+ Based on the user's instruction, create a plan while analyzing the related files. Then, report the plan in detail. You can output files to @tmp/ if needed.
219
+
220
+ Attention, again, you are just the planner, so though you can read any files and run any commands for analysis, please don't write any code.
221
+ ```
222
+
223
+ ### `.rulesync/.mcp.json`
224
+
225
+ Example:
226
+
227
+ ```json
228
+ {
229
+ "mcpServers": {
230
+ "serena": {
231
+ "type": "stdio",
232
+ "command": "uvx",
233
+ "args": [
234
+ "--from",
235
+ "git+https://github.com/oraios/serena",
236
+ "serena",
237
+ "start-mcp-server",
238
+ "--context",
239
+ "ide-assistant",
240
+ "--enable-web-dashboard",
241
+ "false",
242
+ "--project",
243
+ "."
244
+ ],
245
+ "env": {}
246
+ },
247
+ "context7": {
248
+ "type": "stdio",
249
+ "command": "npx",
250
+ "args": [
251
+ "-y",
252
+ "@upstash/context7-mcp"
253
+ ],
254
+ "env": {}
255
+ }
256
+ }
257
+ }
258
+ ```
259
+
260
+ ### `.rulesyncignore`
261
+
262
+ Example:
263
+
264
+ ```ignore
265
+ tmp/
266
+ credentials/
267
+ ```
268
+
269
+ ## Simulate Commands and Subagents
270
+
271
+ Simulated commands and subagents are experimental features that allow you to generate simulated commands and subagents for copilot, cursor and codexcli. This is useful for shortening your prompts.
272
+
273
+ 1. Prepare `.rulesync/commands/*.md` and `.rulesync/subagents/*.md` for your purposes.
274
+ 2. Generate simulated commands and subagents for specific tools that are included in copilot, cursor and codexcli.
275
+ ```bash
276
+ npx rulesync generate --targets copilot,cursor,codexcli --features commands,subagents --experimental-simulate-commands --experimental-simulate-subagents
277
+ ```
278
+ 3. Use simulated commands and subagents in your prompts.
279
+ - Prompt examples:
280
+ ```txt
281
+ # Execute simulated commands. By the way, `s/` stands for `simulate/`.
282
+ s/your-command
283
+
284
+ # Execute simulated subagents
285
+ Call your-subagent to achieve something.
286
+ ```
287
+
149
288
  ## License
150
289
 
151
290
  MIT License