Plugin Operations & Release
Installing, updating, and (for maintainers) releasing the Navigator plugin.
Install & update
Navigator is a Claude Code plugin installed from its marketplace:
# Add the marketplace (first time only)
/plugin marketplace add qf-studio/navigator
# Install
/plugin install navigator
# Update to the latest stable version
claude plugin update navigatorAfter any update, a restart is required. Claude Code caches skill paths at session start, so the running session keeps using the old version until you close and reopen Claude Code. Without a restart you may see stale skills or “skill not found” errors — this is Claude Code behavior, not a Navigator fault.
Session start tells you when a newer release exists and shows this command (auto-update); it never installs it for you.
nav-upgrade
Automates the upgrade flow instead of running the steps by hand. Triggers: “update Navigator”, “upgrade Navigator plugin”, “get latest Navigator version”.
It walks a multi-step workflow:
- Detect version — compares the installed version against latest stable (and pre-release, if any).
- Update plugin — runs
/plugin update navigator; falls back to uninstall/reinstall if the update fails. - Verify — confirms the new version and that new skills are registered.
- Sync CLAUDE.md — delegates to nav-sync-claude (below).
- Migrate legacy hooks — removes duplicate hook entries from
.claude/settings.json(hooks now ship in the plugin manifest). - Feature discovery — surfaces what is new in the version.
It also handles rollback (“rollback Navigator to vX.Y.Z”).
nav-sync-claude
Updates a project’s CLAUDE.md to match the installed Navigator version while
preserving your customizations. Triggers: “sync CLAUDE.md”, “update CLAUDE.md”.
The flow is non-destructive and idempotent:
- Backs up to
CLAUDE.md.backupbefore any change. - Records the file’s own layout verbatim (v8.4.12): the title as written (a
title without
- Claude Code Configurationis the project name), the preamble, and every##section in source order with###subsections and fenced code blocks kept whole (a# commentinside a bash block is not a header). The flat lists stay in the JSON (v8.4.3): description and core principle with their line breaks, tech stack, the full code-standards and forbidden-actions lists, PM tool. - Regenerates with the installed template (fetched from GitHub, with a bundled
fallback when offline): the project’s sections come back in their own order,
bodies byte for byte, and only Navigator-owned text changes.
## Navigatortakes the template’s body; a section that carries the**Navigator runtime**paragraph under another name (## Navigator Integration) keeps its header and every other line and gets the template’s paragraph in place. A template section the project lacks is added; a file without## Contextgets the two stamp lines only, never description or tech-stack placeholders. The**Last Updated**and**Navigator Version**lines are stamped with today’s date and the installed plugin version wherever the file keeps them. - Shows a diff for review, then provides commit instructions.
- Migrates
.agent/.nav-config.json, adding any missing config sections.
Only the Navigator-managed section (the runtime paragraph) and the two stamp
lines change on a sync. A round trip on an already-current CLAUDE.md changes
only the stamp lines.
The regeneration step refuses (exit 3, CLAUDE.md untouched) when there is no
proof that the hook runtime is live in the project: .agent/.nav-runtime-state.json
absent or older than 7 days. Start a session in the project, then re-run. The
guard checks the project root, never the output path, so a dry run can write
elsewhere:
python3 "$PLUGIN_DIR/skills/nav-sync-claude/functions/claude_updater.py" generate \
--customizations /tmp/nav-customizations.json \
--template "$PLUGIN_DIR/templates/CLAUDE.md" \
--output /tmp/CLAUDE.preview.md # --project-root DIR to name the project explicitly--stamp-version and --stamp-date override the two stamps.
nav-release (maintainers)
Validates plugin integrity and publishes a release to the marketplace. This is for Navigator maintainers, not end users. Triggers: “release plugin”, “publish navigator”, “create release”.
Validation runs before anything is published:
python3 functions/release_validator.py --check-all # skills exist + committed, versions consistent
python3 functions/release_validator.py --verify-hooks # smoke-test manifest hook commands
python3 functions/release_validator.py --verify-dispatcher # every hook routes through nav_dispatch.py; every registry op committed + importable (v8.3.5)
python3 functions/release_validator.py --verify-conformance # harness-conformance results exist for the Claude Code version (v8.3.5)Release publication is owned by CI: the skill pushes commits and a vX.Y.Z
tag, and .github/workflows/release.yml creates the GitHub release from the
tag. Running gh release create locally is explicitly avoided — it races the
workflow. After tagging, the run is watched to completion and the tag is
verified to contain all referenced skills.