Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

knowledge-router

БесплатноЗапускает вложенные скриптыНе проверен

Route one question or source event through a supplied knowledge catalog to validated source, owner, escalation, and follow-up skill references. Use for…

runxhqот runxhq★ 106 звёзд на GitHub

Об этом скилле

Knowledge Router

Produce a validated retrieval and ownership route from a bounded source catalog. This skill decides where evidence should come from and who owns the answer; it does not answer the question or perform the follow-up operation.

knowledge-router resolves references inside an explicit knowledge catalog. Its deterministic validator rejects invented sources, owners, and skills.

Source catalog

Supply:

{
  "sources": [
    {"id": "auth-docs", "kind": "docs", "summary": "API authentication and key scopes"}
  ],
  "owners": [
    {"id": "security-team", "domains": ["authentication"]}
  ],
  "skills": [
    {"id": "research", "purpose": "Resolve a bounded source-backed question"}
  ]
}

Every selected reference must exist in the corresponding catalog collection. The owning host selects its maintained index and passes the relevant bounded neighborhood here once. Optional source locator fields may name local paths, URLs or provider references; they are data, never new read authority. Keep the exact input catalog with the result so its selected IDs can be resolved without rediscovering the index. This skill neither creates a shadow index nor reads the selected sources.

The route may return no follow-up skill when more context or manual review is the honest outcome. An owner recommendation must match an exact domain that owner declares in the catalog. If ownership is unknown, leave it null rather than assigning the closest team.

Procedure

  1. Match the question or event to supplied source summaries and owner domains.
  2. Propose the smallest source set needed to resolve the question.
  3. Select an owner only when the catalog supports the ownership relationship.
  4. Select a follow-up skill only when its declared purpose matches the next job.
  5. Use manual_review for consequential legal, billing, security, privacy, or destructive decisions—not merely because the topic belongs to those teams.
  6. Validate every source, owner, and skill reference, source-match consistency, declared owner domain and supplied selection limits deterministically.
  7. Send a refused proposal back with the validator's findings, for at most two revisions; the last refusal is the result.
  8. Return needs_more_context when no supported route exists.

route proposes through its propose method and validates in a script: a proposal the validator refuses goes back to propose as feedback: that proposal, the validator's reason and any references it named outside the catalog. Each revision is a fresh proposal from the same inputs plus that feedback. Selection limits that name an entry outside the catalog are the caller's to fix, so they are refused before any proposal is made. A proposal that fails as a call, rather than as a route, ends the run with its reason; only a refused route is revised. propose alone returns an unvalidated proposal; call route for a validated one.

Selection limits

constraints is a closed optional object. allowed_sources, allowed_owners and allowed_skills narrow selection to exact catalog IDs. An omitted list adds no restriction; an empty list allows none of that kind. excluded_sources removes exact sources even when an allowlist also includes them. Every policy reference must exist in this catalog. notes supplies advisory context; it is not an executable policy or authority grant. Unsupported constraint keys are rejected by input admission rather than echoed as enforced.

A valid source outside a declared limit still refuses. The result never converts a failed constraint or unverified ownership into a successful route. For needs_more_context, there are no selected sources, matches, owner or next skill. Each selected source must otherwise have exactly one matching entry.

Continue the route

Resolve selected IDs against the exact input catalog bound by validation.catalog_digest. Pass the original question, selected rows and their locators, relevant constraints and route rationale to the selected reader or research lane. For local repository evidence, prior-art can inspect the exact paths without broad rediscovery. For captured external evidence, use the normal source acquisition and research owners. Keep their actual evidence and answer separate from this route. No source was fetched, question answered, worker dispatched or message sent by a routed result.

Output

  • route: domain, rationale, and validated source references.
  • source_matches: validated source references and matching signals.
  • owner_recommendation: validated owner reference, rationale, and escalation posture, or null.
  • next_skill: validated skill reference and rationale, or null.
  • verdict: routed, needs_more_context, manual_review, or the deterministic validator's refused result for an invented reference.
  • validation: catalog digest inputs, invalid-reference findings, and result.

Inputs

  • question (required): question, event, or thread
Полный SKILL.md на GitHub

Установить knowledge-router в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

eval_queries.jsonevals/evals.jsonevals/files/allowed-owner.jsonevals/files/api-key-question-catalog.jsonevals/files/no-skills-allowed.jsonevals/files/only-source-excluded.jsonevals/files/owner-only-lease.jsonevals/files/owner-without-source.jsonknowledge-router.mjsknowledge-router.test.mjsmark.svgpackets/route.v1.schema.jsonreferences/catalog.mdreferences/mark-license.mdroute.mjsrun.yaml

FAQ

Что делает скилл knowledge-router?

Route one question or source event through a supplied knowledge catalog to validated source, owner, escalation, and follow-up skill references. Use for evidence discovery and ownership routing, not broad business-action fanout or answering the question itself.

Как установить скилл knowledge-router?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл knowledge-router запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить knowledge-router с