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.
git clone --depth 1 https://github.com/event4u-app/agent-confignpx agentmods add skills/event4u-app/agent-config/code-intelligenceWrote 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.
[](https://agentmods.dev/skills/event4u-app/agent-config/code-intelligence)<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.
<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>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.
| Model | Per session | Once 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 |
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 --> 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 ofexternal-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/Readacross 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
- Orient first, when the question is "where does X live" rather than "who
calls X". If
agents/map/MAP.mdexists, 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 mapbuilds one in seconds. Then query. - Detect the source.
agent-config code-graph detect— is a fresh consumergraph.jsonor native cache present? (A consumer-shipped fresh index wins; the native engine covers stale-or-absent — ADR-124 § 2.) - 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. - 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.
- 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) andexternal:<module>/external:<module>#<name>(a name imported from outside the indexed root —external:node:path). - 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.
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.
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.
- 28d ago Changed · +6 lines · -1 tokens per session 7663e59abc0f
- 1mo ago Changed 8d90e5555131
- 1mo ago Changed · +4 lines 64e78e5715a0
- 1mo ago Changed 276782c58d83
- 1mo ago Changed · +4 lines f9d670fc2ba8
- 1mo ago Changed · +6 lines scan A → C e797c46583d1
- 2mo ago Changed · +12 lines f54001cf4066
- 2mo ago Changed · +81 lines 8b5e587a6208
- 2mo ago Changed · +48 lines · -1 tokens per session d62edefe0cfc
- 3mo ago First seen · 154 lines · 50 tokens per session scan A 9e87a7ac1c09
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.
code-intelligence compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| code-intelligenceevent4u-app/agent-config | Skill | 20 | today | MIT | C | 48 | Claude Code, Codex |
| diagnose-backend-bugQoderAI/better-harness | Skill | 2.5k | 23d ago | MIT | A | 87 | Claude Code, Codex |
| kiro-verify-completiongotalab/cc-sdd | Skill | 3.8k | 1mo ago | MIT | A | 39 | Codex |
| memorix-troubleshootingAVIDS2/memorix | Skill | 963 | 7d ago | Apache-2.0 | A | 36 | Claude Code |
| roblox-performanceTabooHarmony/roblox-brain | Skill | 239 | 2d ago | MIT | A | 30 | Claude Code |
| lov-app-professional-designlovstudio/skills | Skill | 72 | today | MIT | A | 79 | Claude Code |
| chatcrystal-debug-recallZengLiangYi/ChatCrystal | Skill | 65 | 5d ago | Apache-2.0 | A | 54 | Codex |