update — refresh installed harness copies after a plugin bump
Thin wrapper: all file work is install.mjs with "refresh": true. No new script.
Process
- Detect the install mode from disk.
.claude/harness/present → embedded; absent → plugin mode (only.claude/hooks/goal-gate.mjsdrifts). - Plugin mode: run
node "<plugin>/skills/install/install.mjs" '{ "projectDir": "<abs project root>", "refresh": true }' - Embedded mode: rebuild the embed config from what is embedded. Each directory under
.claude/harness/skills/*is a skill name; resolve its source dir in the installed plugin cache the same wayinstalldoes, then run
If a source cannot be resolved, stop and name it — never guess a path.node "<plugin>/skills/install/install.mjs" '{ "projectDir": "<abs project root>", "refresh": true, "embed": { "runtime": true, "skills": [ { "name": "<name>", "src": "<abs source dir>" } ] } }' - Report from the JSON: each plugin-owned file
refreshedorunchanged.git diffthe plugin-owned copies for the user to review and commit. User-owned files (harness-gate.json,conventions/**, the CLAUDE.md block,settings.json) are never touched.
Output Template
Mode: plugin | embedded
Refreshed: <files>
Unchanged: <files>
Unresolved sources: <none | names>
Next: review git diff, commit
What Claude Does / What You Do
| Claude | You |
|---|---|
Detects the mode, rebuilds the embed config, runs install.mjs with "refresh": true, reports |
Bumps the plugin first; reviews and commits the diff |
| Stops and names any embed source it cannot resolve | Supplies the missing source path |
Related Skills
install— first-time scaffolding (install.mjs)remove— uninstalling project-local harness governance