iterative-retrieval

Iteratively retrieve and refine contextual content across up to three cycles.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/shygoly/sapbase --skill iterative-retrieval-shygoly
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/shygoly/sapbase/tree/main/docs/zh-CN/skills/iterative-retrieval
Command: npx skills add https://github.com/shygoly/sapbase --skill iterative-retrieval-shygoly

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Sub-agent workflows often begin with insufficient context, causing poor decisions or misaligned actions. This skill provides an iterative retrieval pattern to progressively assemble relevant files, terms, and patterns so sub-agents receive the context they need.

Core Features & Use Cases

  • Iterative retrieval loop: A four-stage cycle (DISPATCH, EVALUATE, REFINE, LOOP) to progressively discover and rank contextual material.
  • Context scoping: Uses patterns, keywords, and exclusions to expand or prune search space across cycles.
  • Use Case: In a complex multi-agent task, start with broad queries, then refine to obtain sufficient high-signal context for execution.

Quick Start

Run an initial broad query, then iteratively refine results for up to three cycles to obtain enough context for sub-agent tasks.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I build sufficient context for sub-agents with limited initial information?

To build sufficient context for sub-agents, use an iterative retrieval loop to progressively discover relevant files, terms, and patterns through broad queries, relevance scoring, and query refinement across multiple cycles.

What is the best way to refine context scope in a multi-agent workflow?

The best way to refine context scope in a multi-agent workflow is by applying patterns, keywords, and explicit exclusions to prune low-signal results and expand high-signal search space across evaluation cycles.

How does iterative retrieval work for discovering relevant files in multi-agent systems?

Iterative retrieval works through a four-stage loop: dispatching broad queries, evaluating relevance, refining search terms, and looping, allowing multi-agent systems to progressively discover relevant files and patterns up to three cycles.

Can I exclude low-signal results when retrieving context for sub-agents?

Yes, you can exclude low-signal results during the context retrieval process by applying explicit exclusion patterns, ensuring sub-agents only receive high-signal, relevant contextual material for task execution.

Why do sub-agents make poor decisions in multi-agent workflows and how to fix it?

Sub-agents make poor decisions due to insufficient initial context, which can be fixed by iteratively retrieving and refining contextual content to progressively assemble relevant files, terms, and patterns needed for aligned actions.

Are there limitations on the number of cycles for iterative context retrieval?

Yes, the iterative context retrieval process enforces a structured loop with a maximum limit of three cycles to ensure efficient discovery and ranking of contextual material without excessive query iterations.