用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/oimiragieo/agent-studio --skill routing-architect-worker命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Agent frontmatter enhancements — disallowedTools, mcpServers scoping, fork_eligible field
Context management — pre-compact persistence, threshold alignment, microcompact/circuit breaker detection
Hook enhancements — updatedInput for bash safety prefixes, suppressOutput for verbose blocks, denial-based routing feedback
正在显示 SKILL.md
基于 SOC 职业分类
| name | routing-architect-worker |
| description | Implements hierarchical routing architecture (sub-routers, routing tables, hook updates) |
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
Use for features that build the hierarchical routing architecture: creating sub-router agent definitions, building the hierarchical routing table, updating hooks to support domain-based dispatch, and ensuring backward compatibility. Reference the design doc at .claude/designs/hierarchical-routing-architecture.md.
Read the feature description — it specifies which part of the hierarchy to build.
Read the design document — .claude/designs/hierarchical-routing-architecture.md is the authoritative design. Follow it exactly for domain groupings, agent assignments, and architecture.
Read existing patterns — Before creating new files or modifying existing ones:
.claude/agents/orchestrators/ for the agent definition pattern.claude/lib/routing/routing-table-core-map.cjs for the routing table pattern.claude/lib/routing/intent-classifier.cjs for the classification patternWrite tests FIRST (red) — For each component:
Implement (green) — Build the component following the design doc:
.md files in .claude/agents/orchestrators/ with YAML frontmatter, agent roster, disambiguation rules, and default gatewayrouting-table-hierarchical.cjs (additive, do NOT modify routing-table-core-map.cjs)process.env.HIERARCHICAL_ROUTING with default 'off'CRITICAL: Preserve all existing agents — Do NOT modify any file in .claude/agents/. Sub-routers are NEW files alongside existing orchestrator agents.
CRITICAL: Feature flag everything — All new code paths must be gated behind HIERARCHICAL_ROUTING=on. When off, behavior must be identical to pre-change.
Run tests — node --test tests/lib/routing/ and pnpm validate:routing.
Run backward compatibility check — With HIERARCHICAL_ROUTING=off, run pnpm test:framework to confirm no regressions.
{
"salientSummary": "Created 9 domain sub-router agent definitions in .claude/agents/orchestrators/. Each includes YAML frontmatter with Task tool, complete agent roster per design doc, default gateway agent, and disambiguation rules for overlapping specializations. Added 15 unit tests covering frontmatter validation, roster completeness, and disambiguation logic.",
"whatWasImplemented": "9 domain sub-router agent files: domain-router-web-frontend.md (5 agents), domain-router-backend.md (14 agents), domain-router-mobile.md (5 agents), domain-router-ai-ml.md (11 agents), domain-router-infra.md (10 agents), domain-router-security.md (8 agents), domain-router-arch-data.md (11 agents), domain-router-product.md (15 agents), domain-router-niche.md (7 agents). Total 86 domain agents assigned, all 109 agents reachable.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{
"command": "node --test tests/lib/routing/sub-router-agents.test.cjs",
"exitCode": 0,
"observation": "15 tests passing: 9 frontmatter checks, 9 roster completeness checks, 5 disambiguation checks"
},
{
"command": "pnpm validate:routing",
"exitCode": 0