本文へ移動
cccskills
無料GitHub で公開

skill-routing

Match a user request to the right skill using trigger matching, project context, and conversation history. Score ambiguity 1–10 and resolve it using context signals or a single clarifying question. Load when project-orchestrator needs to route a request, or when multiple skills could match and the right one is unclear. Also triggers on "which skill should handle this", "route this request", "I'm not sure which skill to use", "disambiguate this", "skill routing". Called by project-orchestrator for request routing. For finding whether a skill exists for a capability, use skill-finder instead.

インストール方法を見る

含まれるファイル(3)

  • SKILL.md7.1 KB
  • references/examples.md2.1 KB
  • references/harness-symptoms.md1.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Skill Routing

You are a Skill Router. Given a user request, project state, and conversation context, you determine which skill to invoke. When multiple skills match, you score the ambiguity and resolve it — either silently via context or by asking one targeted question.

Hard Rules

Never guess when ambiguity is ≥ 7. Ask exactly one disambiguation question. Never ask more than one question. Frame it as a choice between the top 2 candidates. Always read skill descriptions before routing. Do not rely on skill names alone. Always log the routing decision — skill chosen, ambiguity score, and how it was resolved.


Workflow

Step 1 — Discover Candidate Skills

Do NOT use a hardcoded routing table. Call skill-finder with the user's request to discover all candidate skills from the live library.

  • 1 candidate → return it. Done. Ambiguity = 1.
  • 0 candidates → skill-finder found nothing. Return no-match to the caller.
  • 2+ candidates → proceed to Step 2.

Step 1b — Harness symptom pre-route

Before scoring ambiguity, read references/harness-symptoms.md.

If the user describes agent misbehavior (not app bugs), prepend harness-engineering to candidates and lower ambiguity when manifest is missing or symptoms match.

If project-setup just completed in this session → route harness-generation next unless user opted out.

Step 2 — Score Ambiguity (1–10)

Rate how unclear the routing is:

ScoreMeaningCriteria
1–3LowOne candidate clearly dominates — better trigger match, correct phase, or natural next step
4–6MediumTwo candidates are plausible but context signals can resolve
7–10HighTwo+ candidates are equally plausible even after reading context

Factors that RAISE the score: request uses generic words ("plan", "review", "improve"), no project artefacts to anchor phase, request is short/vague. Factors that LOWER the score: request uses a skill's exact trigger phrase, project phase clearly narrows candidates, conversation history shows a chain in progress.

Step 3 — Resolve Ambiguity

Score 1–3: Route to the best match. No question needed.

Score 4–6: Read these context signals to resolve silently:

  1. Project phase — what artefacts exist narrows the candidates
  2. Conversation history — what the user just finished suggests the next step
  3. Trigger precision — does the phrasing match one skill's triggers more exactly?
  4. Upstream/downstream — is one skill the natural successor of the last completed skill?

Pick the best fit. Note the runner-up in the routing log.

Score 7–10: Ask ONE disambiguation question as a binary choice:

"This could be [skill-A] ([one-line purpose]) or [skill-B] ([one-line purpose]). Which fits?"

Route based on the answer.

Step 4 — Check Pre-requisites

Before returning the routed skill, verify its pre-req column:

  • Pre-req missing → tell the caller which skill produces the pre-req
  • Pre-req exists → return the skill

Step 5 — Return Routing Decision

Return to the calling skill (usually project-orchestrator):

Routed: [skill-name]
Ambiguity: N/10
Candidates: [skill-a, skill-b, ...]
Resolved by: [exact-match | phase-context | conversation-chain | upstream-downstream | user-answer]
Pre-req: [met | missing — need X first]

Gotchas

  • "Review" is the most ambiguous word — "review this code" → code-review-crsp, "review changes for context" → not a review skill, "review the plan" → adversarial-hat. Always check the object being reviewed.
  • "Plan" is similarly overloaded — "plan this change" → problem-to-plan, "plan implementation" → implementation-plan, "plan this out" → process-decomposer. The verb before "plan" disambiguates.
  • Return only concrete, invokable skill names. Caller-owned labels like "Phase recommendation" are not valid routing results.
  • A skill scoring high on trigger match but failing the pre-req check is NOT the right skill to invoke directly — route to the pre-req skill first.
  • When project-orchestrator calls you, return fast. Routing should add seconds, not minutes.
  • Agent complaints are usually harness, not debug. "Agent keeps failing" → harness-engineering, not debug-and-fix, unless the user names a specific code bug.

Example

<examples> <example> <input>User says: "Help me think through this problem"</input> <output> Candidates: deep-thinking, brainstorming, socratic Ambiguity: 5/10

Context signals:

  • Project phase: specs exist, PRD exists → past design phase
  • Conversation: user just finished implementation, hit a wall
  • Trigger match: "think through" matches deep-thinking and brainstorming equally
  • Upstream: post-implementation thinking → deep-thinking (not brainstorming, which is pre-implementation)

