iterative-retrieval

Solid

Max-3-cycle protocol for agent sub-tasks with WHY context and coordinator validation. Use when spawning sub-agents to complete scoped work.

AI & Automation 58 stars 15 forks Updated 2 weeks ago MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
59
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Iterative Retrieval Skill Squad agents frequently spawn sub-agents to complete scoped work. Without structure, these handoffs become vague, cycles multiply, and outputs land without being checked. The **Iterative Retrieval Pattern** caps cycles at 3, mandates WHY context in every spawn, and requires the coordinator to validate agent output before closing an issue. --- ## Spawn Prompt Template Every agent spawn must include the following four sections. Copy and fill in the template: ``` ## Task {What you need done — concrete and bounded} ## WHY this matters {The motivation and context. What system or user goal does this serve? What breaks if skipped?} ## Success criteria {How you will know the output is correct. Be explicit — list acceptance criteria, not vibes.} Example: - [ ] File X exists and contains Y - [ ] No regressions in existing tests - [ ] PR is open targeting main with description matching the issue ## Escalation path {What the agent should do if uncertain or stuck. "Stop and ask me" is valid.} Example: - If requirements are ambiguous → stop, comment on the issue, set label status:needs-decision - If blocked by a dependency → label status:blocked, explain in a comment - If 3 cycles exhausted without resolution → write a summary to inbox and surface to coordinator ``` --- ## 3-Cycle Protocol | Cycle | Description | Exit condition | |-------|-------------|----------------| | **1** | Initial attempt | Done → coordinator validates. Incomplete → surface del...

Details

Author
DanWahlin
Repository
DanWahlin/ai-agent-board
Created
6 months ago
Last Updated
2 weeks ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category