@bonesofspring/ai-rules 0.1.2 → 0.1.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 +31 -0
- package/package.json +2 -1
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @bonesofspring/ai-rules
|
|
2
|
+
|
|
3
|
+
Presets for Cursor and Claude Code: rules, commands, plus for Claude `CLAUDE.md` and `skills` / `agents` / `hooks` when the preset includes them. Install from npm into a project so you don’t have to copy files out of the repo by hand.
|
|
4
|
+
|
|
5
|
+
Node 18+.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# from the project root
|
|
9
|
+
npx @bonesofspring/ai-rules init cursor --preset next
|
|
10
|
+
npx @bonesofspring/ai-rules init claude --preset next
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Global: `npm i -g @bonesofspring/ai-rules`, then `ai-rules ...`.
|
|
14
|
+
|
|
15
|
+
`init` merges into the current directory: dirs are created, matching files are **overwritten**. `--preset` and the subcommand can be in either order, e.g. `--preset=next init cursor`.
|
|
16
|
+
|
|
17
|
+
`clean cursor` / `clean claude` removes what this CLI installs: for Cursor, `.cursor/rules` and `.cursor/commands`; for Claude also `.claude/skills`, `agents`, `hooks`, and `CLAUDE.md` when those were present. Anything else under `.cursor` / `.claude` is left alone.
|
|
18
|
+
|
|
19
|
+
Where things go on `init`:
|
|
20
|
+
|
|
21
|
+
| | Cursor | Claude |
|
|
22
|
+
|---|--------|--------|
|
|
23
|
+
| rules | `.cursor/rules` | `.claude/rules` |
|
|
24
|
+
| commands | `.cursor/commands` | `.claude/commands` |
|
|
25
|
+
| other | — | root `CLAUDE.md` → `.claude/CLAUDE.md`; folders `skills`, `agents`, `hooks` → under `.claude/` with the same names |
|
|
26
|
+
|
|
27
|
+
The package currently ships the **`next`** preset (Next.js stack and whatever else is bundled there). Other preset names: see `presets/` in the [repo](https://github.com/bonesofspring/ai-rules). Name is a single path segment, no `/` or `..`.
|
|
28
|
+
|
|
29
|
+
Help: `ai-rules --help`.
|
|
30
|
+
|
|
31
|
+
MIT.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bonesofspring/ai-rules",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Presets of Cursor and Claude rules/commands for Revy Ross personal use",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Revy Ross",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"ai-rules": "./bin/cli.js"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
|
+
"README.md",
|
|
22
23
|
"bin",
|
|
23
24
|
"presets"
|
|
24
25
|
],
|