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 CHANGED
@@ -4,6 +4,12 @@
4
4
  [![npm version](https://img.shields.io/npm/v/rulesync)](https://www.npmjs.com/package/rulesync)
5
5
  [![npm downloads](https://img.shields.io/npm/dt/rulesync)](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
- ### New Project
22
-
23
- 1. **Initialize your project:**
24
- ```bash
25
- # Recommended: Use new organized structure
26
- npx rulesync init
27
-
28
- # Legacy: Use backward-compatible structure
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 configurations (to recommended structure)
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 amazonqcli # From .amazonq/rules/*.md
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
- # Import to legacy structure (for existing projects)
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 **19 AI development tools**:
82
-
83
- ### Core AI Development Tools
84
- - **GitHub Copilot** - Custom Instructions (`.github/copilot-instructions.md` + `.github/instructions/*.instructions.md`)
85
- - **Cursor** - Project Rules (`.cursor/rules/*.mdc` + `.cursorrules` + custom commands)
86
- - **Cline** - Rules & Instructions (`.clinerules/*.md` + `.cline/instructions.md`)
87
- - **Claude Code** - Memory System (`CLAUDE.md` + `.claude/memories/*.md` + **Custom Slash Commands** `.claude/commands/*.md` + **🤖 Subagents** `.claude/subagents/*.md`)
88
- - **Amazon Q Developer CLI** - Rules & Context (`.amazonq/rules/*.md` + `.amazonq/mcp.json` + built-in commands + context management)
89
- - **Windsurf** - AI Code Editor (`.windsurf/rules/*.md` + `.windsurf/mcp.json` + `.codeiumignore`)
90
-
91
- ### Specialized AI Tools
92
- - **OpenCode** - Terminal AI (`AGENTS.md` + `opencode.json` + **🔐 Permission-Based Security**)
93
- - **OpenAI Codex CLI** - Advanced CLI (`AGENTS.md` + **File Splitting with XML** + `.codex/memories/*.md` + `.codex/mcp-config.json`)
94
- - **AugmentCode** - IDE Integration (`.augment/rules/*.md` + current & legacy formats)
95
- - **Roo Code** - VSCode Extension (`.roo/rules/*.md` + `.roo/instructions.md`)
96
- - **Gemini CLI** - Google AI (`GEMINI.md` + `.gemini/memories/*.md` + **Custom Slash Commands** `.gemini/commands/*.md`)
97
- - **Qwen Code** - Qwen Models (`QWEN.md` + `.qwen/memories/*.md` + **Git-Aware Filtering** + `.qwen/settings.json`)
98
-
99
- ### IDE-Integrated AI
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 Vendor Lock-in**
127
- Avoid vendor lock-in completely. If you decide to stop using rulesync, you can continue using the generated rule files as-is.
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 cursor
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
- ## Documentation
189
-
190
- ### 📖 Core Documentation
191
- - **[Commands Reference](./docs/commands.md)** - Complete CLI commands guide
192
- - **[Configuration Guide](./docs/configuration.md)** - Rule files and configuration options
193
-
194
- ### 🛠️ Tool Integrations
195
- - **[Claude Code](./docs/tools/claudecode.md)** - Memory system and custom commands
196
- - **[Cursor](./docs/tools/cursor.md)** - Rule types and MDC format
197
- - **[GitHub Copilot](./docs/tools/copilot.md)** - Custom instructions
198
- - **[Cline](./docs/tools/cline.md)** - Plain Markdown rules
199
- - **[Amazon Q Developer CLI](./docs/tools/amazonqcli.md)** - Rules, MCP, and built-in commands
200
- - **[OpenCode](./docs/tools/opencode.md)** - Permission-based configuration and MCP integration
201
- - **[OpenAI Codex CLI](./docs/tools/codexcli.md)** - Advanced file splitting with XML document references and memory files
202
- - **[Gemini CLI](./docs/tools/geminicli.md)** - Memory and commands
203
- - **[Windsurf](./docs/tools/windsurf.md)** - Rules and Cascade AI
204
- - **[JetBrains Junie](./docs/tools/junie.md)** - Guidelines and IDE integration
205
- - **[Kiro IDE](./docs/tools/kiro.md)** - Custom steering documents
206
- - **[AugmentCode](./docs/tools/augmentcode.md)** - Rule types and configuration
207
- - **[Roo Code](./docs/tools/roo.md)** - Instructions and rules
208
- - **[Qwen Code](./docs/tools/qwencode.md)** - Memory system with git-aware filtering
209
- - **[AgentsMd](./docs/tools/agentsmd.md)** - Standardized AI agent instructions
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).