Routed: deep-thinking Ambiguity: 5/10 Candidates: deep-thinking, brainstorming, socratic Resolved by: upstream-downstream (post-implementation context) Pre-req: met </output> </example> </examples>


Common Rationalizations

ExcuseReality
"Obvious which skill"Obvious to user ≠ obvious to router at score 6/10.
"Invoke both skills"Double invocation wastes tokens and causes conflicts.
"Skip ambiguity score"Score drives whether to ask — skipping hides misfires.
"Library-first is dogma"Library-first is default — project skills win when present.
"Route to general-purpose"Named skills encode workflows general chat skips.

Verification

  • Ambiguity score 1-10 stated when multiple skills match
  • Winner skill named with one-line rationale
  • User asked to disambiguate when score ≥7
  • Project-local skill preferred over global when both match

Red Flags

  • Ambiguous review routed without disambiguating code vs UI
  • Plan request sent to wrong planner skill for intent
  • Non-invocable label returned instead of concrete skill name
  • Multiple candidates returned without disambiguation step

Prune Log

Last pruned: 2026-07-04

  • No changes — citation audit passed; content current (improve-skills full pass 2026-07-04)

Impact Report

Routing complete: [request summary]
Skill routed: [skill-name]
Ambiguity: N/10
Candidates considered: [list]
Resolved by: [method]
Question asked: [yes — question text | no]

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Put on the adversarial hat and systematically attack any document, plan, strategy, or idea to expose its weakest points before commitment. Structured devil's advocate with red team rigour — not pessimism, but evidence-based critique across three phases: diagnostic (are claims accurate?), creative (is the problem artificially constrained?), challenge (are solutions robust?). Load when the user asks to stress test a document, red team this plan, poke holes in this, devil's advocate this, challenge my assumptions, or when product-soul, brainstorming, prd-writing, or inversion calls for adversarial review. Also triggers on "what am I missing", "what could kill this", "find the flaws", or "critique this rigorously".

日本語の概要は準備中です。原文の説明を表示しています。

dvy1987/agent-loom32026年8月8日 更新

Design execution structure for decomposed processes: single agent or multi-agent topology. Load when user says "design an agent for this", "what agent structure do I need", "architect this", "should this be multi-agent", "what's the right execution structure", "agent topology", "how should agents be organized". Takes process-decomposer output as primary input. If triggered directly without a process entry, calls process-decomposer first.

日本語の概要は準備中です。原文の説明を表示しています。

dvy1987/agent-loom32026年8月8日 更新

Internal skill. Called by setup-evaluation after a PASS. Launches agents from a validated architecture spec using Claude Code / Ampcode native parallelism (Task tool). Does NOT generate scripts or SDK code — it outputs structured spawn instructions that the platform executes natively. Never invoked directly by the user. Never launches without a setup-evaluation PASS.

日本語の概要は準備中です。原文の説明を表示しています。

dvy1987/agent-loom32026年8月8日 更新

Sync library skills from an agent-loom upstream repo into this project's .agents/skills while preserving project-local and forked skills. Load when the user asks to sync agent-loom, update skills from upstream, rsync from ../agent-loom, pull new library skills, upgrade installed skills, or refresh the .agents folder without losing custom project skills. Also triggers on "sync skills from agent-loom", "update my agent skills", "pull skill library updates", or "merge agent-loom improvements into this repo".

日本語の概要は準備中です。原文の説明を表示しています。

dvy1987/agent-loom32026年8月8日 更新

Instrument a shipped product's AI agents with tracing and observability so you can see what they did, why outputs happened, and what each run cost. Plain-language primer plus free-tier-first backend selection (Langfuse, Phoenix, LangSmith, Braintrust) and OpenTelemetry/OpenInference instrumentation. Load when the user asks to add observability, add tracing, instrument my agents, see what my agent is doing in production, set up Langfuse or Phoenix or LangSmith, debug why my agent gave a bad answer, or track LLM cost per request. Also fires when agent-system-architecture or setup-evaluation requires an observability plan for an agent-chain product. NOT for tracing the coding agent itself — that is run-trace. Precondition for runtime-learning-loop.

日本語の概要は準備中です。原文の説明を表示しています。

dvy1987/agent-loom32026年8月8日 更新

Run a structured retrospective after development-phase runs of your product's agents — interview the owner in plain language about what went well and poorly, draft ranked improvement hypotheses, then design and run small n=1/n=2 experiments with pre-declared success criteria, guardrails, stop conditions, and a cost/ROI kill-switch. Load when the user says how did that run go, retro this run, the agent output was bad, what should we improve, draft hypotheses, run a small experiment, or after repeated dev runs of an agentic system produce uneven quality. Priority: output quality over performance over cost, each with diminishing-returns stops. NOT a product A/B test (experimentation), NOT coding-agent harness repair (harness-evolution), NOT production-scale learning (runtime-learning-loop).

日本語の概要は準備中です。原文の説明を表示しています。

dvy1987/agent-loom32026年8月8日 更新

dvy1987 のスキルをすべて見る

このスキルの問題を報告する