Skip to content
Skill

Dual level retrieval

Guides an agent to run broad searches first, then read top hits in full before quoting

Dual level retrieval is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
227
Last commit
License
MIT
Listing updated

Similar skills

About Dual level retrieval

This skill sets a two-pass method for gathering evidence in a codebase or document set. The agent first runs wide, recall-focused searches on names and identifiers, logs every hit location, and ranks them by how decisive they are likely to be rather than how often they match.

In the second pass the agent reads the highest-ranked candidates in full context, including the enclosing definition and its callers, and only quotes material drawn from that reading. Snippets from the first pass are treated as unverified leads. If a fine read reveals new vocabulary, the agent loops back to a new coarse query until no new decisive locations appear.

The skill expects the agent to have search and file-reading access to the corpus. Its report at the end states how many locations the broad pass found, how many were read closely, and what was intentionally left unread.

When your agent uses it

Use when search results are too coarse to support a claim—sweep broadly to identify every candidate location, then open the most decisive hits around their definitions and callers before quoting or citing them.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (2 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/dual-level-retrieval to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/dual-level-retrieval &&
cp -R "$tmp/.agents/skills/dual-level-retrieval" ~/.claude/skills/dual-level-retrieval &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/dual-level-retrieval inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/dual-level-retrieval to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/dual-level-retrieval &&
cp -R "$tmp/.agents/skills/dual-level-retrieval" ~/.agents/skills/dual-level-retrieval &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/dual-level-retrieval inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/dual-level-retrieval to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/dual-level-retrieval &&
cp -R "$tmp/.agents/skills/dual-level-retrieval" ~/.cursor/skills/dual-level-retrieval &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/dual-level-retrieval inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/mtarcure/claude-vibe-squad.git --path .agents/skills/dual-level-retrieval

Or copy the folder to ~/.gemini/skills/dual-level-retrieval yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/dual-level-retrieval:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/dual-level-retrieval &&
cp -R "$tmp/.agents/skills/dual-level-retrieval" ~/.copilot/skills/dual-level-retrieval &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/dual-level-retrieval inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git

Then copy claude-vibe-squad/.agents/skills/dual-level-retrieval into your agent's skills folder as dual-level-retrieval. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Coarse sweep over identifiers
Runs recall-oriented searches on names, symbols and identifiers to find every candidate location.
Decisiveness ranking
Orders candidate hits by how likely they define a behavior instead of how many matches they contain.
Full-context fine reading
Reads top candidates around their definitions and callers before any quotation.
Iterative vocabulary feedback
Feeds newly learned terms back into broad queries until no new decisive hits appear.
Coverage reporting
States how many locations were found, read, and deliberately skipped.

Good for

  • Find every place a function is defined and used before citing its behavior
  • Verify a claim about a codebase with quotes taken from full file reads
  • Trace a configuration key across a repository and report which files were actually read
  • Audit where an identifier is referenced and list what was left unchecked

Dual level retrieval FAQ

What does the skill need to run?

It is a single SKILL.md file with no scripts. It assumes the agent can search the corpus and open files, and it uses no particular tools beyond those.

Does Dual level retrieval change any files?

No. The instructions only describe how to search, read and report evidence.

When should the agent use Dual level retrieval?

When search results are too broad to support a claim and the agent needs to read the relevant code or text before quoting it.

How do I install Dual level retrieval in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/dual-level-retrieval to use it in all your projects, or to .claude/skills/dual-level-retrieval in one project.

Does Dual level retrieval run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Dual level retrieval?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Dual level retrieval?

The closest alternatives to Dual level retrieval are Codebase index, Codebase memory MCP, Harness review, Why and Select blind targets.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from mtarcure/claude-vibe-squad

  1. Writes alt text, timed captions and transcripts for images, footage and audio

    • Open source
    • 227 GitHub stars
    • Design and media
  2. Guides building product agent system prompts with eval-backed boundaries and output

    • Open source
    • 227 GitHub stars
    • AI models and LLM tooling
  3. Guides authorized adversarial testing of autonomous LLM agents for injection and approval

    • Open source
    • 227 GitHub stars
    • Security
  4. Writes a typed game-event to audio-cue map that hands adaptive audio designs to engines

    • Open source
    • 227 GitHub stars
    • Developer tools
  5. Generates missing README, CHANGELOG, LICENSE and agent-context files at project delivery

    • Open source
    • 227 GitHub stars
    • Developer tools
  6. Builds and proves multi-step exploit chains from weak bug-bounty findings

    • Open source
    • 227 GitHub stars
    • Security