cursor-kit-cli 1.0.3
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 +162 -0
- package/dist/cli.cjs +709 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.cts +2 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +686 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.cjs +227 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +40 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.js +159 -0
- package/dist/index.js.map +1 -0
- package/package.json +67 -0
- package/templates/commands/debug.md +52 -0
- package/templates/commands/explain.md +33 -0
- package/templates/commands/fix.md +143 -0
- package/templates/commands/implementation.md +40 -0
- package/templates/commands/refactor.md +80 -0
- package/templates/commands/review.md +49 -0
- package/templates/commands/test.md +57 -0
- package/templates/rules/coding-style.mdc +11 -0
- package/templates/rules/frontend-design-skills.mdc +44 -0
- package/templates/rules/git.mdc +53 -0
- package/templates/rules/performance.mdc +54 -0
- package/templates/rules/react.mdc +58 -0
- package/templates/rules/security.mdc +50 -0
- package/templates/rules/testing.mdc +54 -0
- package/templates/rules/typescript.mdc +36 -0
package/README.md
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
<h1 align="center">✦ Cursor Kit ✦</h1>
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="https://img.shields.io/npm/v/cursor-kit-cli?style=flat-square&color=00DC82" alt="npm version" />
|
|
5
|
+
<img src="https://img.shields.io/npm/dm/cursor-kit-cli?style=flat-square&color=36E4DA" alt="npm downloads" />
|
|
6
|
+
<img src="https://img.shields.io/github/license/duongductrong/cursor-kit?style=flat-square&color=0047E1" alt="license" />
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<b>Supercharge your Cursor IDE with rules & commands</b><br/>
|
|
11
|
+
<sub>A CLI toolkit to manage, share, and sync Cursor IDE configurations</sub>
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="./thumbnail.png" alt="Cursor Kit" width="768" />
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
## 🚀 Quick Start
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
# Install globally
|
|
22
|
+
npm install -g cursor-kit-cli
|
|
23
|
+
|
|
24
|
+
# Or use directly with npx
|
|
25
|
+
npx cursor-kit-cli init
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## ✨ Features
|
|
29
|
+
|
|
30
|
+
- **📜 Commands** - Reusable prompt templates for common tasks
|
|
31
|
+
- **📋 Rules** - Project-specific AI behavior guidelines
|
|
32
|
+
- **🔄 Sync** - Keep configurations updated from the community
|
|
33
|
+
- **🎨 Beautiful CLI** - Delightful terminal experience
|
|
34
|
+
|
|
35
|
+
## 📦 Commands
|
|
36
|
+
|
|
37
|
+
### `init`
|
|
38
|
+
|
|
39
|
+
Initialize `.cursor/commands` and `.cursor/rules` in your project with curated templates.
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
cursor-kit init # Initialize both commands and rules
|
|
43
|
+
cursor-kit init -c # Only initialize commands
|
|
44
|
+
cursor-kit init -r # Only initialize rules
|
|
45
|
+
cursor-kit init -f # Force overwrite existing files
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### `add`
|
|
49
|
+
|
|
50
|
+
Interactively create a new command or rule with a starter template.
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
cursor-kit add # Interactive mode
|
|
54
|
+
cursor-kit add -t command # Add a command
|
|
55
|
+
cursor-kit add -t rule # Add a rule
|
|
56
|
+
cursor-kit add -t command -n my-command # Quick create
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### `pull`
|
|
60
|
+
|
|
61
|
+
Fetch the latest updates from the cursor-kit repository.
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
cursor-kit pull # Pull both commands and rules
|
|
65
|
+
cursor-kit pull -c # Only pull commands
|
|
66
|
+
cursor-kit pull -r # Only pull rules
|
|
67
|
+
cursor-kit pull -f # Force overwrite without confirmation
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### `list`
|
|
71
|
+
|
|
72
|
+
Display all available commands and rules in your project.
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
cursor-kit list # List everything
|
|
76
|
+
cursor-kit list -c # Only list commands
|
|
77
|
+
cursor-kit list -r # Only list rules
|
|
78
|
+
cursor-kit list -v # Verbose mode with file paths
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### `remove`
|
|
82
|
+
|
|
83
|
+
Remove a command or rule from your project.
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
cursor-kit remove # Interactive mode
|
|
87
|
+
cursor-kit remove -t command -n my-command # Quick remove
|
|
88
|
+
cursor-kit remove -f # Skip confirmation
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## 📁 Directory Structure
|
|
92
|
+
|
|
93
|
+
After running `cursor-kit init`, your project will have:
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
your-project/
|
|
97
|
+
└── .cursor/
|
|
98
|
+
├── commands/ # Prompt templates
|
|
99
|
+
│ ├── implementation.md
|
|
100
|
+
│ ├── refactor.md
|
|
101
|
+
│ ├── review.md
|
|
102
|
+
│ ├── debug.md
|
|
103
|
+
│ ├── explain.md
|
|
104
|
+
│ └── test.md
|
|
105
|
+
└── rules/ # AI behavior rules
|
|
106
|
+
├── typescript.mdc
|
|
107
|
+
├── react.mdc
|
|
108
|
+
├── testing.mdc
|
|
109
|
+
├── git.mdc
|
|
110
|
+
├── security.mdc
|
|
111
|
+
└── performance.mdc
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## 🎯 Included Templates
|
|
115
|
+
|
|
116
|
+
### Commands
|
|
117
|
+
| Command | Description |
|
|
118
|
+
|---------|-------------|
|
|
119
|
+
| `implementation` | Convert feature ideas into actionable plans |
|
|
120
|
+
| `refactor` | Improve code quality without changing behavior |
|
|
121
|
+
| `review` | Comprehensive code review checklist |
|
|
122
|
+
| `debug` | Systematic bug investigation |
|
|
123
|
+
| `explain` | Clear technical explanations |
|
|
124
|
+
| `test` | Generate comprehensive test suites |
|
|
125
|
+
|
|
126
|
+
### Rules
|
|
127
|
+
| Rule | Description |
|
|
128
|
+
|------|-------------|
|
|
129
|
+
| `typescript` | TypeScript best practices |
|
|
130
|
+
| `react` | React component patterns |
|
|
131
|
+
| `testing` | Testing standards |
|
|
132
|
+
| `git` | Commit and branching conventions |
|
|
133
|
+
| `security` | Security guidelines |
|
|
134
|
+
| `performance` | Performance optimization |
|
|
135
|
+
|
|
136
|
+
## 🛠️ Development
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
# Clone the repo
|
|
140
|
+
git clone https://github.com/duongductrong/cursor-kit.git
|
|
141
|
+
cd cursor-kit
|
|
142
|
+
|
|
143
|
+
# Install dependencies
|
|
144
|
+
npm install
|
|
145
|
+
|
|
146
|
+
# Build
|
|
147
|
+
npm run build
|
|
148
|
+
|
|
149
|
+
# Run locally
|
|
150
|
+
node dist/cli.mjs
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## 📄 License
|
|
154
|
+
|
|
155
|
+
MIT © [duongductrong](https://github.com/duongductrong)
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
<p align="center">
|
|
160
|
+
Made with ♥ for the Cursor community
|
|
161
|
+
</p>
|
|
162
|
+
|