graph-first

graph-first is a skill for Claude Code from neat-technologies/neat. It costs 14 tokens per session (5,282 once invoked), scanned C, a copy of claude-skill, Apache-2.0.

A way for an AI coding assistant to query NEAT’s live semantic graph, which maps a codebase’s structure, dependencies, and observed runtime behaviour. It is intended for architecture questions and asks the assistant to use the graph before searching text files.

In plain words
What is it for?
Use it to investigate failures, trace dependencies, estimate the impact of changing a component, and compare declared relationships with runtime observations.
Why use it?
It helps identify upstream causes, downstream impact, and differences between what code declares and what running software actually uses.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Part of the neat plugin — 1 skill shipped together

Good fit Use it to investigate failures, trace dependencies, estimate the impact of changing a component, and compare declared relationships with runtime observations.

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

Made for: Claude Code.

Or install neat, the plugin that ships this one along with the rest of its 1 skill.

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 graph-first

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/neat-technologies/neat/graph-first"><img src="https://agentmods.dev/badge/skills/neat-technologies/neat/graph-first.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,282 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 95% 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.00014 $0.05282
Opus 5.5 $0.00006 $0.02113
Sonnet 5.5 $0.00003 $0.01056
Haiku 4.5 $0.00001 $0.00528

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

Security

Grade C, and why

graph-first scanned grade C 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 14d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- NEAT graph-first directive. Paste this block into your agent's project instructions — CLAUDE.md, AGENTS.md, .cursorrules, or the equivalent. Agent-agnostic: it is plain guidance, no Claude Code features required. --
Origin

This is a copy

95% identical to claude-skill — 5 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.

plugin/skills/graph-first/SKILL.md · 200 lines

How it starts

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

NEAT — Claude Code skill

NEAT does the investigation and the reasoning for a coding agent, so the agent can spend its effort on the code. Agents are weak at investigating a system and reasoning about its behaviour; given the right context, they are strong at writing the change. The clearest example is a failing system: call investigate with the service or the symptom and NEAT returns one work order — where the failure is, the cause chain with provenance on each hop, what a fix reaches, the policies that govern the code, and where code and runtime disagree — so the agent starts at the fix instead of grepping for it. (get_incident_card composes the same work order when you already have the exact node id.)

NEAT answers from a live graph that fuses declarations from code, data schemas and infrastructure with runtime traffic, incidents and supported provider telemetry, at the finest grain the evidence permits. Every claim has provenance and confidence; an unseen path is not proof that it never runs.

What NEAT investigates for you

  • Why something is failing. investigate (a service, a symptom, or a node id) returns the work order; get_incident_card does the same from an exact node id; expand and relate verify its chain one hop at a time; get_root_cause and get_incident_history give the parts on their own.
  • What a change will break. get_blast_radius for everything downstream, and check_policies for the architectural rules that govern the code you're editing.
  • How the system works and what actually runs. ask in plain language; get_dependencies and get_observed_dependencies for a node you can name; semantic_search to find one by description.
  • Where code and production disagree. get_divergences.
  • What changed or went quiet. get_graph_diff and get_recent_stale_edges.
  • Which known vulnerabilities your code pulls in. get_reachable_cves ranks them by exposure, with the importing files to change; is_reachable answers for one package; scan_diff checks a change: what it introduced, removed and left in place.

Read the full file on GitHub · 200 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. 14d ago Changed · +8 lines 9c6741290f98
  2. 20d ago Changed · +7 lines 6cd79181b811
  3. 1mo ago Changed · +10 lines 5eeb56542499
  4. 1mo ago Changed · +7 lines d3677f800553
  5. 1mo ago Changed · +19 lines 144ec918e273
  6. 1mo ago Changed · +4 lines · -29 tokens per session scan B → C 3317d42b3e7f
  7. 2mo ago Changed · +15 lines 2ce7e393c295
  8. 3mo ago First seen · 130 lines · 43 tokens per session scan B a87aa6114830

Subscribe to this mod's changes

graph-first is a skill published in the GitHub repository neat-technologies/neat (33 stars, last pushed today), licensed Apache-2.0. It adds 14 tokens to every session and 5,282 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). It is 95% identical to claude-skill, differing in 5 lines, and is treated as a copy.

Related

graph-first compared with skills from other repositories

graph-first next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
graph-firstneat-technologies/neatSkill33todayApache-2.0C14Claude Code
observability-phoenixdavila7/claude-code-templatesSkill34ktodayMITA47Claude Code, Codex
trulens-instrumentationtruera/trulensSkill3.7k3d agoMITA25Claude Code, Codex
observabilityericrisco/rsc-harnessSkill6825d agoMITA70Claude Code, Codex
incident-investigationcaipe-io/ai-platform-engineeringSkill453todayApache-2.0A56Claude Code, Codex
otel-profilesollygarden/opentelemetry-agent-skillsSkill126yesterdayApache-2.0A128Claude Code
ase-code-lintrse/aseSkill78todayApache-2.0A30Claude Code