Set up local development linking for Claude Cabinet. Detects whether you're in the CC source repo or a consuming project and runs the appropriate npm link command. Use when: "link", "local dev", "use local CC", "/cc-link".
Connect a consuming project to a local checkout of Claude Cabinet so template changes are immediately available without publishing to npm.
Before doing anything, determine where you are:
CC source repo (package.json has name: "create-claude-cabinet"):
npm link to register the package globally/cc-link
to connect them to this checkout."Any other project (anything that isn't the CC source repo):
npm link create-claude-cabinet to point to the local CC checkoutnpx create-claude-cabinet --help resolves
to the local version.ccrc.json exists): "Linked to local
CC. Run /cc-upgrade to pull template changes into your installed
skills."npx create-claude-cabinet to install."The CC source repo must have been linked first (npm link from the CC
directory). If a consuming project tries to link and the global link
doesn't exist, npm will error. In that case, tell the user to run /cc-link
in their CC checkout first.
npm link (in source) registers a global symlink to the packagenpm link create-claude-cabinet (in consumer) creates a local symlink
to the globally registered packagenpx create-claude-cabinet and /cc-upgrade both
resolve to the local checkout