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.

Revisions

  1. eastlondoner revised this gist Jun 8, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

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

    Copy the `package.json` above to the new directory
    Copy the `package.json` belowto the new directory

    Run `npm install`

  2. eastlondoner created this gist Jun 8, 2025.
    19 changes: 19 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    # vibe-rules example

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

    Copy the `package.json` above to 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.
    14 changes: 14 additions & 0 deletions package.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    {
    "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"
    }
    }