Agent test delegation

From majiayu000/claude-skill-registry-data · View interactive version

Agent test delegation is an AI agent skill from the GitHub repository majiayu000/claude-skill-registry-data. Test agent delegation patterns to verify hierarchy and escalation paths. Use after modifying agent structure.

How to use this skill

Skill file

Agent Delegation Testing

Verify agent hierarchy, delegation chains, and escalation paths.

When to Use

Quick Reference

# Test all delegation patterns
python3 tests/agents/test_delegation.py .claude/agents/

# Test specific agent delegation
./scripts/test_agent_delegation.sh implementation-specialist

# Visualize delegation tree
./scripts/visualize_delegation.sh

What Gets Tested

Hierarchy levels: Agents delegate to lower levels, escalate to higher levels

Delegation chains: L0 → L1 → L2 → L3 → L4 (proper tree structure)

Circular dependencies: Detect A → B → C → A patterns

Reference validity: All delegates_to/escalates_to targets exist

Level consistency: Level values correct and levels don't skip improperly

Validation Rules

| Rule | Example ✅ | Wrong ❌ |

|------|-----------|---------|

| Delegate downward | L2 → L3 | L3 → L2 |

| Escalate upward | L3 → L2 | L3 → L4 |

| No circles | A → B, A → C | A → B → A |

| Valid refs | Existing agent | Nonexistent agent |

Common Issues

Circular dependency: Agent A → Agent B → Agent A

Skip-level delegation: L2 → L4 (skips L3)

Orphaned agent: No other agent delegates to it

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.