Plugin Local Testing
One command to swap EVERYTHING to local — plugin (skills, MCP, CLAUDE.md) AND npm package (CLI, templates, migrations, runtime). No manual steps.
Steps
Ask the user for the consumer project path if not known. Default:
../bryllen-projectsGet the repo root:
REPO_ROOT="$(git -C /Users/noamalmosnino/Documents/GitHub/bryllen rev-parse --show-toplevel)"Swap the plugin marketplace to local:
CLAUDECODE= claude plugin marketplace remove bryllen 2>/dev/null || true CLAUDECODE= claude plugin marketplace add "$REPO_ROOT/plugin" CLAUDECODE= claude plugin install bryllen@bryllen 2>/dev/null || CLAUDECODE= claude plugin update bryllen@bryllenSwap the npm package in the consumer project to local:
cd <consumer-project-path> # Create package.json if it doesn't exist yet (prevents /bryllen-new from installing from GitHub) [ ! -f package.json ] && npm init -y rm -rf node_modules/bryllen npm install "$REPO_ROOT"This must use the absolute path and rm the old copy first — npm caches aggressively. Creating
package.jsonfirst is critical: without it,/bryllen-newwill install bryllen from GitHub (hardcoded in the skill), overwriting the local swap.Verify both swaps worked:
grep "claudeMd" <consumer-project-path>/node_modules/bryllen/src/cli/templates.js grep "bryllen" <consumer-project-path>/package.jsonThe package.json should show
"bryllen": "file:../bryllen"(notgithub:).Tell the user:
- Both plugin and npm package are now local
- Restart Claude Code in the consumer folder to pick up changes
- Test with
/bryllen-new <project-name> - Use
/plugin-releasewhen done to switch back to GitHub
Converted and distributed by TomeVault — claim your Tome and manage your conversions.