skillspec router installs and manages the SkillSpec-backed skill-router skill, which enables large skill catalogs without putting every skill description into the model context. The router intercepts agent requests, scores candidates from a local SQLite index, and loads a skill only when the route decision is use_skill. bypass and ambiguous decisions continue normal harness behavior.
Install / Update / Uninstall
router install
Installs the skill-router skill, enables router mode, installs managed Codex/Claude prompt guard hooks, makes routed skills explicit-only, builds the index, checks post-index preparedness, and writes router config.
router update
Backs up the router config, manifest, index, and managed router skill directories, rewrites the SkillSpec-backed router package in every recorded harness root, preserves enabled/disabled mode, refreshes managed guard hooks, reapplies matching visibility, and rebuilds the index only when enabled.
router uninstall
Restores visibility from the manifest, removes managed router guard hook entries, removes every managed router skill marker directory recorded by router config, removes config, and optionally removes the index.
--keep-index preserves the SQLite skill catalog after uninstall. Alias: router delete.
router enable / router disable
enable re-enables an installed router: refreshes managed files, installs guard hooks, makes routed skills explicit-only, rebuilds the index, checks preparedness, and warns to restart harnesses.
disable keeps the router installed but removes only managed guard hook entries, makes the router itself explicit-only, restores routed skills to implicit/default visibility, and writes enabled: false.
Guard Hook
router guard
Verifies router-first readiness from router config. When enabled and stale/missing index state is detected, reapplies router-managed visibility and rebuilds the index before reporting first_hop_ready.
Index Management
router index refresh
Repairs router-managed state after skill additions, removals, or metadata changes. When router config is present and enabled, reapplies explicit-only native controls across roots (preserving an enabled durable-executor as implicit), rebuilds the index, and reports preparedness.
router index status
Compares the index against current roots and reports new, changed, missing, stale, and updated-at state. New and changed entries include whether they are prose-only or SkillSpec-backed. Prose-only entries include conversion advice.
Policy Management
Router policy is stored in the same SQLite database as the skill catalog. Policies are local, auditable, and provider-neutral.router policy init/list/show/get
get returns one profile or rule by ID. Use it before editing a preference policy so existing predicates, order, and targets are preserved.
router policy set-profile
Creates or updates a routing profile.
--active sets the profile as the active policy profile. --strict makes policy rules the only gate (no fallback to base routing).
router policy set-rule
Creates or replaces a preference rule.
Always run
policy get <id> before editing an existing rule to preserve existing predicates.
router policy remove-rule
router policy explain
Runs the router with the named or active profile and returns the same route report with matched policy rules and score changes.
router profile status/apply/clear
Shows, activates, or clears the active router policy profile in SQLite.
After any router operation that changes the skill set or visibility, restart active harness sessions so the updated router skill and index take effect.
Related commands
skillspec index— Build a standalone SQLite skill catalog.skillspec route— Query the skill catalog for a given task.skillspec visibility plan/apply/restore— Manage harness-native skill visibility independently of the router.skillspec status— View router, durable-executor, and skill installation state.