What problem does it solve?
This Skill solves the common issue where spawned subagents lack the necessary codebase context to complete tasks, leading to failed executions, context limit overruns, or incomplete results because required context cannot be predicted upfront.
Core Features & Use Cases
- 4-Phase Iterative Retrieval Loop: Uses a dispatch-evaluate-refine-loop workflow to progressively narrow down relevant context across multiple cycles.
- Relevance Scoring & Gap Identification: Evaluates retrieved files against task requirements to filter out irrelevant content and identify missing context for refinement.
- Use Cases: Ideal for spawning subagents for bug fixes, feature implementation, code exploration, and RAG-like retrieval pipelines, as well as optimizing token usage in multi-agent orchestration workflows. For example, when fixing an authentication bug, it first searches for auth-related files, discovers codebase-specific terminology like "jwt" and "refresh token" in the first cycle, refines its search in the second cycle, and returns only the most relevant files without exceeding context limits.
Quick Start
Use the iterative-retrieval skill to gather the necessary codebase context for adding rate limiting to API endpoints, capping retrieval at 3 iterative cycles to avoid unnecessary token usage.