agent-discovery

Scans .claude/agents/*.md and ranks specialists by domain overlap and trigger context.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Kiwi-Home/ai-workflow --skill agent-discovery-kiwi-home
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-discovery
Source: https://github.com/Kiwi-Home/ai-workflow/tree/main/plugins/structured-workflows/skills/agent-discovery
Command: npx skills add https://github.com/Kiwi-Home/ai-workflow --skill agent-discovery-kiwi-home

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the runtime discovery and selection of specialist agents so workflows can dynamically find reviewers and domain experts without manual configuration or ad-hoc prompts.

Core Features & Use Cases

  • File-based Agent Discovery: Scans .claude/agents/*.md and builds a roster of available agents.
  • YAML Frontmatter Parsing: Extracts name, domains, role, invoked_during, trigger_contexts, skills, and other metadata from each agent file.
  • Selection & Scoring: Filters by role, scores by domain overlap and trigger-context adjustments, applies priority rules, and supports workflow.yaml overrides and validation checks.
  • Operational Contexts: Used during setup to avoid duplicate generation and during prepare to select agents for design sessions, plan reviews, and review phases with fallback behavior when none are found.

Quick Start

Run agent discovery during setup or prepare to scan .claude/agents and return a ranked roster of eligible agents.

Frequently Asked Questions about agent-discovery

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

FAQPage Schema
How do I automatically discover and select specialist agents for task dispatch?

To automate agent discovery, scan project directories for .claude/agents/*.md files to build a roster, parse YAML frontmatter for domains and roles, and score candidates by domain overlap to select the right specialist agent.

How does YAML frontmatter parsing work for agent discovery and ranking?

YAML frontmatter parsing extracts agent metadata like name, domains, role, invoked_during, trigger_contexts, and skills from Markdown files, then filters by role and scores candidates by domain overlap and trigger-context adjustments for ranking.

Can I use workflow.yaml overrides to validate agent selection during setup?

Yes, you can apply workflow.yaml overrides to enforce priority rules and validation checks during agent selection, ensuring discovered agents meet specific workflow criteria before task dispatch.

What is the best way to dynamically find domain experts without manual configuration?

The best way to dynamically find domain experts is running file-based agent discovery during the prepare phase, which scans available agents and returns a ranked roster based on domain overlap without requiring manual configuration.

When do I need file-based agent discovery for pipeline task dispatch?

You need file-based agent discovery during setup to avoid duplicate agent generation and during the prepare phase to select eligible agents for design, implementation, and review sessions.

What happens if agent discovery finds no eligible reviewers for a session?

When agent discovery finds no eligible reviewers matching the required domains and roles, it applies fallback behavior during the prepare phase to handle the absence of specialist agents gracefully.