<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Surendra Ganne</title>
    <description>The latest articles on DEV Community by Surendra Ganne (@surendra_ganne_4c975a33cd).</description>
    <link>https://dev.to/surendra_ganne_4c975a33cd</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4270172%2F174554ee-93cf-4ad5-9760-5df2c4cdff6f.jpg</url>
      <title>DEV Community: Surendra Ganne</title>
      <link>https://dev.to/surendra_ganne_4c975a33cd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/surendra_ganne_4c975a33cd"/>
    <language>en</language>
    <item>
      <title>I had five code reviewers installed in Claude Code. Here's how I got it to ask which one.</title>
      <dc:creator>Surendra Ganne</dc:creator>
      <pubDate>Sat, 28 Nov 2026 13:34:57 +0000</pubDate>
      <link>https://dev.to/surendra_ganne_4c975a33cd/i-had-five-code-reviewers-installed-in-claude-code-heres-how-i-got-it-to-ask-which-one-414c</link>
      <guid>https://dev.to/surendra_ganne_4c975a33cd/i-had-five-code-reviewers-installed-in-claude-code-heres-how-i-got-it-to-ask-which-one-414c</guid>
      <description>&lt;p&gt;My Claude Code setup grew the way most do. I'd install a skill pack, then another, then copy a few&lt;br&gt;
community skills into &lt;code&gt;~/.claude/skills&lt;/code&gt;. One day I counted: five skills that review code, three that debug,&lt;br&gt;
a handful that plan.&lt;/p&gt;

&lt;p&gt;When I said &lt;em&gt;"review this PR before I merge it"&lt;/em&gt;, Claude picked one of the five. Which one depended on a&lt;br&gt;
one-line &lt;code&gt;description&lt;/code&gt; in each skill's frontmatter, and I couldn't predict it. Sometimes it picked none and&lt;br&gt;
did the review itself.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Switchboard&lt;/strong&gt;, a Claude Code plugin that does one thing: when several installed skills fit the&lt;br&gt;
task in front of you, it shows you the best two or three, each with a one-line reason, and lets you pick.&lt;/p&gt;

