aio-discover

aio-discover is a skill for Claude Code, Codex from aiocean/claude-plugins. It costs 37 tokens per session (827 once invoked), scanned A, original, MIT.

A code-discovery workflow that uses several exploration agents to find implementations and explain how features work. It is the first step in a discover, map, and plan process before coding.

In plain words
What is it for?
Use it to locate relevant code and trace how an existing feature works before planning an implementation.
Why use it?
It helps you understand an unfamiliar codebase before changing it, reducing guesswork about where behaviour lives.

Skill for Claude CodeCodex

Part of the aio-codeflow plugin — 10 skills shipped together

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/aiocean/claude-plugins/aio-discover
Any agent
npx skills add aiocean/claude-plugins --skill aio-discover
Clone the repo
git clone --depth 1 https://github.com/aiocean/claude-plugins

Made for: Claude Code, Codex.

Or install aio-codeflow, the plugin that ships this one along with the rest of its 10 skills.

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 aio-discover

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-discover.svg)](https://agentmods.dev/skills/aiocean/claude-plugins/aio-discover)
Your own site
<a href="https://agentmods.dev/skills/aiocean/claude-plugins/aio-discover"><img src="https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-discover.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 827 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.00037 $0.00827
Opus 5 $0.00018 $0.00413
Sonnet 5 $0.00007 $0.00165
Haiku 4.5 $0.00004 $0.00083

Measured 4d ago against content hash b6e56b284d5a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

aio-discover 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 4d 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/aio-codeflow/skills/aio-discover/SKILL.md · 108 lines

How it starts

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

Discover — Find Relevant Code

Environment

  • GitNexus: !npx gitnexus status 2>/dev/null && echo "AVAILABLE" || echo "NOT INSTALLED"

Hybrid search across the entire codebase using GitNexus. Use BEFORE planning or coding to understand what exists.

Prerequisites

  • GitNexus indexed in project — run npx gitnexus analyze if not yet indexed
    • Verify with npx gitnexus status

Workflow

Step 1: Formulate 3-5 search queries

From the user's request, generate diverse queries covering different angles:

  • Functional: "how does [feature] work"
  • Structural: "[component type] for [domain]"
  • Cross-cutting: "[pattern] across frontend and backend"
  • Vietnamese OK: GitNexus hybrid search handles multilingual

Step 2: Run searches in parallel

Use the GitNexus MCP query tool for each search:

query("query here")

Run 3-5 searches as separate parallel MCP tool calls. Alternatively use the CLI:

npx gitnexus analyze

Step 3: Score and filter

Similarity Relevance
>0.65 Highly relevant — must read
0.55–0.65 Related — worth knowing
<0.55 Tangential — skip unless desperate

Step 4: Enrich with GitNexus context (parallel)

For each highly relevant file found, get symbol overview:

context(file)

This adds function names and signatures without reading the full file. Run in parallel for all relevant files.

Optionally, get full context for the most important symbol:

context(file, symbol="main_function")

Step 5: Output discovery map

## Discovery: [topic]

### Highly Relevant (>0.65)
- `path/file.ts` — [what it does]
  Functions: fn1, fn2, fn3 (from GitNexus context)
- `path/file.rs` — [what it does]
  Functions: fn1, fn2 (from GitNexus context)

### Related (0.55–0.65)
- `path/file.tsx` — [tangential but worth knowing]

### Key Insight
[What the search reveals about how the codebase handles this area]

### Next Step
Run `/map` on the highly relevant files for structural analysis.

Read the full file on GitHub · 108 lines

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. 4d ago First seen · 108 lines · 37 tokens per session scan A b6e56b284d5a

Subscribe to this mod's changes

aio-discover is a skill published in the GitHub repository aiocean/claude-plugins (4 stars, last pushed 2d ago), licensed MIT. It adds 37 tokens to every session and 827 once invoked, about $0.0002 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.