一键导入
hierarchical-supervisor
Hierarchical supervisor pattern: Multi-level supervisor chains where supervisors delegate to supervisors who delegate to workers.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Hierarchical supervisor pattern: Multi-level supervisor chains where supervisors delegate to supervisors who delegate to workers.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Formal reasoning via FOL theorem proving, model finding, and categorical logic
Use modern, token-efficient command-line tools (fd, ripgrep, ast-grep, bat, sd, jq, yq, tokei, eza, dust, procs, delta, hyperfine, just) instead of legacy coreutils (find, grep, cat, sed, ls, du, ps) for any shell, file, or codebase task — on any platform (Linux/macOS/Windows) and through any executor (a terminal, Claude Code's bash tool, Desktop Commander, or an MCP shell bridge). Trigger whenever you are about to search files, grep for text, read or inspect files, find-and-replace, refactor code, traverse a repository, process JSON/YAML, or inspect disk usage or processes — even if the user did not name a specific tool. These tools are faster, .gitignore-aware, and emit clean structured output that protects the context window. For installation across operating systems and platform-specific quirks, see references/. If you run commands specifically through the LocalREPL MCP bridge, also consult the local-repl-cli skill for environment-specific gotchas.
Operating guide for the AGEM reasoning engine: native tools, honest metric interpretation, formal-logic verification via mcp-logic, and the meta-tool MCP interface.
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks.
Master orchestrator for the five-question decision tree that selects the right agentic pattern from Sequential, ReAct, Planning, Reflection, or Multi-Agent.
Multi-agent pattern for tasks requiring specialization or scale beyond single-agent capacity. Covers topology, routing, and coordination design.
| name | hierarchical-supervisor |
| description | Hierarchical supervisor pattern: Multi-level supervisor chains where supervisors delegate to supervisors who delegate to workers. |
[!IMPORTANT] When to use: When you need multiple levels of supervisory control — a supervisor delegates to supervisors who manage worker agents.
Does the task require multiple specialized capabilities?
├── YES
│ └── Do you need multiple levels of supervisory control?
│ ├── YES → Hierarchical Supervisor (you're here)
│ └── NO, single level of control?
│ ├── YES, centralized routing?
│ │ └── YES → supervisor-delegation
│ └── YES, orchestrator control?
│ └── YES → supervisor-orchestrator
└── NO → single-agent
| ✅ Use Hierarchical When | ❌ Avoid When |
|---|---|
| Large organization-scale tasks | Simple routing with fixed paths |
| Clear domain/team boundaries needing management | Shallow task decomposition |
| Middle managers needed for domain expertise | Single supervisor suffices |
| Coordination at multiple abstraction levels | Overhead exceeds benefit |
┌─────────────────────────────────────────────────────────┐
│ Executive Supervisor │
│ (High-level task understanding) │
└─────────────────────────────┬───────────────────────────┘
│
┌───────────────────┼───────────────────┐
▼ ▼ ▼
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Domain Lead A │ │ Domain Lead B │ │ Domain Lead C │
│ (Technical Mgmt)│ │ (Creative Mgmt) │ │ (Legal Mgmt) │
└────────┬────────┘ └────────┬────────┘ └────────┬────────┘
│ │ │
┌────┴────┐ ┌────┴────┐ ┌────┴────┐
▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼
┌──── ┌──── ┌──── ┌──── ┌──── ┌──── ┌──── ┌──── ┌────
│Wrkr │Wrkr │Wrkr │Wrkr │Wrkr │Wrkr │Wrkr │Wrkr │Wrkr
└──── └──── └──── └──── └──── └──── └──── └──── └────
| Level | Role | Responsibility |
|---|---|---|
| Executive | Task interpretation | Convert user request to domain tasks |
| Domain Lead | Domain coordination | Manage specialists within domain |
| Specialist | Execution | Perform actual work |
| Principle | Why It Matters |
|---|---|
| 3 levels max | More adds latency, loses context |
| Semantic handoffs | Each level adds its own interpretation |
| Clear domain boundaries | Reduces cross-level confusion |
| Aggregated feedback | Lower levels report up; upper levels synthesize |
| Mistake | Why It's Bad |
|---|---|
| Too many levels | Context collapse, latency explosion |
| Unclear level responsibilities | Work falls through cracks |
| Top does work | Middle management is overhead |
| Bottom reports directly to top | Bypasses domain expertise |
Is hierarchy actually simpler than expected?
├── NO, just single level routing?
│ └── YES → supervisor-delegation
├── NO, just orchestration control?
│ └── YES → supervisor-orchestrator
└── Task is embarrassingly parallel?
└── YES → parallel-execution
| Factor | Hierarchical Supervisor |
|---|---|
| Latency | Highest (multiple levels) |
| Cost | Highest (multiple supervisors) |
| Complexity | Very High |
| Reliability | Distributed; domain leads isolate failures |
| Best for | Large-scale multi-domain tasks |
Pattern ID: hierarchical-supervisor | AGEM-compatible