iterative-retrieval

Spawn sub-agents with a 3-cycle protocol and output validation.

619|188|Updated Jul 4, 2024
One-click install
npx skills add https://github.com/CommunityToolkit/Aspire --skill iterative-retrieval-communitytoolkit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/CommunityToolkit/Aspire/tree/main/examples/squad/CommunityToolkit.Aspire.Hosting.Squad.AppHost/dev-squad/.squad/templates/skills/iterative-retrieval
Command: npx skills add https://github.com/CommunityToolkit/Aspire --skill iterative-retrieval-communitytoolkit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

The Iterative Retrieval Pattern addresses the chaos of unstructured agent sub-tasks, reducing cycle multiplication and improving output validation.

Core Features & Use Cases

  • 3-Cycle Protocol: Limits cycles to 3, with mandatory WHY context and output validation.
  • Spawn Prompt Templates: Ensures clarity and completeness of agent spawns.
  • Coordinator Validation: Standardizes the process of validating agent outputs before closing issues.
  • Escalation Guidance: Defines criteria for escalating unresolved tasks.
  • Issue Deduplication: Promotes issue uniqueness and prevents duplicate work.
  • Actionable Research: Mandates concrete follow-up actions for every analysis task.

Quick Start

Use the iterative-retrieval skill to spawn a sub-agent to complete a task. Follow the spawn prompt template, including clear task description, motivation, success criteria, and escalation path.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I limit sub-agent spawn cycles to prevent workflow chaos?

Sub-agent spawn cycles are limited using a structured 3-cycle protocol that enforces mandatory WHY context and output validation. This protocol reduces cycle multiplication and ensures coordinated agent workflows by validating outputs before closing issues.

What is the best way to structure sub-agent spawn prompts for task coordination?

The best way to structure sub-agent spawn prompts is using a template that mandates a clear task description, motivation, success criteria, and escalation path. This ensures clarity and completeness for coordinated agent workflows.

How does coordinator validation work for agent outputs in issue tracking?

Coordinator validation standardizes the process of validating agent outputs before closing issues. It ensures every analysis task mandates concrete follow-up actions and promotes issue uniqueness to prevent duplicate work across sub-agents.

When should I escalate unresolved tasks in an agent coordination protocol?

Unresolved tasks should be escalated when they meet specific criteria defined by the escalation guidance within the 3-cycle protocol. This prevents infinite looping and ensures tasks failing output validation receive proper attention.

Can I use this iterative retrieval protocol for issue deduplication in automated workflows?

Yes, the iterative retrieval protocol promotes issue uniqueness and prevents duplicate work in automated workflows. It enforces issue deduplication by standardizing the validation of agent outputs before any issue is closed.

Why does my sub-agent workflow multiply cycles and produce unvalidated outputs?

Unstructured agent sub-tasks cause cycle multiplication and poor output validation. Implementing a structured spawn protocol with a mandatory 3-cycle limitation and contextual reasoning directly addresses this chaos and improves output validation.