code-intelligence

code-intelligence is a skill for Claude Code, Codex from event4u-app/agent-config. It costs 48 tokens per session (4,529 once invoked), scanned C, original, MIT.

A codebase-structure lookup tool for answering questions about relationships between code symbols. It can investigate callers, uses, imports, inheritance, and the likely impact of changing a symbol.

In plain words
What is it for?
Use it to find who calls a function, where a class or variable is used, what imports a module, or what code may be affected by a change.
Why use it?
It reduces the need to search many files manually when you need to understand how code is connected. It uses a code graph when available and falls back to text search when necessary.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is [`external-code-graph-interop`](../../rules/external-code-graph-interop.md):.

Good fit Use it to find who calls a function, where a class or variable is used, what imports a module, or what code may be affected by a change.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/event4u-app/agent-config
agentmods
npx agentmods add skills/event4u-app/agent-config/code-intelligence

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/event4u-app/agent-config/code-intelligence"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/code-intelligence.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,529 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 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.00048 $0.04529
Opus 5.5 $0.00019 $0.01812
Sonnet 5.5 $0.00010 $0.00906
Haiku 4.5 $0.00005 $0.00453

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

Security

Grade C, and why

code-intelligence 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 28d 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.

calls X".** If `agents/map/MAP.md` exists, read it: it names the project's <!-- ref-ignore -->
src/skills/code-intelligence/SKILL.md · 315 lines

How it starts

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

code-intelligence

For a structure question — who calls X, where is Y used, what imports Z, what breaks if I change this symbol — ask an index that already exists before rebuilding the relationship by hand: it is already built, its answer is structured, and it costs a fraction of the tokens. It is not more precise than a blind grep — measured on this repository and on two third-party PHP subjects, zero classes met the win bar (§ Measured twice, § v3) — so grep is the arm you fall back to routinely and with a stated reason, not grudgingly. This skill routes such questions to the native code-graph engine (ADR-124, Class A) or a consumer-shipped index first. It is the executable side of external-code-graph-interop: orchestrator first, owner where it wins.

When to use

  • The question is about relationships between code symbols, not content: callers/callees, references, imports, inheritance, change-impact.
  • You are about to grep/Read across many files to reconstruct a call or import graph by hand.

When NOT to use: content/semantic questions ("what does this function mean", "find the string 'password'"), single-file edits, or a repo with no code-graph and no appetite to build one — plain grep/read is right there.

Procedure

  1. Orient first, when the question is "where does X live" rather than "who calls X". If agents/map/MAP.md exists, read it: it names the project's areas (files grouped by coupling), its infrastructure files and its cycles. No map yet? agent-config code-graph map builds one in seconds. Then query.
  2. Detect the source. agent-config code-graph detect — is a fresh consumer graph.json or native cache present? (A consumer-shipped fresh index wins; the native engine covers stale-or-absent — ADR-124 § 2.)
  3. Build if absent and worthwhile. No graph + PHP, TS/JS, Python, Go, Java or C#? agent-config code-graph build (deterministic, LLM-free, ~seconds). Unsupported stack, one-off ask — grep.
  4. Query. Pick the verb:
    • agent-config code-graph query <symbol> — direct relations of a symbol.
    • agent-config code-graph affected <symbol> — reverse: who calls / references it (the "impact of changing X" question). --since <ref> seeds from a git diff.
    • agent-config code-graph path <a> <b> — how two symbols connect.
    • agent-config code-graph explain <symbol> — 2-hop neighbourhood. Pass --budget <tokens> to cap output.
  5. Read the confidence. EXTRACTED = syntactic fact — a symbol declared in the file, or a name bound to the module specifier the file names; INFERRED = resolved by hierarchy, or by a repo-wide same-name lookup with no binding in the file to justify it; AMBIGUOUS = dynamic dispatch / facade, carries candidates — treat its target as one of the candidates, never as certain. Two target shapes are not nodes and resolve to nothing you can read: symbol:<name> (a name this repository does not declare) and external:<module> / external:<module>#<name> (a name imported from outside the indexed root — external:node:path).
  6. Fall back honestly. If the graph has no entry for the symbol, grep — and say so: "the graph has no entry for X, so I grepped." If this command is not available, grep and say so.

Read the full file on GitHub · 315 lines

Files

What ships with it

3 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. 28d ago Changed · +6 lines · -1 tokens per session 7663e59abc0f
  2. 1mo ago Changed 8d90e5555131
  3. 1mo ago Changed · +4 lines 64e78e5715a0
  4. 1mo ago Changed 276782c58d83
  5. 1mo ago Changed · +4 lines f9d670fc2ba8
  6. 1mo ago Changed · +6 lines scan A → C e797c46583d1
  7. 2mo ago Changed · +12 lines f54001cf4066
  8. 2mo ago Changed · +81 lines 8b5e587a6208
  9. 2mo ago Changed · +48 lines · -1 tokens per session d62edefe0cfc
  10. 3mo ago First seen · 154 lines · 50 tokens per session scan A 9e87a7ac1c09

Subscribe to this mod's changes

code-intelligence is a skill published in the GitHub repository event4u-app/agent-config (20 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 4,529 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

code-intelligence compared with skills from other repositories

code-intelligence next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-intelligenceevent4u-app/agent-configSkill20todayMITC48Claude Code, Codex
diagnose-backend-bugQoderAI/better-harnessSkill2.5k23d agoMITA87Claude Code, Codex
kiro-verify-completiongotalab/cc-sddSkill3.8k1mo agoMITA39Codex
memorix-troubleshootingAVIDS2/memorixSkill9637d agoApache-2.0A36Claude Code
roblox-performanceTabooHarmony/roblox-brainSkill2392d agoMITA30Claude Code
lov-app-professional-designlovstudio/skillsSkill72todayMITA79Claude Code
chatcrystal-debug-recallZengLiangYi/ChatCrystalSkill655d agoApache-2.0A54Codex