Token导航 LogoToken导航TokenDH.com
研究检索执行命令clawhub未标认证来源可访问clear审计提醒

imperial-orchestrator帝国的协调者

Agent Skill

imperial-orchestrator 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,727

周安装

195

GitHub Stars

公开资料未说明

下载量

1,544
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:imperial-orchestrator(帝国的协调者)
来源仓库:https://github.com/rexnode/imperial-orchestrator
安装命令:
openclaw skills install imperial-orchestrator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install imperial-orchestrator

简介

imperial-orchestrator 作为高可用模型路由器,根据角色与复杂度分配 AI 任务。

  • 适用于 OpenClaw 中多模型调度、负载均衡与复杂推理流程管理。
  • 通过 clawhub 安装并使用指定命令集成,支持动态发现可用模型。
  • 需配置部门映射规则与优先级策略,确保任务分配合理性。
  • 建议监控系统性能与成本,避免单一模型过载或资源浪费。

SKILL.md

name
imperial-orchestrator
description
High-availability multi-role model router for OpenClaw. Discovers available models, maps them to role-based departments, routes tasks by complexity and domain, avoids dead auth chains, and degrades gracefully when providers fail.
version
0.1.0
metadata
openclaw
requires
anyBins
skillKey
imperial-orchestrator
emoji
🏯

Imperial Orchestrator

Use this skill when the user wants OpenClaw to coordinate many models intelligently instead of relying on a single default model.

This skill implements a pragmatic version of a 三省六部 / multi-role court pattern:

  • 中枢总管: receives the request, classifies it, selects an execution mode, and keeps the session alive
  • 内阁规划: breaks down larger tasks into sub-tasks
  • 六部执行: coding, ops, security, legal, writing, finance, project management
  • 都察院审核: optional review pass when quality or safety matters
  • 生存模式: if providers fail, keep working with the best remaining model or a local fallback

Goals

  1. Discover all available models from local config and optional health snapshot files.
  2. Match tasks to the best role and model set.
  3. Avoid 401 retry storms by opening an auth circuit breaker.
  4. Prefer cross-provider fallback over same-provider fallback.
  5. Keep the main session alive by switching to degraded mode if necessary.

Important reality checks

  • OpenClaw loads skills from bundled skills, ~/.openclaw/skills, or <workspace>/skills. Workspace skills have the highest precedence.
  • Skills are AgentSkills-compatible folders centered on SKILL.md with YAML frontmatter.
  • OpenClaw supports agent-specific workspaces and community usage shows coding-agent delegation, but model overrides and sub-agent routing can still be inconsistent depending on provider/version.
  • Therefore this skill is intentionally built as a hybrid of policy + scripts instead of assuming every runtime route works natively.

What this skill contains

  • config/model_registry.yaml: model capability tags and routing preferences
  • config/agent_roles.yaml: role definitions with forbidden actions and model strategies
  • config/agent_prompts.yaml: deep system prompts for each role (identity, rules, red lines)
  • config/routing_rules.yaml: deterministic routing hints
  • config/failure_policies.yaml: auth breaker, retry, degrade rules
  • config/benchmark_tasks.yaml: standardized test tasks per category (coding/writing/reasoning/ops/security/finance)
  • scripts/router.py: main planner/router/selector (now with benchmark-aware scoring)
  • scripts/health_check.py: discover models from openclaw.json
  • scripts/model_validator.py: probe each model with real API calls to verify availability
  • scripts/benchmark.py: run the same task against all models, score and rank by category
  • scripts/emit_openclaw_status.py: print machine-readable routing state
  • scripts/route_and_update.sh: unified CLI entry point
  • examples/: sample config patches and install docs

三省六部角色体系

每个角色配备深度 system prompt(定义在 config/agent_prompts.yaml),包含身份认同、职责边界、行为准则、协作意识和生死线五个维度。

中枢

角色官衔朝制对应核心使命
router-chief中枢总管天子/中枢院系统的生命线——分类、路由、维持心跳

三省

