alekspetrov/navigator/nav-sync-claude
Claude Code and agent skill by alekspetrov/navigator
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Sync project CLAUDE.md to the installed Navigator version, preserving customizations. Use when user says "sync CLAUDE.md", "update CLAUDE.md", or when detecting outdated Navigator configuration.
Install
npx vskill@latest install alekspetrov/navigator/nav-sync-claudeSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as alekspetrov/navigator/nav-sync-claude.
Navigator CLAUDE.md Updater Skill
Update project's CLAUDE.md to latest Navigator version (v3.1) while preserving project-specific customizations.
When to Invoke
Invoke this skill when the user:
- Says "update my CLAUDE.md", "migrate CLAUDE.md to v3"
- Says "update Navigator configuration", "fix my CLAUDE.md"
- Mentions outdated commands like "/nav:start" and wants to upgrade
- Complains that Claude doesn't understand Navigator workflow
DO NOT invoke if:
- CLAUDE.md already references v3.1 and natural language commands
- User is editing CLAUDE.md for project-specific reasons (not Navigator updates)
- Working on plugin's root CLAUDE.md (not user projects)
Execution Steps
Step 1: Detect Current CLAUDE.md Version
Check if CLAUDE.md exists and detect version:
Use version_detector.py to analyze CLAUDE.md:
This script checks for:
- Version markers (e.g., "Navigator Version: 3.1.0")
- Slash command references (
/nav:start,/nav:doc, etc.) - Skills vs commands language
- Natural language examples
Outputs:
outdated- Has/nav:commands or v1/v2 markerscurrent- Already v3.1 with natural languageunknown- Can't determine (custom/non-Navigator file)
If `current`:
Exit successfully.
If `unknown`:
If user declines, exit. If accepts, continue.
Step 2: Backup Current CLAUDE.md
Always create backup before modifying:
Step 3: Extract Project-Specific Customizations
Use claude_updater.py to parse current CLAUDE.md:
This records the file's layout verbatim, with fenced code blocks kept whole (a # comment inside a bash block is not a header):
- title: the first
#header as written; project_name is the part before
- Claude Code Configuration when the title has that shape, else the whole title
- preamble: the text between the title and the first
##header - sections: every
##section in order,{"header", "body"}, bodies byte for byte
(### subsections, fences and --- rules included)
- navigator_section: the section Navigator owns —
## Navigatorwhen present, else
the section whose body carries the **Navigator runtime** paragraph; empty when none
- has_context: whether a
## Contextsection exists - source_dir: the directory CLAUDE.md was read from (the project root for
the liveness guard)
The flat lists stay for readers of the JSON and for hand-written customizations without a sections layout: description, core_principle and tech_stack (from Context), code_standards and forbidden_actions (every bullet, template defaults included; a default the project removed stays removed), pm_tool, and custom_sections with custom_section_anchors (every ## header the lists do not render, with the standard section each one precedes).
Step 4: Generate Updated CLAUDE.md
Apply latest template with extracted customizations:
Generate stamps **Last Updated** with today's date and **Navigator Version** with the installed plugin version (--stamp-date / --stamp-version override them). A dry run writes anywhere: --output /tmp/CLAUDE.preview.md. The hook-liveness guard checks the project root, never the output directory: --project-root DIR, else the source_dir that extract recorded, else the current directory. It exits 3 and leaves CLAUDE.md untouched when .agent/.nav-runtime-state.json is absent or older than 7 days.
Template Source Priority:
- GitHub (version-matched): Fetches from
https://raw.githubusercontent.com/qf-studio/navigator/v{version}/templates/CLAUDE.md
- Matches installed plugin version (e.g., v4.3.0)
- Always up-to-date with release
- Works with pre-releases
- Bundled (fallback): Uses
templates/CLAUDE.mdfrom installed plugin
- Offline fallback
- Guaranteed availability
What this does:
- Loads template (GitHub or bundled)
- Replaces placeholders with extracted data
- Preserves custom sections
- Updates Navigator workflow to natural language
- Removes slash command references
- Adds skills explanation
Step 5: Show Diff and Confirm
Display changes for user review:
Step 6: Verify and Commit
Show summary of changes:
Step 7: Update .nav-config.json
If config exists, migrate to latest version with new sections:
What this does:
- Detects current config version
- Adds missing sections based on version:
- v5.4.0+:
simplificationconfig - v5.5.0+:
auto_updateconfig - v5.6.0+:
task_modeconfig
- Updates version marker to current
Example output:
Dry run (preview changes without applying):
Predefined Functions
functions/version_detector.py
Purpose: Detect CLAUDE.md version (outdated, current, unknown)
Usage:
Output: Prints one of: outdated, current, unknown
Exit codes:
- 0: Success (version detected)
- 1: File not found
- 2: Parse error
Detection logic:
- Check for version marker:
Navigator Version: X.X.X - Check for slash commands:
/nav:start,/jitd:, etc. - Check for natural language examples:
"Start my Navigator session" - Check for skills section
Heuristics:
- Has
/nav:→ outdated - Version < 3.0 → outdated
- Version >= 3.0 + natural language → current
- No version + no Navigator markers → unknown
functions/claude_updater.py
Purpose: Extract customizations and generate updated CLAUDE.md
Usage:
Extract mode outputs JSON:
Generate mode with a sections layout (what extract records): the project's own title, preamble and sections come back in their own order, bodies byte for byte, and only Navigator-owned text changes. A round trip on an already-current file changes only the two stamp lines.
- Loads template
- Writes the title as recorded (a title without
- Claude Code Configurationstays) - Writes the preamble and every section in source order
## 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
- Adds a template section the project lacks after the template section that precedes
it: ## Context only as the two stamp lines when the file has no stamps anywhere (no description or tech-stack placeholders), ## Navigator only when no section carries the runtime paragraph, the standards and forbidden sections with the template's defaults (## Code Standards counts as the standards section)
- Stamps
**Last Updated**(today) and**Navigator Version**(installed plugin)
wherever the file keeps them
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/nav-sync-claude/SKILL.md
Popularity
- Repository stars
- 192
- Repository forks
- 9
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alekspetrov/navigator/nav-sync-claude)