iterative-retrieval

Refine retrieval queries across up to 3 cycles to identify relevant codebase files.

Updated Jun 25, 2026
One-click install
npx skills add https://github.com/sumeetonline90/fitup_all --skill iterative-retrieval-sumeetonline90
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/sumeetonline90/fitup_all/tree/main/.cursor/skills/iterative-retrieval
Command: npx skills add https://github.com/sumeetonline90/fitup_all --skill iterative-retrieval-sumeetonline90

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Subagents in multi-agent workflows lack upfront knowledge of which codebase context they need, leading to context limit overflows, missing critical information, or wasted tokens sending irrelevant files. This Skill solves that by progressively refining context retrieval to deliver only the most relevant files for the task.

Core Features & Use Cases

  • 4-Phase Iterative Workflow: Dispatch initial broad queries, evaluate file relevance, refine search criteria, and loop up to 3 times to narrow down context.
  • Relevance Scoring: Rates files on a 0-1 scale to prioritize high-value context and exclude irrelevant content.
  • Use Cases: Ideal for debugging bugs (e.g., finding auth-related files for a token expiry issue), implementing new features (e.g., locating rate limiting patterns), building code RAG pipelines, and optimizing token usage in agent orchestration.

Quick Start

Use the iterative-retrieval skill to gather all relevant context files needed to fix the authentication token expiry bug in the project codebase.

Frequently Asked Questions about iterative-retrieval

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent context limit overflows when gathering codebase files for agent orchestration?

To prevent context limit overflows in agent orchestration, progressively refine retrieval queries to identify and deliver only high-relevance codebase files. This approach minimizes token waste by scoring file relevance on a 0-1 scale and excluding irrelevant content.

What is the best way to retrieve relevant code context for RAG pipelines without wasting tokens?

The best way to retrieve relevant code context for RAG pipelines is using a 4-phase iterative workflow that dispatches broad queries, evaluates relevance, refines search criteria, and loops up to 3 times. This ensures high-relevance context files while minimizing token consumption.

How do I find relevant files for debugging a bug like an authentication token expiry issue?

To find relevant files for debugging an authentication token expiry issue, dispatch an initial broad query, evaluate file relevance, refine the search criteria, and loop up to 3 times. This narrows down the codebase to deliver targeted context files.

Can I use iterative retrieval to locate existing implementation patterns for new feature development?

Yes, you can use iterative retrieval to locate existing implementation patterns for new feature development. By progressively refining search criteria across up to 3 retrieval cycles, it identifies high-value context files like rate limiting patterns while excluding irrelevant content.

Does iterative retrieval work with multi-agent workflows that lack upfront codebase knowledge?

Iterative retrieval works with multi-agent workflows lacking upfront codebase knowledge by progressively refining context retrieval. It dispatches broad queries, evaluates file relevance on a 0-1 scale, and loops up to 3 times to deliver targeted files.

What are the limitations of using a 4-phase iterative workflow for subagent context refinement?

The limitation of this 4-phase iterative workflow for subagent context refinement is the maximum of 3 retrieval cycles. This cycle cap restricts the depth of search refinement, bounding the exploration scope to prevent excessive token consumption.