agentsclimarketplace

Router

Skill OctavianTocan/router

Route between your installed Codex skills and chain them into back-to-back workflows. Use when the user asks which skill to use, wants to pick or compare skills, asks for their most-used or top skills / skill usage stats, says "route this", "what skill should I use", "run the <name> workflow", or wants to define or run a multi-skill sequence like brainstorming → writing-plans → executing-plans.From its SKILL.md

Install
npx -y skills add OctavianTocan/router

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.8 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

router

A meta-skill that helps you navigate your own skill library. It tracks which skills you actually invoke (via a PostToolUse hook into a local SQLite DB), ranks candidate skills for a request, and chains skills into named, declarative workflows the way superpowers chains brainstorming → planning → execution.

Variables

  • DB_PATH: <skill-dir>/data/usage.db by default — the script resolves its own install location via __file__, so the DB lives wherever the skill is installed. Override with the ROUTER_DB env var.
  • CLI: python3 <skill-dir>/scripts/router.py <subcommand> (stdlib only)
  • WORKFLOWS_DIR: <skill-dir>/workflows/ — resolved at runtime; one *.md per workflow.
  • HOOK_SETTINGS: $HOME/.claude/settings.json by default; override with --settings on install-hook.

The default install location is $HOME/.claude/skills/router/ (see README). If you install elsewhere, swap that path into the commands above.

How It Works

A PostToolUse hook on the Skill tool logs every skill invocation (name, args, session, timestamp) into SQLite. stats aggregates that log; pick blends lexical relevance + usage frequency + recency into a shortlist that you choose from; workflows are declarative markdown files the agent walks step by step, announcing each handoff.

install-hook embeds the absolute path to the script at install time, so the hook works no matter where the skill is installed.

Arguments

Invoke as /router <command> [arguments]. Parse the text after /router: the first whitespace-delimited token is the command; everything after it is that command's arguments (free text and/or --flags). --flags pass straight through to the CLI.

InvocationCommandArguments
/router stats [--days N] [--limit N]statsoptional window + cap
/router pick <request>pickfree-text task description (required)
/router run <workflow>runa workflow name from /router workflows
/router workflowsworkflowsnone
/router setupsetupnone

Defaults & aliases (apply before dispatching):

  • No command but free text follows (e.g. /router fix a flaky test) → treat the whole thing as pick <that text>.
  • No command and no text → show this Arguments table and stop.
  • Aliases: top / most-used / usagestats; recommend / choose / whichpick; listworkflows.
  • Unrecognized command → show the table and ask which they meant; do not guess.

Once the command and arguments are parsed, read the matching cookbook file, then execute it with those arguments.

Commands

CommandPurpose
/router setupInstall the usage hook + initialize the SQLite DB
/router statsList your most-used skills (all-time or a recent window)
/router pick <request>Recommend the best-fit skills for a request; you choose
/router workflowsList defined multi-skill workflows
/router run <workflow>Walk a named workflow step by step, with handoffs

Cookbook

Each command has a detailed step-by-step guide. Read the relevant cookbook file before executing a command.

CommandCookbookUse When
setupcookbook/setup.mdFirst-time install, or the hook/DB is missing or broken
statscookbook/stats.mdUser wants most-used / top skills or usage numbers
pickcookbook/pick.mdUser wants to choose a skill for a task, or "what should I use"
workflowscookbook/workflows.mdUser wants to list, run, or define a back-to-back workflow

When a user invokes a /router command, read the matching cookbook file first, then execute the steps.

Reference

Notes

  • The hook records skills invoked through the Skill tool in the main session, which includes skills you trigger with /slash (the agent routes those through the Skill tool). Counting starts when setup runs — there is no backfill.
  • Plugin skills (e.g. superpowers:brainstorming) are tracked by name even though their SKILL.md lives in the plugin cache rather than the scanned catalog roots; combine the file catalog with the live in-context skill list when picking.

What ships with it: 14 files

38.4 KB alongside SKILL.md, 1 of them executable

cookbook/

data/

references/

scripts/

workflows/

Keep looking

Skills are one crate of 326,401. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.