Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add alekspetrov/navigator --skill nav-compactgit clone --depth 1 https://github.com/alekspetrov/navigatorWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/alekspetrov/navigator/nav-compact)<a href="https://agentmods.dev/skills/alekspetrov/navigator/nav-compact"><img src="https://agentmods.dev/badge/skills/alekspetrov/navigator/nav-compact/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/alekspetrov/navigator/nav-compact"><img src="https://agentmods.dev/badge/skills/alekspetrov/navigator/nav-compact.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00038 | $0.01973 |
| Opus 5.5 | $0.00015 | $0.00789 |
| Sonnet 5.5 | $0.00008 | $0.00395 |
| Haiku 4.5 | $0.00004 | $0.00197 |
Grade B, and why
nav-compact scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
HAS_HOOK=$(grep -l "nav_dispatch" .claude/settings.json .claude/settings.local.json 2>/dev/null | head -1) This is a copy
100% identical to nav-compact — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 315 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Navigator Compact Skill
Clear your conversation context while preserving all knowledge in a context marker. Like git commit before switching branches - save your state, then start fresh.
When to Invoke
Invoke this skill when the user:
- Says "clear context", "start fresh", "reset conversation"
- Says "I'm done with this task", "moving to next feature"
- Mentions "approaching token limit", "context getting full"
- Says "compact", "clean up context"
- After completing isolated sub-task
DO NOT invoke if:
- User is in middle of implementation
- Context is needed for next immediate step
- Less than 20 messages in conversation (not much to gain)
Execution Steps
Step 0: Detect PreCompact Hook (Fast Path) [v6.10.0+]
Before doing anything else, check whether the project has the PreCompact hook installed.
HAS_HOOK=$(grep -l "nav_dispatch" .claude/settings.json .claude/settings.local.json 2>/dev/null | head -1)
If the hook is present:
→ Fast path activated. The PreCompact hook will write the marker automatically when the user runs /compact (or when Claude Code auto-compacts). Skip Steps 2–5 (marker creation + .active writing) — the hook owns those. Just print:
╔══════════════════════════════════════════════════════╗
║ 🗜️ Navigator Compact (hook-managed) ║
╚══════════════════════════════════════════════════════╝
✅ PreCompact hook is installed — Navigator will write the
marker automatically when you run /compact.
Auto-compact is also covered: when Claude Code compacts
silently near the context limit, the hook still fires and
writes a marker tagged with `-auto-` in the filename.
Just run: /compact
The PostCompact hook will append Claude Code's official
summary to the marker once compact finishes. On your next
session, "Start my Navigator session" picks up the marker
via .active and offers restore.
That's it. Don't create a duplicate marker — the hook handles it deterministically.
If the hook is absent (legacy project, manually disabled, or pre-v6.10 install):
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago Changed 0731e2cc29f5
- 3mo ago First seen · 315 lines · 38 tokens per session scan B 2c874dcf971c
nav-compact is a skill published in the GitHub repository alekspetrov/navigator (232 stars, last pushed 2mo ago), licensed MIT. It adds 38 tokens to every session and 1,973 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). It is 100% identical to nav-compact, differing in 0 lines, and is treated as a copy.
nav-compact compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| nav-compactalekspetrov/navigator | Skill | 232 | 2mo ago | MIT | B | 38 | Claude Code |
| nav-compactqf-studio/navigator | Skill | 358 | 14d ago | MIT | B | 38 | Claude Code |
| nav-loopqf-studio/navigator | Skill | 358 | 14d ago | MIT | A | 43 | Claude Code |
| product-designqf-studio/navigator | Skill | 358 | 14d ago | MIT | A | 59 | Claude Code |
| social-media-postqf-studio/navigator | Skill | 358 | 14d ago | MIT | A | 46 | Claude Code |
| nav-skill-creatorqf-studio/navigator | Skill | 358 | 14d ago | MIT | A | 53 | Claude Code |
| nav-sopqf-studio/navigator | Skill | 358 | 14d ago | MIT | A | 40 | Claude Code |