archnav

archnav is a skill for Claude Code, Codex from 1020911401/ArchNavMCPServer. It costs 49 tokens per session (1,294 once invoked), scanned A, original, MIT.

A code-navigation and review skill that maps symbols and dependencies in a repository, then points an agent to the relevant source files and lines. It also supports reviewing changes and selecting tests, but requires reading the actual source before editing.

In plain words
What is it for?
Use it to locate code, trace its impact, review a diff, inspect uncommitted work, choose relevant unit tests, or perform deeper repository analysis.
Why use it?
It helps agents understand unfamiliar code and avoid review mistakes caused by stale indexes, missing untracked files, or overly compressed reports.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to locate code, trace its impact, review a diff, inspect uncommitted work, choose relevant unit tests, or perform deeper repository analysis.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/1020911401/archnavmcpserver/archnav
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 1020911401/ArchNavMCPServer --skill archnav
Clone the repo
git clone --depth 1 https://github.com/1020911401/ArchNavMCPServer

Made for: Claude Code, Codex.

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 archnav

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/1020911401/archnavmcpserver/archnav"><img src="https://agentmods.dev/badge/skills/1020911401/archnavmcpserver/archnav.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,294 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 original No closer match found 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.00049 $0.01294
Opus 5.5 $0.00020 $0.00518
Sonnet 5.5 $0.00010 $0.00259
Haiku 4.5 $0.00005 $0.00129

Measured 5d ago against content hash 2a3f515251d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

archnav 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 5d 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.

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.

skill/archnav/SKILL.md · 63 lines

How it starts

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

ArchNav (playbook)

v1.6.0 — 拆成「薄技能 + MCP prompts/resources + references」:正文只留触发条件与三个必知坑;四套工作流进 MCP prompts,长文进 resources(同一批文件)。完整旧版手册保留在 references/playbook-full.md。 v1.5.0 — 新增 archnav version <dir>(目标仓版本:git HEAD/branch/tag/dirty、manifest 版本、索引建于哪个 commit)。 v1.4.0 — 自审流程与六类假阳性、降噪四项(自审 25 → brief 模式 1 条)。

ArchNav 是给 agent 用的代码导航 + 评审层:图谱只负责带路(文件/行号),改代码前必须 read 真源码。

When to Use

  • 在不熟悉的仓里定位符号、看分层 → locate / read / arch / whereami
  • 评审一个 diff、算爆炸半径 → changes / impact
  • 想知道这次改动该跑哪些单测 → scripts/test-select.mjs
  • 仓库级深查(流程/聚类/风险/多仓接口)→ scripts/deep.mjs
  • 「我看的是哪一版代码」→ archnav version <dir>(git HEAD/branch/tag/dirty + 清单版本 + 索引建于哪个 commit)

三个必须先知道的坑

  1. 未跟踪文件不进 diff:审未提交的改动前先 git add -N .,否则新建文件根本不在 git diff 里。
  2. 先 analyze 再审:索引过期会把新文件全报成「import 解析不到」(candidates tried=7)——拿旧索引的结论当证据等于审了个旧仓。
  3. --json 默认是压缩摘要(没有 message/evidence):逐条 triage 必须 --json --no-compact。
  4. 索引口径决定一切:analyze 现在会读仓根 .gitignore({gitignore:false} / --no-gitignore 可关), 但只认子集(去掉首尾 /、跳过 ! 否定行)。没写进 .gitignore 的构建产物(如 Laravel 的 storage/framework/views/、编译后的 Blade 缓存)仍会被索引——那些文件里的 > ''、foreach+->where( 会整片变成假阳。索引前先确认 ignore 字段是否覆盖了 vendor/构建目录;实测一个 Laravel 仓:不忽略 vendor 是 129 MB / 5m22s,忽略后 2.7 MB / 15s。
  5. 作用域调用($this-> / self:: / parent::)不再按裸方法名跨文件解析:解析不到会进 knowledgeGraph.unresolvedScopedCalls(上限 200 条)+ scopedCallStats。看到 parent:: 大量 unresolved 是正常的(框架父类不在索引里),不要当成缺陷;反过来,如果某个 $this->m() 解析到了 别的文件,那是 bug 而不是证据。

MCP 侧(本仓 src/mcp-server.js)

装了 MCP 的客户端(Hermes / Claude Code / Cursor)可以直接拉:

prompts(工作流) resources(长文)
archnav_review_diff 评审当前 diff archnav://skill 本页
archnav_self_review 审自己未提交的改动 archnav://skill/code-review 规则清单与真值
archnav_test_select 只跑相关单测 archnav://skill/self-review 假阳性/降噪清单
archnav_deep 仓库级深查 archnav://skill/comparison 三方跑分(证据,非依赖)
archnav://skill/kanban-review 看板逐项确认 + 豁免回流

Read the full file on GitHub · 63 lines

Files

What ships with it

10 files 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. 5d ago Changed · +9 lines 2a3f515251d7
  2. 7d ago First seen · 54 lines · 49 tokens per session scan A 735500ca868d

Subscribe to this mod's changes

archnav is a skill published in the GitHub repository 1020911401/ArchNavMCPServer (1 stars, last pushed 5d ago), licensed MIT. It adds 49 tokens to every session and 1,294 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-23.