nav-diagnose

nav-diagnose is a skill for Claude Code from alekspetrov/navigator. It costs 43 tokens per session (2,320 once invoked), scanned A, a copy of nav-diagnose, MIT.

A quality-checking tool for coding-agent conversations that looks for signs of declining output quality and re-focuses the instructions. It can react to repeated corrections, confusion about context, or a direct report that something is wrong.

In plain words
What is it for?
Use it when the agent needs repeated corrections, loses track of context, or produces work that seems inconsistent with the request.
Why use it?
An agent may repeat mistakes or misunderstand the task after a long exchange. This helps identify that pattern and bring the work back to the intended direction.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the navigator plugin — 35 skills, 6 agents shipped together

Good fit Use it when the agent needs repeated corrections, loses track of context, or produces work that seems inconsistent with the request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alekspetrov/navigator/nav-diagnose
Install

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.

Any agent
npx skills add alekspetrov/navigator --skill nav-diagnose
Clone the repo
git clone --depth 1 https://github.com/alekspetrov/navigator

Made for: Claude Code.

Or install navigator, the plugin that ships this one along with the rest of its 35 skills, 6 agents.

Wrote 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.

agentmods badge for nav-diagnose

README.md
[![agentmods](https://agentmods.dev/badge/skills/alekspetrov/navigator/nav-diagnose/github.svg)](https://agentmods.dev/skills/alekspetrov/navigator/nav-diagnose)
Your own site
<a href="https://agentmods.dev/skills/alekspetrov/navigator/nav-diagnose"><img src="https://agentmods.dev/badge/skills/alekspetrov/navigator/nav-diagnose/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.

agentmods 80×15 button for nav-diagnose

Your own site · 80×15
<a href="https://agentmods.dev/skills/alekspetrov/navigator/nav-diagnose"><img src="https://agentmods.dev/badge/skills/alekspetrov/navigator/nav-diagnose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,320 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.02320
Opus 5.5 $0.00017 $0.00928
Sonnet 5.5 $0.00009 $0.00464
Haiku 4.5 $0.00004 $0.00232

Measured 3mo ago against content hash 4573d31256db, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nav-diagnose scanned grade A with 0 findings 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 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (functions/quality_detector.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to nav-diagnose — 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.

skills/nav-diagnose/SKILL.md · 395 lines

How it starts

The opening of the file, as written. The whole thing — 395 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Detect when human-AI collaboration quality drops and prompt re-anchoring to restore effective communication.

Why This Exists (Theory of Mind)

Based on Riedl & Weidmann 2025 research on Human-AI Synergy:

  • Theory of Mind varies dynamically within users (moment-to-moment)
  • Quality drops occur when ToM alignment degrades
  • Early detection and re-anchoring restores collaboration effectiveness
  • Both user ToM (understanding Claude) and Claude's model of user can drift

This skill detects when collaboration is degrading and prompts corrective action.

When to Invoke

Auto-invoke when:

  • 2+ corrections on the same topic detected
  • User says "something seems off", "you're not getting this"
  • User says "wrong again", "still not right"
  • Context usage exceeds 75% and quality signals degrade
  • User expresses frustration ("ugh", "sigh", explicit frustration)
  • Loop mode stagnation detected (3+ same-state iterations)

DO NOT invoke if:

  • Single correction (normal collaboration)
  • User is providing new requirements (not correcting)
  • Fresh session (insufficient data to diagnose)
  • User explicitly says "it's fine" or "close enough"

Quality Drop Indicators

1. Repeated Corrections (High Severity)

Trigger: Same correction given 2+ times
Signal: "No, I said users plural, not user" (2nd time)
Issue: Not incorporating user feedback

2. Hallucination Signals (High Severity)

Trigger: References to non-existent files, functions, or packages
Signal: "That file doesn't exist", "There's no such function"
Issue: Generating from incorrect mental model

3. Context Confusion (Medium Severity)

Trigger: Mixing details from unrelated tasks
Signal: "That's from the other project", "Wrong feature"
Issue: Context window pollution or misattribution

4. Unaddressed Feedback (Medium Severity)

Trigger: User correction not reflected in next output
Signal: Generates same pattern after being told not to
Issue: Not properly updating internal model

Read the full file on GitHub · 395 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 3mo ago First seen · 395 lines · 43 tokens per session scan A 4573d31256db

Subscribe to this mod's changes

nav-diagnose is a skill published in the GitHub repository alekspetrov/navigator (232 stars, last pushed 2mo ago), licensed MIT. It adds 43 tokens to every session and 2,320 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to nav-diagnose, differing in 0 lines, and is treated as a copy.

Related

nav-diagnose compared with skills from other repositories

nav-diagnose next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nav-diagnosealekspetrov/navigatorSkill2322mo agoMITA43Claude Code
nav-compactqf-studio/navigatorSkill35814d agoMITB38Claude Code
nav-loopqf-studio/navigatorSkill35814d agoMITA43Claude Code
product-designqf-studio/navigatorSkill35814d agoMITA59Claude Code
social-media-postqf-studio/navigatorSkill35814d agoMITA46Claude Code
nav-skill-creatorqf-studio/navigatorSkill35814d agoMITA53Claude Code
nav-sopqf-studio/navigatorSkill35814d agoMITA40Claude Code