{"slug": "i-had-five-code-reviewers-installed-in-claude-code-here-s-how-i-got-it-to-ask", "title": "I had five code reviewers installed in Claude Code. Here's how I got it to ask which one.", "summary": "A developer built Switchboard, an MIT-licensed Claude Code plugin that detects when multiple installed skills overlap on a task and presents the top two or three matches with one-line reasons so the user can choose, instead of letting Claude pick unpredictably from skill descriptions. The plugin scans user, project and plugin skills, commands and subagents, profiles each with a fixed-schema JSON file validated against known fields, and stores user choices locally with no network calls, API keys or telemetry.", "body_md": "My Claude Code setup grew the way most do. I'd install a skill pack, then another, then copy a few\n\ncommunity skills into `~/.claude/skills`. One day I counted: five skills that review code, three that debug,\n\na handful that plan.\n\nWhen I said *\"review this PR before I merge it\"*, Claude picked one of the five. Which one depended on a\n\none-line `description` in each skill's frontmatter, and I couldn't predict it. Sometimes it picked none and\n\ndid the review itself.\n\nSo I built **Switchboard**, a Claude Code plugin that does one thing: when several installed skills fit the\n\ntask in front of you, it shows you the best two or three, each with a one-line reason, and lets you pick.\n\nIt's local only: Python standard library, no network calls, no API keys, no telemetry. MIT licensed.\n\nRepo: [https://github.com/surenganne/switchboard](https://github.com/surenganne/switchboard)\n\nThis post covers installing it, your first routed skill, and how the ranking actually decides, with the real\n\nscoring code.\n\nIt's for you if you've installed several skill or plugin packs and they overlap. If you have a handful of skills\n\nthat each do something different, Switchboard has nothing to rank and stays silent. You don't need it.\n\nYou need Claude Code and `python3` 3.9 or newer on your `PATH`.\n\n```\nclaude plugin marketplace add surenganne/switchboard\nclaude plugin install switchboard@switchboard\n```\n\nRestart Claude Code so the plugin's hooks load.\n\nInside Claude Code, run:\n\n```\n/switchboard:profile\n```\n\nAt session start, Switchboard has already scanned your user, project and enabled-plugin skills, commands\n\nand subagents, and fingerprinted each one. Now Claude reads each skill's **full files**, not just the\n\none-liner, and writes a short profile in a fixed format: category, role, what it works on, focus, depth,\n\ncost and stack.\n\nProfiling costs tokens, so it tells you the count and a rough estimate and asks before it starts:\n\n```\nSwitchboard has 12 skills to profile (~36k tokens, one subagent per batch of about 20).\n  ● Profile all 12\n  ○ Not now\n```\n\n(Your numbers will differ. This is the format.)\n\nEach profile is a small JSON file in `~/.switchboard/profiles/`. Here's a real one for a debugging skill:\n\n```\n{\n  \"id\": \"superpowers:systematic-debugging\",\n  \"categories\": [\"debugging\"],\n  \"does\": \"Four-phase debugging process that requires finding the root cause before any fix: investigate, compare patterns, test a hypothesis, then fix.\",\n  \"targets\": [\"files\", \"repo\"],\n  \"focus\": [\"correctness\", \"reliability\"],\n  \"depth\": \"thorough\",\n  \"cost\": \"single-pass\",\n  \"stack\": [\"any\"],\n  \"best_for\": [\"bugs and test failures\", \"flaky tests and unexpected behavior\", \"after failed quick fixes\"],\n  \"not_for\": [\"new feature design\", \"code review\"]\n}\n```\n\nA validator accepts only known fields, values from fixed lists and short text, so a skill's own wording\n\ncan't steer the router. You only pay this cost once. Later sessions re-profile only skills whose text has\n\nchanged, for example after a plugin update.\n\nTo see what it found:\n\n```\n/switchboard:status\nSwitchboard knows 160 entries (86 skills, 4 commands, 70 agents): 160 profiled, 0 waiting.\nTask areas with overlapping skills: code-review, debugging, docs, planning, testing, ui-design.\n```\n\nNow just work normally. Ask:\n\nreview this PR before I merge it\n\nWith three code reviewers installed, you get something like this (Claude words it in its own way):\n\n```\nSeveral installed skills fit this. Which one?\n\n  1. review (recommended)       Pre-landing PR review for SQL safety, trust boundaries and side effects.\n                                You chose this last time.\n  2. ecc:code-review            Broad quality, security and maintainability pass over the diff.\n  3. ponytail:ponytail-review   Flags over-engineering and code that should not exist.\n```\n\nThere's also a \"no skill, do it directly\" option if you'd rather Claude just do it.\n\nPick one and Claude runs that skill. Your pick is saved to `~/.switchboard/choices.jsonl` as one line of\n\ntask features and skill ids. **Your prompt is never stored:**\n\n```\n{\"date\": \"2026-11-12\", \"category\": \"code-review\", \"targets\": [\"pr\"], \"focus\": [\"correctness\", \"security\"], \"stack\": [\"python\"], \"depth\": null, \"cost\": null, \"offered\": [\"user:review\", \"ecc:code-review\", \"ponytail:ponytail-review\"], \"chosen\": \"user:review\"}\n```\n\nThree things worth knowing:\n\n`/review`, Switchboard never routes or\nblocks that skill.\nThis is the part I cared most about getting right, so here it is in detail.\n\nWhen Claude is about to use a skill in an area where several profiled skills overlap, it describes the task\n\nin the same fixed format (category, role, targets, focus, stack) and calls Switchboard's local `route` tool.\n\nFrom there it's plain Python in `switchboard/route.py`.\n\n**Step 1: filter.** Only skills whose profile lists the task's category, such as `code-review`.\n\n**Step 2: group.** Skills whose *role* matches the task go first. The default role is `performs`, meaning the\n\nskill does the task. `assists` is for help around a task, such as answering review comments. Within each role\n\ngroup, a skill built only for other languages sorts below the rest. A Kotlin reviewer won't beat a general\n\nreviewer on a Python task.\n\n**Step 3: score.** Fixed weights:\n\n```\nW_TARGET, W_FOCUS, W_STACK, W_DEPTH, W_COST = 3, 2, 1, 1, 1\n```\n\nTargets and focus are scored as *the share of the task's tags the skill covers*, so a skill that matches part\n\nof the task ranks below one that matches all of it. A profile that lists more than three tags in a field has\n\nthat field scaled down, so stuffing tags can't buy a top rank:\n\n``` php\ndef _fit(task_vals, prof_vals) -> float:\n    task, prof = set(_list(task_vals)), set(prof_vals or [])\n    if not task or not prof:\n        return 0.0\n    return len(task & prof) / len(task) * min(1.0, FULL_TAGS / len(prof))\n```\n\nStack, depth and cost add 1 each when they match.\n\n**Step 4: break ties.** Your past picks come right after score in the sort key. That means they **only break ties** between equal scores and never lift a weaker fit above a better one. After that, the lighter skill\n\n`route` returns up to 10 candidates. Claude offers the best 2–3 by their `best_for` / `not_for`.\n\nYou don't need Claude Code to see the ranker work. From a checkout:\n\n```\ngit clone https://github.com/surenganne/switchboard.git && cd switchboard\npython3 - <<'EOF'\nfrom switchboard.route import route\n\ndef p(targets, focus, stack, depth=\"thorough\"):\n    return {\"categories\": [\"code-review\"], \"role\": \"performs\", \"targets\": targets,\n            \"focus\": focus, \"stack\": stack, \"depth\": depth, \"cost\": \"single-pass\"}\n\nprofiles = {\n    \"user:review\":              p([\"pr\", \"diff\"], [\"security\", \"correctness\"], [\"any\"]),\n    \"ecc:code-review\":          p([\"diff\", \"files\"], [\"correctness\", \"security\", \"maintainability\"], [\"any\"]),\n    \"ponytail:ponytail-review\": p([\"diff\"], [\"simplicity\"], [\"any\"], depth=\"quick\"),\n    \"kt:kotlin-review\":         p([\"pr\", \"diff\"], [\"correctness\", \"security\"], [\"kotlin\"]),\n}\ninventory = {k: {\"source\": k.split(\":\")[0], \"name\": k.split(\":\")[1], \"kind\": \"skill\"} for k in profiles}\ntask = {\"category\": \"code-review\", \"targets\": [\"pr\"], \"focus\": [\"correctness\", \"security\"], \"stack\": [\"python\"]}\n\nfor c in route(task, profiles, inventory, past=[{\"chosen\": \"user:review\"}])[\"candidates\"]:\n    print(f'{c[\"id\"]:28} score={c[\"score\"]}  past_choices={c.get(\"past_choices\", 0)}')\nEOF\n```\n\nOutput:\n\n```\nuser:review                  score=6.0  past_choices=1\necc:code-review              score=3.0  past_choices=0\nponytail:ponytail-review     score=1.0  past_choices=0\nkt:kotlin-review             score=5.0  past_choices=0\n```\n\nHere's why that order is right:\n\n`user:review` covers the task's `pr` target (3) and both focus tags (2), and fits any stack (1). Total 6.`ecc:code-review` doesn't list `kt:kotlin-review` scores 5, higher than `ecc`, but it's Kotlin-only on a Python task, so it sorts to the\nbottom of its role group.\nThe profiles above are hand-written for the demo. In real use Claude writes them from each skill's files.\n\nI want to be precise here. The **ranking** is deterministic: the same profiles and the same task description\n\nalways give the same order. But Claude still writes the profiles and describes each task, so what goes into\n\nthe ranker can vary. And you make the final pick. I'd call it \"predictable ranking you can inspect\", not\n\n\"deterministic routing\".\n\nTwo commands I use weekly:\n\n`/switchboard:audit` lists task types where you keep passing over the top pick, so you can see which\nprofiles are probably wrong:\n\n```\n  - debugging · files · correctness: top pick passed over 3 times; you chose superpowers:systematic-debugging.\n```\n\n`/switchboard:hygiene` suggests plugins you haven't used (once 30 days are logged) and estimates the\ncontext tokens each costs in the skill listing. It doesn't turn anything off. You do that with `/plugin`.\nThere's also `/switchboard:report`, which writes a self-contained HTML report of your picks to\n\n`~/.switchboard/report.html`, and `/switchboard:forget` to delete your history.\n\n`primary` mode,\nthe first Edit/Write/Agent call) until a choice is recorded.`Bash` isn't gated.\nEverything lives in `~/.switchboard/` (directories 0700, files 0600). No prompt text and no code are stored.\n\nThere are no network imports in the plugin. To stop recording, put `{\"record_choices\": false}` in\n\n`~/.switchboard/settings.json`.\n\n```\nclaude plugin uninstall switchboard@switchboard\nrm -rf ~/.switchboard\n```\n\nIf you have overlapping skills and try it, I'd like to hear where it ranks the wrong skill first. That's the\n\nmost useful bug report. Repo, issues and the full README: [https://github.com/surenganne/switchboard](https://github.com/surenganne/switchboard)", "url": "https://wpnews.pro/news/i-had-five-code-reviewers-installed-in-claude-code-here-s-how-i-got-it-to-ask", "canonical_source": "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", "published_at": "2026-11-28 13:34:57+00:00", "updated_at": "2026-11-28 13:43:58.114177+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "ai-products"], "entities": ["Switchboard", "Claude Code", "Anthropic", "surenganne"], "also_reported_by": [], "takeaway": "Switchboard profiles each installed Claude Code skill into a fixed-schema JSON file (category, role, targets, focus, depth, cost, stack) and surfaces the top two or three overlapping skills with reasons for the user to pick, rather than relying on one-line descriptions.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/i-had-five-code-reviewers-installed-in-claude-code-here-s-how-i-got-it-to-ask", "markdown": "https://wpnews.pro/news/i-had-five-code-reviewers-installed-in-claude-code-here-s-how-i-got-it-to-ask.md", "text": "https://wpnews.pro/news/i-had-five-code-reviewers-installed-in-claude-code-here-s-how-i-got-it-to-ask.txt", "jsonld": "https://wpnews.pro/news/i-had-five-code-reviewers-installed-in-claude-code-here-s-how-i-got-it-to-ask.jsonld"}}