@bonesofspring/ai-rules
v0.2.1
Published
Presets of Cursor and Claude rules/commands for Revy Ross personal use
Maintainers
Readme
@bonesofspring/ai-rules
Presets for Cursor and Claude Code: rules, commands, plus optional agents, hooks, skills, and team artifacts when the preset includes them. For Claude: CLAUDE.md. Install from npm into a project so you don’t have to copy files out of the repo by hand.
Node 18+.
Contributing and Cursor↔Claude sync checklist: CONTRIBUTING.md.
# from the project root
npx @bonesofspring/ai-rules init cursor --preset next
npx @bonesofspring/ai-rules init claude --preset next
npx @bonesofspring/ai-rules clean cursorGlobal: npm i -g @bonesofspring/ai-rules, then ai-rules ....
init merges into the current working directory (or --cwd <dir>): dirs are created, matching files are overwritten. --preset defaults to next. Supported forms:
npx @bonesofspring/ai-rules init cursor --preset next
npx @bonesofspring/ai-rules init cursor next
npx @bonesofspring/ai-rules init cursor # preset next by default
npx @bonesofspring/ai-rules cursor init --preset nextIf .cursor does not appear, check the command output for errors and confirm you run init from the target project root (where the app lives), not from node_modules. Success ends with: Done. .cursor installed at <absolute-path>.
clean cursor / clean claude removes what this CLI installs: rules, commands, optional agents, hooks, skills, team, Cursor hooks.json / BUGBOT.md, and Claude CLAUDE.md when present. Other files under .cursor/ or .claude/ are left intact.
Where things go on init:
| | Cursor | Claude |
|---|--------|--------|
| rules | .cursor/rules | .claude/rules |
| commands | .cursor/commands | .claude/commands |
| agents | .cursor/agents | .claude/agents |
| hooks | .cursor/hooks, .cursor/hooks.json | .claude/hooks |
| skills | .cursor/skills | .claude/skills |
| team artifacts template | .cursor/team | .claude/team |
| other | root BUGBOT.md → .cursor/BUGBOT.md | root CLAUDE.md → .claude/CLAUDE.md |
The package currently ships the next preset (Next.js stack and whatever else is bundled there). Other preset names: see presets/ in the repo. Name is a single path segment, no / or ...
Help: ai-rules --help.
MIT.
