跳到正文
cccskills
免费在 GitHub 公开

secretary-routing

Routes agent management tasks to the correct manager agent. Use when user requests agent creation, updates, audits, git operations, or verification.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md6.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Mandatory delegation directive (R010 Universal /tmp Script Bypass)

When this skill spawns a subagent via the Agent tool, the spawned prompt MUST include this directive verbatim (or equivalent):

ALL tool calls targeting .claude/ paths MUST go through /tmp/*.sh script via Bash. This includes read-only measurement (sed/cat/wc/ls/grep), Write, Edit. Read tool is exempt. Direct Write/Edit/Bash on .claude/ triggers user approval prompts that block unattended automation. See R010 for the full pattern.

This directive is preserved inline because Agent-tool prompt synthesis can drop SKILL.md notes; inline mandatory directives survive (#1046 lesson).

Secretary Routing Skill

Purpose

Routes agent management tasks to the appropriate manager agent. This skill contains the coordination logic for orchestrating manager agents (mgr-creator, mgr-updater, mgr-supplier, mgr-gitnerd, mgr-sauron).

Manager Agents

AgentPurposeTriggers
mgr-creatorCreate new agents, skills, guides"create agent", "new agent", "create skill", "new skill", "create guide", "new guide"
mgr-updaterUpdate external agents"update agent", "sync"
mgr-supplierValidate dependencies"audit", "check deps"
mgr-gitnerdGit operations"commit", "push", "pr"
mgr-sauronR017 auto-verification"verify", "full check"
mgr-claude-code-bibleClaude Code spec compliance"spec check", "verify compliance"
sys-memory-keeperMemory operations"save memory", "recall", "memory search"
sys-naggyTODO management"todo", "track tasks", "task list"

Routing Decision (Priority Order)

Before routing via Task tool, evaluate Agent Teams eligibility first:

Self-check: Does this task need 3+ agents, shared state, or inter-agent communication? If yes, prefer Agent Teams over Task tool. See R018 for the full decision matrix.

ScenarioPreferred
Single manager taskTask Tool
Batch agent creation (3+)Agent Teams
Multi-round verification (sauron)Task Tool
Agent audit + fix cycleAgent Teams

Command Routing

User Input → Routing → Manager Agent

create   → mgr-creator
create skill → mgr-creator
create guide → mgr-creator
update   → mgr-updater
audit    → mgr-supplier
git      → mgr-gitnerd
verify   → mgr-sauron
spec     → mgr-claude-code-bible
memory   → sys-memory-keeper
todo            → sys-naggy
improve-report  → omcustom-improve-report (skill invocation)
auto-improve    → omcustom-auto-improve (skill invocation)
batch           → multiple (parallel)

improve-report keywords: "improve-report", "improvement", "개선", "개선 리포트", "improve" → invoke omcustom-improve-report skill (read-only, no agent delegation needed)

auto-improve keywords: "auto-improve", "자동 개선", "개선 적용", "apply improvements", "improvement suggestions" → invoke omcustom-auto-improve skill (worktree isolation, sauron verification, PR creation)

Ontology-RAG Enrichment (R019)

If get_agent_for_task MCP tool is available, call it with the original query and inject suggested_skills into the agent prompt. Skip silently on failure.

Step 4b: Wiki-RAG Enrichment

If the user's request is ambiguous or confidence is below 90%, query the wiki for additional context:

  1. Search wiki/index.yaml for pages matching the detected domain keywords
  2. Extract relevant agent/skill/guide recommendations from wiki pages
  3. Inject findings into the routing decision as supplementary signals
wiki-rag query: "{user_request}" → wiki pages → agent/skill/guide suggestions

Wiki-RAG enrichment is advisory — it supplements but does not override keyword matching. Skip silently if wiki/index.yaml doesn't exist.

Step 5: Soul Injection (R006)

If the selected agent has soul: true in frontmatter, read and prepend .claude/agents/souls/{agent-name}.soul.md content to the prompt. Skip silently if file doesn't exist.

Routing Rules

1. Single Task Routing

1. Parse user command and identify intent
2. Select appropriate manager agent
3. Spawn Task with selected agent role
4. Monitor execution
5. Report result to user

Permission Mode: When spawning agents via Agent tool, always pass mode: "bypassPermissions". The Agent tool default (acceptEdits) overrides agent frontmatter permissionMode, causing permission prompts during unattended execution.

2. Batch/Parallel Task Routing

When command requires multiple independent operations:

1. Break down into sub-tasks
2. Identify parallelizable tasks (max 4)
3. Spawn parallel Task instances
4. Aggregate results
5. Report summary to user

Sub-agent Model Selection

AgentRecommended ModelReason
mgr-creatorsonnetFile generation, balanced
mgr-updatersonnetExternal sync, web fetch
mgr-supplierhaikuFile scan, validation
mgr-gitnerdsonnetCommit message quality
mgr-sauronsonnetMulti-round verification
mgr-claude-code-biblesonnetSpec compliance checks
sys-memory-keepersonnetMemory operations, search
sys-naggyhaikuSimple TODO tracking

No Match Fallback

When no manager agent matches the request but the task is clearly management-related:

User Input → No matching manager agent
  ↓
Evaluate: Is this a specialized management/tooling task?
  YES → Delegate to mgr-creator with context:
        domain: detected tool/technology
        type: manager
        skills: auto-discover from .claude/skills/
  NO  → Ask user for clarification

Examples of dynamic creation triggers:

  • New CI/CD tool management (e.g., "ArgoCD 배포 관리해줘")
  • New monitoring tool setup (e.g., "Grafana 대시보드 관리")
  • Unfamiliar package manager operations

Usage

This skill is NOT user-invocable. It is automatically triggered when the main conversation detects agent management intent.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Pre-action boundary checking — validates agent tool calls against declared capabilities and task contracts

中文简介正在准备中。当前显示原文说明。

baekenough/second-brain152026年10月8日 更新

Auto-detect project context and optimize harness — deactivate unused agents/skills, suggest missing experts, generate project profile

中文简介正在准备中。当前显示原文说明。

baekenough/second-brain152026年10月8日 更新

Adversarial code review using attacker mindset — trust boundary, attack surface, business logic, and defense evaluation

中文简介正在准备中。当前显示原文说明。

baekenough/second-brain152026年10月8日 更新

Apache Airflow best practices for DAG authoring, testing, and production deployment

中文简介正在准备中。当前显示原文说明。

baekenough/second-brain152026年10月8日 更新

Alembic migration patterns for naming conventions, safety checks, expand-contract, env.py configuration, and CI integration

中文简介正在准备中。当前显示原文说明。

baekenough/second-brain152026年10月8日 更新

Pre-routing ambiguity analysis — scores request clarity and asks clarifying questions when needed (inspired by ouroboros)

中文简介正在准备中。当前显示原文说明。

baekenough/second-brain152026年10月8日 更新

查看 baekenough 的全部技能

报告此技能的问题