角色官衔朝制对应核心使命
cabinet-planner内阁首辅中书省草拟方略——将混沌拆解为有序步骤
censor-review都御史门下省/都察院封驳审核——质量的最后守门人

六部

角色官衔朝制对应核心使命
ministry-coding工部尚书工部兴修工程——编码、调试、架构
ministry-ops工部侍郎工部·营缮司维护驿站——部署、运维、CI/CD
ministry-security兵部尚书兵部戍边防务——安全审计、威胁建模
ministry-writing礼部尚书礼部文教礼仪——文案、文档、翻译
ministry-legal刑部尚书刑部律法刑狱——合同、合规、条款
ministry-finance户部尚书户部钱粮赋税——定价、毛利、结算

急递铺

角色官衔朝制对应核心使命
emergency-scribe急递铺令急递铺系统永不宕机的最后保障

Operating rules

1) Treat 401 as toxic

If a model fails with an auth error:

  • mark the model as auth_dead
  • cool down the whole auth chain / provider profile
  • do not keep retrying sibling models on the same auth chain first
  • prefer a different provider or a local fallback

2) Main router must stay light

Never assign the largest prompt, heaviest workspace, or the most fragile provider to the router-chief.

3) Cross-provider fallback first

Fallback order should be:

  1. same role, different provider
  2. same role, local fallback
  3. secondary role with adjacent duties
  4. emergency-scribe

4) Degrade instead of dying

If the best specialist models are unavailable:

  • still answer with architecture, checklists, pseudocode, or a reduced plan
  • do not return All models failed if any model remains viable

Suggested workflow

统一入口(推荐)

# 验证 → 路由(一条命令搞定)
bash scripts/route_and_update.sh full "Fix WireGuard peer sync bug"

# 单独路由
bash scripts/route_and_update.sh route "写一段产品介绍文案"

# 探活所有模型
bash scripts/route_and_update.sh validate

# 跑基准测试(全部类别)
bash scripts/route_and_update.sh benchmark

# 只测 coding 类别
bash scripts/route_and_update.sh benchmark coding

# 查看排行榜
bash scripts/route_and_update.sh leaderboard

手动操作

# 1. 发现模型
python3 scripts/health_check.py --openclaw-config ~/.openclaw/openclaw.json --write-state .imperial_state.json

# 2. 探活验证(真正调 API 确认模型可用)
python3 scripts/model_validator.py --openclaw-config ~/.openclaw/openclaw.json --state-file .imperial_state.json

# 3. 跑基准测试
python3 scripts/benchmark.py --openclaw-config ~/.openclaw/openclaw.json --state-file .imperial_state.json

# 4. 路由(自动读取 benchmark 分数加持)
python3 scripts/router.py --task "Design a distributed lock service" --state-file .imperial_state.json

# 5. 记录失败
python3 scripts/router.py --task "any" --record-failure modelstudio/qwen3.5-plus auth --write-state

Output contract

The router returns JSON including:

  • mode: direct / plan_then_execute / multi_agent / degraded
  • lead_role + lead_title (角色官衔)
  • lead_system_prompt (深度角色提示词,可直接注入 agent)
  • review_roles + review_system_prompts
  • forbidden_actions (角色禁止行为列表)
  • selected_model
  • fallback_chain
  • survival_model
  • reasoning (含 benchmark 分数信息)

Integration notes

This skill does not hard-code one provider API. Instead it prepares routing decisions and failure state so you can:

  • feed the selected model into your OpenClaw agent config
  • spawn the right sub-agent
  • call your own shell wrapper around provider endpoints
  • keep a machine-readable health snapshot for external automation

Install

Workspace-only

Copy this folder to:

<your-workspace>/skills/imperial-orchestrator

Global shared install

Copy this folder to:

~/.openclaw/skills/imperial-orchestrator

Safety

  • Never send secrets into prompts.
  • Keep auth probe payloads minimal.
  • Treat provider and token health as separate state from model quality.
  • Do not assume a model is safe to route merely because it appears in config.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

75.44%
按下载量换算1,165

安全审计

VirusTotal

可疑

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install imperial-orchestrator 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills