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.
npx skills add HigorAlves/orc --skill code-discoverygit clone --depth 1 https://github.com/HigorAlves/orcWrote 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/higoralves/orc/code-discovery)<a href="https://agentmods.dev/skills/higoralves/orc/code-discovery"><img src="https://agentmods.dev/badge/skills/higoralves/orc/code-discovery/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/higoralves/orc/code-discovery"><img src="https://agentmods.dev/badge/skills/higoralves/orc/code-discovery.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.00059 | $0.00836 |
| Opus 5.5 | $0.00024 | $0.00334 |
| Sonnet 5.5 | $0.00012 | $0.00167 |
| Haiku 4.5 | $0.00006 | $0.00084 |
Grade A, and why
code-discovery 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.
How it starts
The opening of the file, as written. The whole thing — 36 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Discovery
Discovery — finding the code relevant to a task before changing it — is the largest easily-wasted token cost in a session. When Graphify is available, query the pre-built code graph and Read only the cited source_locations instead of grepping the tree. Graphify is optional and pre-1.0: every step below is guarded and falls back to plain Glob/Grep/Read — discovery never hard-blocks on it.
The protocol
- Detect + health-check.
command -v graphify; graph exists atgraphify-out/graph.json; graph fresh (built_at_commitin graph.json ==git rev-parse HEAD, orgraphify check-update .is clean). Binary absent → step 5; never prompt to install (SessionStart tool-check already surfaces it). - Build/refresh when missing or stale — pure local AST, no API key, seconds:
graphify extract . --code-only(missing) orgraphify update .(stale). Mention it in interactive commands; just do it in dispatched agents. Build fails → step 5, no retry loop. Never run a semantic (non---code-only) build for discovery. - Load lessons once, if present.
Readgraphify-out/reflections/LESSONS.mdbefore the first query (bounded ≈1500 tokens); prefer its listed nodes, skip its dead ends. Lessons are hints, not ground truth. Absent → skip silently. You only consume lessons — the orchestrating command records outcomes at a verified gate, so surface which graph nodes you relied on. - Query-first. Answer structural questions by traversal, most-specific verb first:
Thengraphify query "where is auth wired to the database?" --budget 1500 graphify explain "RateLimiter" # one symbol and its connections graphify path "UserService" "DatabasePool" graphify affected "processRefund" --depth 2 # reverse blast radius — leads, not verdictsReadonly the citedsource_locations. Noisy answer → raise--budgetor rephrase before abandoning the graph. Verify every cited caller by reading it — never claim "all callers handled" from graph output alone, least of all from a stale graph. A verb that errors or emits unparseable output → treat the graph as unavailable for that question and fall back (probe new verbs withgraphify <verb> --help). - Fallback (absent / stale / failed / empty):
Globcandidates,Grepsymbols,Readimmediate dependencies. Graceful degradation, not an error — say nothing alarming. - Keep the graph out of version control (repo-local exclude, no tracked-file diff):
grep -qxF 'graphify-out/' .git/info/exclude 2>/dev/null || echo 'graphify-out/' >> .git/info/exclude
What ships with it
1 file 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.
- 3mo ago First seen · 36 lines · 59 tokens per session scan A 37f023fe8cc7
code-discovery is a skill published in the GitHub repository HigorAlves/orc (7 stars, last pushed 3d ago), licensed MIT. It adds 59 tokens to every session and 836 once invoked, about $0.0002 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-31.
code-discovery compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| code-discoveryHigorAlves/orc | Skill | 7 | 3d ago | MIT | A | 59 | Claude Code |
| clean-code-coreCassetteTapeCrackle/claude-starters | Skill | 1 | 28d ago | MIT | A | 70 | Claude Code |
| agent-orchestrationCassetteTapeCrackle/claude-starters | Skill | 1 | 28d ago | MIT | A | 59 | Claude Code |
| clean-code-audioCassetteTapeCrackle/claude-starters | Skill | 1 | 28d ago | MIT | A | 52 | Claude Code |
| clean-code-cppCassetteTapeCrackle/claude-starters | Skill | 1 | 28d ago | MIT | A | 42 | Claude Code |
| clean-code-rustCassetteTapeCrackle/claude-starters | Skill | 1 | 28d ago | MIT | A | 44 | Claude Code |
| clean-code-cCassetteTapeCrackle/claude-starters | Skill | 1 | 28d ago | MIT | A | 34 | Claude Code |