nw-code-analysis-port

nw-code-analysis-port is a skill for Claude Code from nWave-ai/nWave. It costs 82 tokens per session (2,067 once invoked), scanned A, original, MIT.

A standard way to ask a command-line code analysis tool for facts about a codebase. It covers callers, references, unused wiring, file contents, and the likely scope of a change, returning the results as structured data.

In plain words
What is it for?
Use it to find who calls a function, where code is read or defined, what a file contains, whether something is connected, and which code a change may affect.
Why use it?
It replaces ad-hoc text searches with repeatable queries for structural questions. This reduces missed references and unsupported guesses when changing or reviewing code.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to find who calls a function, where code is read or defined, what a file contains, whether something is connected, and which code a change may affect.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nwave-ai/nwave/nw-code-analysis-port
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 nWave-ai/nWave --skill nw-code-analysis-port
Clone the repo
git clone --depth 1 https://github.com/nWave-ai/nWave

Made for: Claude Code.

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 nw-code-analysis-port

README.md
[![agentmods](https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-code-analysis-port/github.svg)](https://agentmods.dev/skills/nwave-ai/nwave/nw-code-analysis-port)
Your own site
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-code-analysis-port"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-code-analysis-port/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 nw-code-analysis-port

Your own site · 80×15
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-code-analysis-port"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-code-analysis-port.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,067 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.00082 $0.02067
Opus 5.5 $0.00033 $0.00827
Sonnet 5.5 $0.00016 $0.00413
Haiku 4.5 $0.00008 $0.00207

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

Security

Grade A, and why

nw-code-analysis-port 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 27d 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.

nWave/skills/nw-code-analysis-port/SKILL.md · 95 lines

How it starts

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

nw-code-analysis-port (KNOWLEDGE)

Kind: KNOWLEDGE (reference / discipline). Consulted whenever you need a fact about code. No forced sequence — load it, obey the resolution rule.

TRIGGER

Any time you design, write, analyze, or review code or tests and need a code fact — who calls X, where Y is defined or read, the call graph, the blast-radius of a change, or what a file contains — resolve it through the vendor-neutral code-fact CLI, not ad-hoc grep.

Public CLI — available now

The five-capability public stable core is wrapped in the production CLI:

code-fact query.callers-of SYMBOL --root ROOT
code-fact query.reads-of SYMBOL --root ROOT
code-fact query.never-wired SYMBOL --root ROOT
code-fact query.atoms-in-file --root FILE_OR_ROOT
code-fact query.adr-section ANCHOR --root ROOT

The CLI returns JSON: { provider, confidence, payload, index, coverage, trace }. Agents consume that envelope and degrade LOUD; they never probe/install/select an analyzer themselves. code-fact refresh --root ROOT is the one explicit way to regenerate the index (see "Index snapshot, coverage and refresh").

The resolution rule (one order, every time)

The CLI delegates to the best available bundled adapter. You report the answer tagged with which adapter answered.

The chain is walked top-down, highest declared precision first; the first provider covering the capability answers. The query's trace names the answering provider and scope. Do not duplicate a provider ranking in prose or infer precision from a familiar module name. What is stable, and all a consumer needs:

  • AST gives approx confidence (structural, per-language) on any parseable target.
  • grep / lexical search is the last resort, never the default. Reach for it only when AST cannot answer.

DEGRADE-LOUD (never silent)

  • Always state which adapter answered and at what confidence: approx | binding-resolved | noisy.
  • If the answer came from TextSearch (grep), announce the degradation AND its limits. Example: "AST unavailable → grep fallback (noisy): may include false positives, miss dynamic/indirect references, and conflate same-named symbols."
  • Never silently let grep stand in for the port. A noisy answer presented as fact is the failure mode this skill exists to prevent.
  • The CLI's trace array names which provider answered and its scan-scope honesty (complete | filtered | unfiltered) — that per-query record is the loud announcement a gate reads.

Read the full file on GitHub · 95 lines

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. 27d ago First seen · 95 lines · 82 tokens per session scan A 462dd738905f

Subscribe to this mod's changes

nw-code-analysis-port is a skill published in the GitHub repository nWave-ai/nWave (636 stars, last pushed 11d ago), licensed MIT. It adds 82 tokens to every session and 2,067 once invoked, about $0.0003 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-11-03.

Related

nw-code-analysis-port compared with skills from other repositories

nw-code-analysis-port next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nw-code-analysis-portnWave-ai/nWaveSkill63611d agoMITA82Claude Code
ase-code-lintrse/aseSkill78todayApache-2.0A30Claude Code
Pair Programmingruvnet/rufloSkill83ktodayMITA61Claude Code
addressing-review-feedbackmakifbaysal/tasktrooperSkill123todayApache-2.0A37Claude Code, Codex
debug-flowDVNghiem/FlowDeckSkill4415d agoMITA34Claude Code, Codex
blast-radius-previewDVNghiem/FlowDeckSkill4415d agoMITA27Claude Code, Codex
hk-rcadeepklarity/harness-kitSkill10820d agoMITA115Claude Code