Back to Skills

delegation

verified

This skill configures automatic task delegation between agents in Synapse A2A. Configure delegation rules via settings files (.synapse/settings.json and .synapse/delegate.md) or the interactive config TUI (synapse config). Supports orchestrator mode (Claude coordinates) and passthrough mode (direct forwarding). Includes agent status verification, priority levels, error handling, and File Safety integration.

View on GitHub

Marketplace

synapse-a2a

s-hiraoku/synapse-a2a

Plugin

synapse-a2a

Repository

s-hiraoku/synapse-a2a

plugins/synapse-a2a/skills/delegation/SKILL.md

Last Verified

January 21, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/s-hiraoku/synapse-a2a/blob/main/plugins/synapse-a2a/skills/delegation/SKILL.md -a claude-code --skill delegation

Installation paths:

Claude
.claude/skills/delegation/
Powered by add-skill CLI

Instructions

# Delegation Skill

Configure automatic task delegation to other agents based on natural language rules.

## Configuration

Delegation is configured via settings files, managed using:
- `synapse init` - Create .synapse/ with template files
- `synapse config` - Interactive TUI for editing settings
- Direct file editing

### Configuration Files

| File | Purpose |
|------|---------|
| `.synapse/settings.json` | Enable/disable delegation and set A2A flow mode |
| `.synapse/delegate.md` | Define delegation rules and agent responsibilities |

### Settings Structure

In `.synapse/settings.json`:

```json
{
  "a2a": {
    "flow": "auto"  // "roundtrip" | "oneway" | "auto"
  },
  "delegation": {
    "enabled": true  // Enable automatic task delegation
  }
}
```

### Delegate Rules Structure

The `.synapse/delegate.md` file defines delegation rules in YAML frontmatter followed by optional markdown documentation.

#### Schema

```yaml
---
# Delegate rules configuration
version: 1  # Schema version (required)

# Agent definitions with their responsibilities
agents:
  codex:
    responsibilities:
      - "Code implementation and refactoring"
      - "File editing and creation"
      - "Bug fixes"
    default_priority: 3

  gemini:
    responsibilities:
      - "Research and web search"
      - "Documentation review"
      - "API exploration"
    default_priority: 3

  claude:
    responsibilities:
      - "Code review and analysis"
      - "Architecture planning"
      - "Complex problem solving"
    default_priority: 3

# Delegation rules (evaluated in order, first match wins)
rules:
  - name: "coding-tasks"
    description: "Route coding tasks to Codex"
    match:
      keywords: ["implement", "refactor", "fix", "edit", "create file"]
      file_patterns: ["*.py", "*.ts", "*.js"]
    target: codex
    priority: 3
    flow: roundtrip  # Wait for response

  - name: "research-tasks"
    description: "Route research to Gemini"
    match:
      keywords: ["research", "search", "f

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
6766 chars