iterative-retrieval

Spawn sub-agents with WHY context and a max-3-cycle protocol for coordinator validation.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/Leep-GH/Lee-s-squad --skill iterative-retrieval-leep-gh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/Leep-GH/Lee-s-squad/tree/main/packages/squad-cli/templates/skills/iterative-retrieval
Command: npx skills add https://github.com/Leep-GH/Lee-s-squad --skill iterative-retrieval-leep-gh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Squads often spawn sub-agents to complete scoped work, but without structure those handoffs become vague and cycles blow up. This skill enforces a max-3-cycle protocol and WHY-context, ensuring coordinator validation before closing work.

Core Features & Use Cases

  • Enforces a 3-cycle protocol for sub-task completion.
  • Requires WHY context on every spawn to clarify motivation and goals.
  • Coordinator validation before output acceptance to prevent drift.

Quick Start

Spawn a sub-agent with a WHY context and a 3-cycle protocol to resolve a scoped task.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I validate sub-agent task completion before accepting output?

To validate sub-agent task completion, you can enforce a coordinator-validated exit criteria using a max-3-cycle protocol. This requires coordinator validation before output acceptance to prevent drift.

Why do my spawned sub-agents lose context and blow up cycles?

Spawned sub-agents lose context and blow up cycles due to vague handoffs. Requiring WHY context on every spawn clarifies motivation and goals, ensuring deterministic cycles.

What is a 3-cycle protocol for sub-agent coordination?

A 3-cycle protocol for sub-agent coordination is a deterministic mechanism that enforces a maximum of three cycles for sub-task completion. It requires a coordinator to validate exit criteria before closing work.

How to spawn a sub-agent with WHY context for scoped work?

To spawn a sub-agent with WHY context, provide the motivation and goals alongside the scoped task. This enforces a structured handoff and limits iterations to a max-3-cycle protocol for validated outputs.

Can I limit sub-agent iterations to prevent infinite loops?

Yes, you can limit sub-agent iterations to prevent infinite loops by enforcing a max-3-cycle protocol. This deterministic cycle constraint ensures sub-tasks complete within three iterations before coordinator validation.

When do I need coordinator validation for sub-task completion?

You need coordinator validation for sub-task completion when agents spawn sub-tasks to complete scoped work. This prevents drift and ensures the coordinator accepts outputs only after validating exit criteria.