&lt;p&gt;It's local only: Python standard library, no network calls, no API keys, no telemetry. MIT licensed.&lt;br&gt;
Repo: &lt;a href="https://github.com/surenganne/switchboard" rel="noopener noreferrer"&gt;https://github.com/surenganne/switchboard&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This post covers installing it, your first routed skill, and how the ranking actually decides, with the real&lt;br&gt;
scoring code.&lt;/p&gt;
&lt;h2&gt;
  
  
  Who this is for (and who it isn't)
&lt;/h2&gt;

&lt;p&gt;It's for you if you've installed several skill or plugin packs and they overlap. If you have a handful of skills&lt;br&gt;
that each do something different, Switchboard has nothing to rank and stays silent. You don't need it.&lt;/p&gt;
&lt;h2&gt;
  
  
  1. Install
&lt;/h2&gt;

&lt;p&gt;You need Claude Code and &lt;code&gt;python3&lt;/code&gt; 3.9 or newer on your &lt;code&gt;PATH&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude plugin marketplace add surenganne/switchboard
claude plugin install switchboard@switchboard
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Restart Claude Code so the plugin's hooks load.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Profile your skills (one time)
&lt;/h2&gt;

&lt;p&gt;Inside Claude Code, run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/switchboard:profile
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At session start, Switchboard has already scanned your user, project and enabled-plugin skills, commands&lt;br&gt;
and subagents, and fingerprinted each one. Now Claude reads each skill's &lt;strong&gt;full files&lt;/strong&gt;, not just the&lt;br&gt;
one-liner, and writes a short profile in a fixed format: category, role, what it works on, focus, depth,&lt;br&gt;
cost and stack.&lt;/p&gt;

&lt;p&gt;Profiling costs tokens, so it tells you the count and a rough estimate and asks before it starts:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Switchboard has 12 skills to profile (~36k tokens, one subagent per batch of about 20).
  ● Profile all 12
  ○ Not now
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(Your numbers will differ. This is the format.)&lt;/p&gt;

&lt;p&gt;Each profile is a small JSON file in &lt;code&gt;~/.switchboard/profiles/&lt;/code&gt;. Here's a real one for a debugging skill:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"superpowers:systematic-debugging"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"categories"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"debugging"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"does"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Four-phase debugging process that requires finding the root cause before any fix: investigate, compare patterns, test a hypothesis, then fix."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"targets"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"files"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"repo"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"focus"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"correctness"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"reliability"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"depth"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"thorough"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"cost"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"single-pass"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"stack"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"any"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"best_for"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"bugs and test failures"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"flaky tests and unexpected behavior"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"after failed quick fixes"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"not_for"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"new feature design"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"code review"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A validator accepts only known fields, values from fixed lists and short text, so a skill's own wording&lt;br&gt;
can't steer the router. You only pay this cost once. Later sessions re-profile only skills whose text has&lt;br&gt;
changed, for example after a plugin update.&lt;/p&gt;

&lt;p&gt;To see what it found:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/switchboard:status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Switchboard knows 160 entries (86 skills, 4 commands, 70 agents): 160 profiled, 0 waiting.
Task areas with overlapping skills: code-review, debugging, docs, planning, testing, ui-design.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Your first routed skill
&lt;/h2&gt;

&lt;p&gt;Now just work normally. Ask:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;review this PR before I merge it&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;With three code reviewers installed, you get something like this (Claude words it in its own way):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Several installed skills fit this. Which one?

  1. review (recommended)       Pre-landing PR review for SQL safety, trust boundaries and side effects.
                                You chose this last time.
  2. ecc:code-review            Broad quality, security and maintainability pass over the diff.
  3. ponytail:ponytail-review   Flags over-engineering and code that should not exist.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There's also a "no skill, do it directly" option if you'd rather Claude just do it.&lt;/p&gt;

&lt;p&gt;Pick one and Claude runs that skill. Your pick is saved to &lt;code&gt;~/.switchboard/choices.jsonl&lt;/code&gt; as one line of&lt;br&gt;
task features and skill ids. &lt;strong&gt;Your prompt is never stored:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"date"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-12"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"category"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"code-review"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"targets"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"pr"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"focus"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"correctness"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"security"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"stack"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"python"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"depth"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"cost"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"offered"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"user:review"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"ecc:code-review"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"ponytail:ponytail-review"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"chosen"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"user:review"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three things worth knowing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It only asks when it matters.&lt;/strong&gt; If one skill clearly fits, Claude uses it and tells you which.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Typing the skill yourself skips it.&lt;/strong&gt; If your message contains &lt;code&gt;/review&lt;/code&gt;, Switchboard never routes or
blocks that skill.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It holds the Skill tool until you've chosen.&lt;/strong&gt; A PreToolUse hook blocks the Skill tool until a choice is
recorded. It does this at most twice per 10 minutes, so an agent that can't ask you never gets stuck.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. How the ranking decides
&lt;/h2&gt;

&lt;p&gt;This is the part I cared most about getting right, so here it is in detail.&lt;/p&gt;

&lt;p&gt;When Claude is about to use a skill in an area where several profiled skills overlap, it describes the task&lt;br&gt;
in the same fixed format (category, role, targets, focus, stack) and calls Switchboard's local &lt;code&gt;route&lt;/code&gt; tool.&lt;br&gt;
From there it's plain Python in &lt;code&gt;switchboard/route.py&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: filter.&lt;/strong&gt; Only skills whose profile lists the task's category, such as &lt;code&gt;code-review&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: group.&lt;/strong&gt; Skills whose &lt;em&gt;role&lt;/em&gt; matches the task go first. The default role is &lt;code&gt;performs&lt;/code&gt;, meaning the&lt;br&gt;
skill does the task. &lt;code&gt;assists&lt;/code&gt; is for help around a task, such as answering review comments. Within each role&lt;br&gt;
group, a skill built only for other languages sorts below the rest. A Kotlin reviewer won't beat a general&lt;br&gt;
reviewer on a Python task.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: score.&lt;/strong&gt; Fixed weights:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="no"&gt;W_TARGET&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;W_FOCUS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;W_STACK&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;W_DEPTH&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;W_COST&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Targets and focus are scored as &lt;em&gt;the share of the task's tags the skill covers&lt;/em&gt;, so a skill that matches part&lt;br&gt;
of the task ranks below one that matches all of it. A profile that lists more than three tags in a field has&lt;br&gt;
that field scaled down, so stuffing tags can't buy a top rank:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;_fit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;task_vals&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;prof_vals&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;prof&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;_list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;task_vals&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prof_vals&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;task&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;prof&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mf"&gt;0.0&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;task&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;prof&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nb"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;1.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;FULL_TAGS&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prof&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Stack, depth and cost add 1 each when they match.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: break ties.&lt;/strong&gt; Your past picks come right after score in the sort key. That means they &lt;strong&gt;only break&lt;br&gt;
ties&lt;/strong&gt; between equal scores and never lift a weaker fit above a better one. After that, the lighter skill&lt;br&gt;
(single-pass before multi-agent) and the more focused skill win.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;route&lt;/code&gt; returns up to 10 candidates. Claude offers the best 2–3 by their &lt;code&gt;best_for&lt;/code&gt; / &lt;code&gt;not_for&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;
  
  
  Try it yourself
&lt;/h3&gt;

&lt;p&gt;You don't need Claude Code to see the ranker work. From a checkout:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/surenganne/switchboard.git &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd&lt;/span&gt; switchboard
python3 - &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="s1"&gt;'EOF'&lt;/span&gt;
from switchboard.route import route

def p&lt;span class="o"&gt;(&lt;/span&gt;targets, focus, stack, &lt;span class="nv"&gt;depth&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"thorough"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;:
    &lt;span class="nb"&gt;return&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"categories"&lt;/span&gt;: &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"code-review"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;, &lt;span class="s2"&gt;"role"&lt;/span&gt;: &lt;span class="s2"&gt;"performs"&lt;/span&gt;, &lt;span class="s2"&gt;"targets"&lt;/span&gt;: targets,
            &lt;span class="s2"&gt;"focus"&lt;/span&gt;: focus, &lt;span class="s2"&gt;"stack"&lt;/span&gt;: stack, &lt;span class="s2"&gt;"depth"&lt;/span&gt;: depth, &lt;span class="s2"&gt;"cost"&lt;/span&gt;: &lt;span class="s2"&gt;"single-pass"&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt;

profiles &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"user:review"&lt;/span&gt;:              p&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"pr"&lt;/span&gt;, &lt;span class="s2"&gt;"diff"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;, &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"security"&lt;/span&gt;, &lt;span class="s2"&gt;"correctness"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;, &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"any"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;,
    &lt;span class="s2"&gt;"ecc:code-review"&lt;/span&gt;:          p&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"diff"&lt;/span&gt;, &lt;span class="s2"&gt;"files"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;, &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"correctness"&lt;/span&gt;, &lt;span class="s2"&gt;"security"&lt;/span&gt;, &lt;span class="s2"&gt;"maintainability"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;, &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"any"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;,
    &lt;span class="s2"&gt;"ponytail:ponytail-review"&lt;/span&gt;: p&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"diff"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;, &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"simplicity"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;, &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"any"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;, &lt;span class="nv"&gt;depth&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"quick"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;,
    &lt;span class="s2"&gt;"kt:kotlin-review"&lt;/span&gt;:         p&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"pr"&lt;/span&gt;, &lt;span class="s2"&gt;"diff"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;, &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"correctness"&lt;/span&gt;, &lt;span class="s2"&gt;"security"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;, &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"kotlin"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;,
&lt;span class="o"&gt;}&lt;/span&gt;
inventory &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;k: &lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"source"&lt;/span&gt;: k.split&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;":"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;0&lt;span class="o"&gt;]&lt;/span&gt;, &lt;span class="s2"&gt;"name"&lt;/span&gt;: k.split&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;":"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;1&lt;span class="o"&gt;]&lt;/span&gt;, &lt;span class="s2"&gt;"kind"&lt;/span&gt;: &lt;span class="s2"&gt;"skill"&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; k &lt;span class="k"&gt;in&lt;/span&gt; profiles&lt;span class="o"&gt;}&lt;/span&gt;
task &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"category"&lt;/span&gt;: &lt;span class="s2"&gt;"code-review"&lt;/span&gt;, &lt;span class="s2"&gt;"targets"&lt;/span&gt;: &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"pr"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;, &lt;span class="s2"&gt;"focus"&lt;/span&gt;: &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"correctness"&lt;/span&gt;, &lt;span class="s2"&gt;"security"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;, &lt;span class="s2"&gt;"stack"&lt;/span&gt;: &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"python"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; c &lt;span class="k"&gt;in&lt;/span&gt; route&lt;span class="o"&gt;(&lt;/span&gt;task, profiles, inventory, &lt;span class="nv"&gt;past&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"chosen"&lt;/span&gt;: &lt;span class="s2"&gt;"user:review"&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"candidates"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;:
    print&lt;span class="o"&gt;(&lt;/span&gt;f&lt;span class="s1"&gt;'{c["id"]:28} score={c["score"]}  past_choices={c.get("past_choices", 0)}'&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
EOF
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;user:review                  score=6.0  past_choices=1
ecc:code-review              score=3.0  past_choices=0
ponytail:ponytail-review     score=1.0  past_choices=0
kt:kotlin-review             score=5.0  past_choices=0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here's why that order is right:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;user:review&lt;/code&gt; covers the task's &lt;code&gt;pr&lt;/code&gt; target (3) and both focus tags (2), and fits any stack (1). Total 6.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ecc:code-review&lt;/code&gt; doesn't list &lt;code&gt;pr&lt;/code&gt;, so it gets 0 for targets. It covers both focus tags (2) and fits any
stack (1). Total 3.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;kt:kotlin-review&lt;/code&gt; scores 5, higher than &lt;code&gt;ecc&lt;/code&gt;, but it's Kotlin-only on a Python task, so it sorts to the
bottom of its role group.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The profiles above are hand-written for the demo. In real use Claude writes them from each skill's files.&lt;/p&gt;

&lt;h3&gt;
  
  
  What's deterministic and what isn't
&lt;/h3&gt;

&lt;p&gt;I want to be precise here. The &lt;strong&gt;ranking&lt;/strong&gt; is deterministic: the same profiles and the same task description&lt;br&gt;
always give the same order. But Claude still writes the profiles and describes each task, so what goes into&lt;br&gt;
the ranker can vary. And you make the final pick. I'd call it "predictable ranking you can inspect", not&lt;br&gt;
"deterministic routing".&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Keeping it honest over time
&lt;/h2&gt;

&lt;p&gt;Two commands I use weekly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;/switchboard:audit&lt;/code&gt; lists task types where you keep passing over the top pick, so you can see which
profiles are probably wrong:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  - debugging · files · correctness: top pick passed over 3 times; you chose superpowers:systematic-debugging.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;/switchboard:hygiene&lt;/code&gt; suggests plugins you haven't used (once 30 days are logged) and estimates the
context tokens each costs in the skill listing. It doesn't turn anything off. You do that with &lt;code&gt;/plugin&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There's also &lt;code&gt;/switchboard:report&lt;/code&gt;, which writes a self-contained HTML report of your picks to&lt;br&gt;
&lt;code&gt;~/.switchboard/report.html&lt;/code&gt;, and &lt;code&gt;/switchboard:forget&lt;/code&gt; to delete your history.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits (read these before you install)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Claude Code only, for now.&lt;/li&gt;
&lt;li&gt;It can't &lt;em&gt;force&lt;/em&gt; Claude to call it. The hook holds the Skill tool (and, in the optional &lt;code&gt;primary&lt;/code&gt; mode,
the first Edit/Write/Agent call) until a choice is recorded.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Bash&lt;/code&gt; isn't gated.&lt;/li&gt;
&lt;li&gt;Deciding whether a prompt falls in an overlapping area is a keyword guess.&lt;/li&gt;
&lt;li&gt;MCP tools and hooks aren't routed. Only skills, commands and subagents are.&lt;/li&gt;
&lt;li&gt;Profiling spends tokens once, plus a little each time a skill changes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Privacy
&lt;/h2&gt;

&lt;p&gt;Everything lives in &lt;code&gt;~/.switchboard/&lt;/code&gt; (directories 0700, files 0600). No prompt text and no code are stored.&lt;br&gt;
There are no network imports in the plugin. To stop recording, put &lt;code&gt;{"record_choices": false}&lt;/code&gt; in&lt;br&gt;
&lt;code&gt;~/.switchboard/settings.json&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Uninstall
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude plugin uninstall switchboard@switchboard
rm -rf ~/.switchboard
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;If you have overlapping skills and try it, I'd like to hear where it ranks the wrong skill first. That's the&lt;br&gt;
most useful bug report. Repo, issues and the full README: &lt;a href="https://github.com/surenganne/switchboard" rel="noopener noreferrer"&gt;https://github.com/surenganne/switchboard&lt;/a&gt;&lt;/p&gt;

</description>
      <category>claude</category>
      <category>ai</category>
      <category>productivity</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
