code-intelligence

A skill for exploring a codebase's structure through an approved local code graph, then checking important claims against source files and tests.

In plain words
What is it for?
Use it to find related code, trace dependency paths, inspect architecture boundaries, and identify likely files affected by a change.
Why use it?
It helps answer questions about symbols, callers, dependencies, architecture, and possible change impact without relying only on guesses from the graph.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/r1ck29/claude-code-codegraph-harness/code-intelligence
Any agent
npx skills add R1ck29/claude-code-codegraph-harness --skill code-intelligence
Clone the repo
git clone --depth 1 https://github.com/R1ck29/claude-code-codegraph-harness

Made for: Claude Code, Codex.

Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 541 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00026 $0.00541
Opus 5 $0.00013 $0.00270
Sonnet 5 $0.00005 $0.00108
Haiku 4.5 $0.00003 $0.00054

Measured today against content hash 2ad02cceaaab, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-intelligence 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 today.

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/codegraph-evaluator/skills/code-intelligence/SKILL.md · 59 lines

How it starts

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

Code intelligence routing

Apply this skill only when the question is structural. The configured approved code-graph MCP is a local gateway; the presence of this skill alone does not prove that the gateway or its index is usable.

Data boundary

Use only the registered local gateway. Do not register or call an upstream graph backend directly. Do not send source or graph output to another service.

Allowed graph tools

Only these five read-only gateway tools are in scope:

  • codegraph_status
  • codegraph_search
  • codegraph_neighbors
  • codegraph_impact
  • codegraph_architecture

Every normal query revalidates freshness and returns it in the same response. Inspect that field; do not add a redundant codegraph_status preflight. Use codegraph_status only for diagnostics when no structural query is otherwise needed. Keep search limits and traversal depth bounded.

Routing

Use the graph only for structural tasks:

  • symbol discovery
  • callers and callees
  • dependency paths
  • neighbors and hubs
  • architecture boundaries
  • change-impact candidates

Use Read, Grep, LSP and relevant tests first for:

  • exact control flow
  • error and validation behavior
  • runtime dependency injection
  • reflection and generated code
  • configuration-driven behavior
  • final change decisions

Fail-closed fallback

If status or any result is unavailable, stale, dirty, truncated, stop using graph evidence for the task and fall back to Read, Grep, LSP. Do not ask the user to repair graph state during a coding task.

Evidence boundary

The graph is derived static-analysis data, not source-of-truth. The current source and tests are the source-of-truth. Open consequential source locations and verify relevant tests before proposing or making a change. Clearly separate graph-derived candidates from claims verified in source and tests.

Read the full file on GitHub · 59 lines

Files

What ships with it

2 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. today First seen · 59 lines · 26 tokens per session scan A 2ad02cceaaab

Subscribe to this mod's changes

code-intelligence is a skill published in the GitHub repository R1ck29/claude-code-codegraph-harness (0 stars, last pushed 9d ago), licensed Apache-2.0. It adds 26 tokens to every session and 541 once invoked, about $0.0001 per session on Opus 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-31.

Related

Other skills, from other repositories

projectatlas

Use ProjectAtlas as the atlas-first orientation layer before broad source reads, with MCP-first task startup, short-alias worktree registration and routing, safe targeted initialization, ranked navigation, exact or federated graph evidence, purpose curation, health, lint, and repository-wide token reporting.

styler-ai/ProjectAtlas · 60 tokens

codex-coding-plugin

Build, review, or fix ProjectAtlas plugin/runtime installer integration for Codex, Claude Code, and OpenCode, especially version convergence, stale ProjectAtlas cache repair, MCP config generation, skill artifacts, host smoke tests, and fake-host tests for ProjectAtlas releases.

styler-ai/ProjectAtlas · 59 tokens

research

Performs deep research on a topic via deepresearch. Simulates a multi-step research process and returns a comprehensive research result as a string.

study8677/repobrain · 32 tokens

octocode-chrome-devtools

Use when a live page needs Chrome DevTools/CDP evidence: network failures, console errors, performance, DOM/CSS actionability, screenshots/PDF, cookies/storage, click/fill/search, HAR, or auth-gated pages. Phrases like debug in Chrome, live page health, CDP snapshot, cookie bridge. Not for static crawl or bulk extract…

bgauryy/octocode · 87 tokens

octocode-subagent

Use when spawning workers or offloading work: Task/subagents, specialist handoffs, A2A peers, sealed packets, coordinate/synthesize, challenge techniques (rubber-duck, interview, mimic-flow, red-team, blind review, consensus), or local Ollama one-shots to save tokens. Measuring keep/discard KPIs → octocode-graph-eval.

bgauryy/octocode · 80 tokens

octocode-roast

Use when code needs a blunt evidence-backed roast or memorable critique: smell inventory, debt ranking, hot-path autopsy, savage/diff review, security or performance sins, or practical redemption paths. Phrases like roast this, brutal review, top sins, cleanup debt. Polite evidence-first PR review → octocode-research.

bgauryy/octocode · 71 tokens