nav-compact
SolidClear conversation context while preserving knowledge via context marker. Use when user says "clear context", "start fresh", "done with this task", or when approaching token limits.
AI & Automation 232 stars
12 forks Updated today
Install
Quality Score: 82/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# 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.
```bash
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 /c...
Details
- Author
- alekspetrov
- Repository
- alekspetrov/navigator
- Created
- 11 months ago
- Last Updated
- today
- Language
- Python
- License
- None
Integrates with
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
compact
Flush important session context to daily log (manual memory flush). Does NOT invoke native /compact. Triggers on /compact, /agent:compact, /flush, "guarda memoria", "flush".
62 Updated today
crisandrews AI & Automation Listed
strategic-compact
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
3 Updated 1 weeks ago
uzysjung AI & Automation Listed
strategic-compact
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
1 Updated yesterday
jjackkun