/navigator:nav-markerfrom navigator
Creates context save points that preserve conversation state before breaks, risky changes, or compaction. Captures summaries, file changes, decisions, and user intent for seamless resumption.
Ships in navigator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create context markers - save points that preserve conversation state so you can resume work later without re-explaining everything.
Invoke this skill when the user:
DO NOT invoke if:
Verify .agent/.context-markers/ directory exists:
mkdir -p .agent/.context-markers
If user provided name:
If no name provided:
marker-{YYYY-MM-DD}-{HHmm}marker-2025-10-16-1430Ask user for optional note:
Creating marker: [name]
Add a note? (optional - helps remember context later)
Example: "OAuth working, need to add tests"
Note:
IMPORTANT: You MUST actively capture ToM sections (User Intent, Corrections, Belief State).
Create marker document with this structure:
# Context Marker: [name]
**Created**: [YYYY-MM-DD HH:MM]
**Note**: [user's note or "No note provided"]
---
## Conversation Summary
[Summarize last 10-15 messages:
- What user was working on
- Key decisions made
- Problems solved
- Current progress state
]
## Documentation Loaded
[List docs that were Read during session:
- Navigator: ✅ .agent/DEVELOPMENT-README.md
- Task: TASK-XX-feature.md
- System: project-architecture.md
- SOPs: [if any]
]
## Files Modified
[List files with Write/Edit calls:
- src/auth/login.ts (implemented OAuth)
- src/routes/auth.ts (added endpoints)
- tests/auth.test.ts (created tests)
]
## Current Focus
[What user is working on right now:
- Feature: Authentication with OAuth
- Phase: Integration complete, testing pending
- Blockers: [if any]
]
## Technical Decisions
[Key architectural choices:
- Using passport.js over next-auth (better control)
- JWT tokens in httpOnly cookies (XSS protection)
- Redis for session storage (scalability)
]
## Next Steps
[What to do after restore:
1. Finish writing tests for OAuth flow
2. Add error handling for failed logins
3. Document setup in README
]
## User Intent & Goals (ToM) [CAPTURE ACTIVELY]
[Theory of Mind section - captures user's mental state for better restoration]
**⚠️ CRITICAL: Analyze conversation to extract these - do not leave empty!**
**Primary goal this session**:
[What the user was ultimately trying to accomplish - not just the surface task]
- Review conversation for "I want to...", "The goal is...", "We need to..."
- Infer from task context if not explicitly stated
**Stated preferences**:
[Any preferences expressed during session:
- Communication style (concise/detailed)
- Code patterns preferred
- Confirmation behavior wanted
]
- Look for "I prefer...", "Don't do...", "Always use..."
**Corrections made**:
[Important corrections that should persist:
- "Should be /users not /user (plural convention)"
- "Prefer functional components over class"
- "Always use TypeScript strict mode"
]
- Look for "No, I meant...", "Actually...", "Not X, use Y"
- These MUST be captured to avoid repeating mistakes
## Belief State [CAPTURE ACTIVELY]
[Captures mutual understanding state for accurate restoration]
**⚠️ CRITICAL: Infer from conversation - do not leave empty!**
**What user knows**:
[User's demonstrated knowledge level:
- Familiar with Express, new to Passport
- Knows about JWT, unfamiliar with refresh tokens
- Senior developer, skip basics
]
**Assumptions I made**:
[Key assumptions during session:
- Using Redis for sessions (confirmed by user)
- Auth endpoints follow /api/auth/* pattern
- Testing with Jest + React Testing Library
]
**Uncertainty areas**:
[Questions that weren't fully resolved:
- Not sure if user wants social logins beyond Google
- Rate limiting requirements unclear
- Error message format preferences unknown
]
## Route State (if the active task document has a `## Route` section)
[Capture the route state so the next session can show what changed - skip when the command
exits with an error (no task document with a route)]
**Run**:
```bash
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$(cat "${NAVIGATOR_CONFIG_HOME:-${XDG_CONFIG_HOME:-$HOME/.config}/navigator}/plugin-root" 2>/dev/null)}"
[ -d "$PLUGIN_DIR/skills" ] || PLUGIN_DIR="$HOME/.claude/plugins/marketplaces/navigator-marketplace"
python3 "$PLUGIN_DIR/skills/nav-route/functions/route_render.py" --state
Paste the JSON it prints, unchanged, in a json code block:
[{"task": "TASK-12", "date": "2026-11-15", "steps": {"1": "Merged 2026-11-14", "2": "Next"}}]
The next session runs route_render.py --since <this marker>; the report marks each step
whose state changed (nav-route skill).
[Capture loop mode state for resumption - skip if not in loop mode]
Iteration: [N]/[MAX] (e.g., 3/5) Phase: [INIT|RESEARCH|IMPL|VERIFY|COMPLETE] State Hash: [6-char hash for continuity] Completion Indicators:
EXIT_SIGNAL: [true/false] Stagnation Count: [N]/[THRESHOLD]
[Capture graph state for restoration - skip if no knowledge graph]
Check if graph exists:
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$(cat "${NAVIGATOR_CONFIG_HOME:-${XDG_CONFIG_HOME:-$HOME/.config}/navigator}/plugin-root" 2>/dev/null)}"
[ -d "$PLUGIN_DIR/skills" ] || PLUGIN_DIR="$HOME/.claude/plugins/marketplaces/navigator-marketplace"
if [ -f ".agent/knowledge/graph.json" ]; then
python3 "$PLUGIN_DIR/skills/nav-graph/functions/graph_manager.py" --action stats --graph-path .agent/knowledge/graph.json
fi
Memories surfaced this session: [List memories that were queried or created:
Concepts active: [Concepts relevant to current work:
Graph queries made: [Knowledge graph queries from this session:
This allows restoration to re-surface relevant memories when resuming.
To restore this marker: ```bash Read .agent/.context-markers/[filename] ```
Or use: /nav:markers and select this marker
### Step 4: Save Marker File
Write marker to file:
Write( file_path: ".agent/.context-markers/[timestamp]_[name].md", content: [generated marker content] )
Filename format: `{YYYY-MM-DD-HHmm}_{name}.md`
Example: `2025-10-16-1430_before-big-refactor.md`
### Step 4.5: Verify Marker Creation
After creating marker, verify it was written successfully:
```bash
# Verify file exists and is non-empty
if [ -f ".agent/.context-markers/[filename]" ] && [ -s ".agent/.context-markers/[filename]" ]; then
# Calculate checksum for verification
checksum=$(md5 -q ".agent/.context-markers/[filename]" 2>/dev/null || md5sum ".agent/.context-markers/[filename]" | cut -d' ' -f1)
# Log to central marker log
echo "[$(date -u +"%Y-%m-%dT%H:%M:%SZ")] ✅ Marker created: [filename] (checksum: $checksum)" >> .agent/.marker-log
echo "✅ Marker verified successfully"
else
echo "❌ Marker creation failed - file missing or empty"
exit 1
fi
Marker verification ensures:
Show success message with verification details:
✅ Context marker created!
Marker: [name]
File: .agent/.context-markers/[filename]
Size: [X] KB (~[Y] tokens)
Checksum: [md5-hash]
Verified: ✅
This marker captures:
- Last [N] messages of conversation
- Files you were working on
- Technical decisions made
- Next steps to continue
To restore later:
- Start new session
- Say "load marker [name]"
- Or use /nav:markers to list all markers
Logged to: .agent/.marker-log
create_marker.py: Generates marker content from conversation analysis
User: "Save my progress, taking lunch"
→ Creates marker: "lunch-break-2025-10-16"
→ Captures current state
→ User resumes after lunch: "Load my lunch marker"
User: "Mark this before I refactor routing"
→ Creates marker: "before-routing-refactor"
→ If refactor fails, restore marker
→ If refactor succeeds, delete marker
User: "End of day checkpoint"
→ Creates marker: "eod-2025-10-16"
→ Note: "OAuth done, tests tomorrow"
→ Next morning: "Load yesterday's marker"
Automatic (via nav-compact skill):
→ Creates marker: "before-compact-2025-10-16-1500"
→ Compact clears conversation
→ Marker preserves knowledge
→ Next session: Auto-offers to restore
Good marker names:
lunch-break (clear when/why)before-api-refactor (indicates purpose)feature-complete (marks milestone)eod-friday (specific timing)Bad marker names:
temp (not descriptive)marker1 (meaningless)test (confusing)When to create markers:
Marker directory missing:
Creating .agent/.context-markers/ directory...
✅ Ready to save markers
Duplicate marker name:
⚠️ Marker "[name]" already exists
Options:
1. Overwrite (replace existing)
2. Append timestamp (create "[name]-v2")
3. Choose different name
Your choice [1-3]:
Insufficient context:
⚠️ Very little context to save (< 5 messages)
Markers work best when there's significant progress to preserve.
Continue anyway? [y/N]:
Marker creation is successful when:
.agent/.context-markers//nav:markers cleanThis skill provides same functionality as /nav:marker command but with natural language invocation.
What SKILL.md sets; muted values are Claude Code's defaults
33 skills in this plugin
/backend-endpointCreate REST/GraphQL API endpoint with validation, error handling, and tests. Auto-invoke when user says "add endpoint", "create API", "new route", or "add route"./backend-testGenerate backend tests (unit, integration, mocks) for existing code. Auto-invoke when user says "write test for", "add test", "test this", or "create test"./database-migrationCreate database migration with schema changes and rollback. Auto-invoke when user says "create migration", "add table", "modify schema", or "change database"./frontend-componentCreate React/Vue component with TypeScript, tests, and styles. Auto-invoke when user says "create component", "add component", "new component", or "build component"./frontend-testGenerate frontend component tests (React Testing Library, Vue Test Utils, snapshot) for existing components. Auto-invoke when user says "test this component", "write component test", or "add component test"./nav-briefRender a one-screen intent brief (Goal/Scope/Approach/Limits/Verify/Won't-do/Contradiction) before implementing ambiguous task-shaped prompts, triggered by the prompt_brief op (UserPromptSubmit via hooks/nav_dispatch.py). Confirms scope with max 2 open questions before touching files; detects brief drift mid-task.npx claudepluginhub qf-studio/navigator --plugin navigatorOther plugins' skills for the same job