graph

graph is a skill for Claude Code from opentrace/opentrace. It costs 195 tokens per session (772 once invoked), scanned A, original, Apache-2.0.

A workflow for building or refreshing a knowledge graph of a folder or code repository, including grouped areas, notable connections, and exportable reports.

In plain words
What is it for?
Use it to index code, find clusters and central components, ask questions, trace paths, or export the results as Markdown, GraphML, or Obsidian notes.
Why use it?
It makes relationships in a codebase easier to explore than reading files one at a time.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the opentrace-oss plugin — 2 skills, 12 commands, 6 agents, 3 hooks, 1 MCP server shipped together

Good fit Use it to index code, find clusters and central components, ask questions, trace paths, or export the results as Markdown, GraphML, or Obsidian notes.

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

Made for: Claude Code.

Or install opentrace-oss, the plugin that ships this one along with the rest of its 2 skills, 12 commands, 6 agents, 3 hooks, 1 MCP server.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/opentrace/opentrace/graph"><img src="https://agentmods.dev/badge/skills/opentrace/opentrace/graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 195 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 772 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00195 $0.00772
Opus 5.5 $0.00078 $0.00309
Sonnet 5.5 $0.00039 $0.00154
Haiku 4.5 $0.00019 $0.00077

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

Security

Grade A, and why

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

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.

plugins/claude-code/skills/graph/SKILL.md · 66 lines

What it actually says

The user wants to build, refresh, or explore the OpenTrace knowledge graph. This skill is the on-ramp — point at the right slash command and run it.

Request

$ARGUMENTS

Routing

Match the user's intent to one of the commands below. When in doubt, default to /build for build / refresh and /interrogate for question-answering.

Intent Command
Build the graph from scratch on a folder or GitHub URL /build [path or url]
Index only (no clustering / analysis) /index [path]
Re-run clustering /cluster
Surface god nodes, bridges, suggested questions /analyze
Quick exploration of a named component /explore <name>
Read-only Q&A over the graph /interrogate "<question>"
Shortest path between two graph nodes /path <A> <B>
Obsidian vault export /export-obsidian
Browsable markdown report /export-report
GraphML for Gephi / yEd /export-graphml
Counts of indexed nodes by type /graph-status

If the user asked a question the graph could answer directly (e.g. "what's connected to AuthMiddleware?") and .opentrace/index.db exists, run /interrogate yourself rather than asking the user which command to use.

When the graph does not exist yet

If .opentrace/index.db is missing and the user is asking a graph-flavoured question, offer to run /build first, then answer against the freshly built graph.

Conventions

  • Only CALLS edges carry a confidence value — a float from the call resolver (1.0 for an exact in-scope match, lower for cross-file and heuristic ones). No other edge type has one, so don't report a confidence for edges that don't carry it.
  • After any build, the OpenTrace MCP tools (search_graph, get_node, traverse_graph, list_nodes, get_stats) read the same .opentrace/index.db the slash commands wrote to. There is one graph, not two.
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 · 66 lines · 195 tokens per session scan A c35e02e34fee

Subscribe to this mod's changes

graph is a skill published in the GitHub repository opentrace/opentrace (111 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 195 tokens to every session and 772 once invoked, about $0.0008 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-08-30.

Related

graph compared with skills from other repositories

graph next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
graphopentrace/opentraceSkill1111mo agoApache-2.0A195Claude Code
llm-runtimeWrongStack/WrongStackSkill448todayMITA97Claude Code, Codex
knowledge-model-and-provider-runtime-provider-resilience-admission-and-observabilityechoVic/blade-codeSkill18117d agoMITA184Claude Code, Codex
knowledge-model-and-provider-runtime-model-catalog-configuration-and-credentialsechoVic/blade-codeSkill18117d agoMITA160Claude Code, Codex
knowledge-model-and-provider-runtimeechoVic/blade-codeSkill18117d agoMITA152Claude Code, Codex
ds-notebook-strict-codePracticalSwan/agent-skillsSkill2518d agoMITA53Codex
flockion_engineering_aierror505/Flockion_AI_EngineeringSkill51mo agoMITA187Claude Code