一键导入
agent-test-delegation
Test agent delegation patterns to verify hierarchy and escalation paths. Use after modifying agent structure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Test agent delegation patterns to verify hierarchy and escalation paths. Use after modifying agent structure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run section orchestrators to coordinate multi-component workflows. Use when starting work on a section.
Validate agent YAML frontmatter and configuration. Use before committing agent changes or in CI.
Reply to PR review comments using the correct GitHub API endpoint. Use when responding to inline code review feedback (not gh pr comment).
Run Mojo tests using mojo test command. Use when executing tests or verifying test coverage.
Track implementation progress against plan. Use to monitor component delivery and identify blockers.
Check agent configuration coverage across hierarchy levels and phases. Use to ensure complete agent system coverage.
| name | agent-test-delegation |
| description | Test agent delegation patterns to verify hierarchy and escalation paths. Use after modifying agent structure. |
| mcp_fallback | none |
| category | agent |
Verify agent hierarchy, delegation chains, and escalation paths.
# 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
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
| 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 |
Circular dependency: Agent A → Agent B → Agent A
Skip-level delegation: L2 → L4 (skips L3)
Orphaned agent: No other agent delegates to it
/agents/delegation-rules.md - Complete delegation guidelines.claude/agents/ - All agent configurationsCLAUDE.md - Hierarchy documentation