Skip to content

Instantly share code, notes, and snippets.

@eastlondoner
Created June 8, 2025 20:44
Show Gist options
  • Save eastlondoner/f24519a23d0073f3c3b5a82eeca72074 to your computer and use it in GitHub Desktop.
Save eastlondoner/f24519a23d0073f3c3b5a82eeca72074 to your computer and use it in GitHub Desktop.
vibe-rules example

vibe-rules example

Make a new directory e.g. mkdir vibe-rules-example

Copy the package.json belowto the new directory

Run npm install

Observe that the redwood sdk and TanStack react-router cursor rules have been installed for you in vibe-rules-example/.cursor/rules

Change "prepare": "vibe-rules install cursor", to "prepare": "vibe-rules install claude-code",

Run npm install again

Now you have a CLAUDE.md file

Rules are shipped as part of the npm packages that you've imported from the authors of your dependencies. vibe-rules is as versioned, secure and safe as the npm packages you depend on.

When you update your dependencies the rules files will automatically be updated to be in sync with the latest rules shipped with that dependency as part of their npm package.

{
"name": "end-user-package",
"scripts": {
"prepare": "vibe-rules install cursor",
"vibe-rules": "vibe-rules"
},
"devDependencies": {
"vibe-rules": "0.2.57"
},
"dependencies": {
"@tanstack/react-router": "latest",
"rwsdk": "latest"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment