sub-agent-delegation

Route development tasks to CLI-based AI coding agents via a decision matrix.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/thanhtunguet/agent-skills --skill sub-agent-delegation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sub-agent-delegation
Source: https://github.com/thanhtunguet/agent-skills/tree/main/sub-agent-delegation
Command: npx skills add https://github.com/thanhtunguet/agent-skills --skill sub-agent-delegation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Enables precise routing of development tasks to external CLI-based AI coding agents based on their strengths, reducing manual triage and improving output quality and turnaround time for reviews, implementations, and bulk operations.

Core Features & Use Cases

  • Agent Decision Matrix: Maps task types to primary and fallback agents (codex, qwen, gemini) for code review, implementation, refactoring, bulk changes, and documentation.
  • Agent Capabilities & Workflows: Documents strengths/weaknesses of each agent and provides multi-step workflows for new feature development, large refactors, and documentation generation.
  • Execution Helper: Includes a scripts/delegate.sh helper to run non-interactive or interactive agent commands and manage model selection and dry-run options.
  • Templates & Examples: Provides task templates for reviews, implementations, and bulk operations to standardize delegation and review cycles.

Quick Start

Run the scripts/delegate.sh helper with an agent name and a task file to delegate the task non-interactively and inspect the returned output for review.

Frequently Asked Questions about sub-agent-delegation

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

FAQPage Schema
How do I delegate coding tasks to specialized AI agents for code review and implementation?

Delegate coding tasks to specialized AI agents by routing development work through a decision matrix that matches task types like code review or implementation to primary and fallback CLI agents based on their strengths.

What is the best way to automate complex refactoring across multiple agents?

Automate complex refactoring by using a decision matrix to route bulk file operations to primary agents with fallback options, leveraging a shell helper to execute non-interactive commands and manage model selection.

Can I use this agent routing workflow with ACP-compatible repositories?

Yes, agent routing workflows operate across ACP-compatible repositories, enabling task delegation for feature implementation, documentation generation, and bulk changes within that environment.

How do I run a non-interactive coding task using a shell helper?

Run a non-interactive coding task by executing the delegate.sh shell helper with an agent name and a task file, then inspect the returned output to review the results.

Which CLI agents are supported for task delegation and routing?

Supported CLI agents for task delegation include codex, qwen, and gemini, which are mapped as primary and fallback options in the decision matrix for various development workflows.

Does this approach provide templates for standardizing code review and feature implementation?

Yes, task templates for reviews, implementations, and bulk operations are provided to standardize the delegation process and enforce consistent review and iteration cycles.