| name | dev-test |
| description | Install dev version of obsidian-brain into the plugin cache for local testing, or restore the original. Note: on a directory-source marketplace install the skills already load the checkout (#278), so install is only needed for github-source installs and the cache-asserting test scripts. Use when: (1) /dev-test install to test unreleased changes, (2) /dev-test restore to put back the original, (3) /dev-test to check current status. |
| metadata | {"version":"1.0.0"} |
Dev Test — Install/Restore Dev Plugin for Testing
Swaps the installed plugin cache with the current repo working copy for local testing. After install, start a new Claude Code session to pick up the changes.
If this repo is registered as a directory-source marketplace (source.source == "directory" in ~/.claude/plugins/known_marketplaces.json, which is how a local checkout is normally installed), /dev-test install no longer changes which hooks the skills load: since #278 every skill resolves the registered checkout first and only falls back to the plugin cache. Your working copy is already what runs — edit and re-run, no install step. /dev-test install still matters for a github-source install (where the cache is what resolves) and for the manual test scripts under scripts/dev-test/ that deliberately assert on the cache's contents.
Tools needed: Bash
Procedure
Step 1 — Parse argument
Check the argument passed to /dev-test:
install → go to Step 2
restore → go to Step 3
- No argument or
status → go to Step 4
Step 2 — Install dev version
Run:
cd "$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
./scripts/test-dev-skill.sh install
Report the output. Then tell the user:
Dev version installed. Start a new Claude Code session to pick up the changes. When done testing, run /dev-test restore.
Stop here.
Step 3 — Restore original
Run:
cd "$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
./scripts/test-dev-skill.sh restore
Report the output. Then tell the user:
Original version restored. Start a new session to pick up the restored version.
Stop here.
Step 4 — Show status
Run:
cd "$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
./scripts/test-dev-skill.sh status
Report the output.