persona-router

persona-router is a skill for Claude Code from XRenSiu/claude-code-forge. It costs 130 tokens per session (2,510 once invoked), scanned A, original, MIT.

A routing skill reads the description files for installed persona skills and recommends the one to three that best match a question. A persona skill is a set of instructions that makes an agent answer from a particular person's viewpoint.

In plain words
What is it for?
It finds suitable personas for a question, recommends several viewpoints, and lists personas that lack the required description format.
Why use it?
It removes the need to search through many installed personas by hand. It is most useful when there are at least ten personas and the right choice is unclear.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the persona-distill plugin — 5 skills, 16 agents shipped together

Good fit It finds suitable personas for a question, recommends several viewpoints, and lists personas that lack the required description format.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xrensiu/claude-code-forge/persona-router
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add XRenSiu/claude-code-forge --skill persona-router
Clone the repo
git clone --depth 1 https://github.com/XRenSiu/claude-code-forge

Made for: Claude Code.

Or install persona-distill, the plugin that ships this one along with the rest of its 5 skills, 16 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for persona-router

README.md
[![agentmods](https://agentmods.dev/badge/skills/xrensiu/claude-code-forge/persona-router/github.svg)](https://agentmods.dev/skills/xrensiu/claude-code-forge/persona-router)
Your own site
<a href="https://agentmods.dev/skills/xrensiu/claude-code-forge/persona-router"><img src="https://agentmods.dev/badge/skills/xrensiu/claude-code-forge/persona-router/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for persona-router

Your own site · 80×15
<a href="https://agentmods.dev/skills/xrensiu/claude-code-forge/persona-router"><img src="https://agentmods.dev/badge/skills/xrensiu/claude-code-forge/persona-router.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 130 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,510 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00130 $0.02510
Opus 5.5 $0.00052 $0.01004
Sonnet 5.5 $0.00026 $0.00502
Haiku 4.5 $0.00013 $0.00251

Measured 1mo ago against content hash f4c5a1cafb65, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

persona-router scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/persona-distill/skills/persona-router/SKILL.md · 208 lines

How it starts

The opening of the file, as written. The whole thing — 208 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Persona Router

从已安装的 N 个 persona skill 里,挑出最懂这个问题的 1-3 个。

Announce at start: "I'm using the persona-router skill to scan installed persona manifests and recommend the best matches for your question."

Overview

当你蒸馏了十几个 persona skill(同事、导师、公众人物、领域专家……),每次面对一个新问题,你都要在脑子里过一遍"这个问题谁最懂"。Router 把这步自动化:读所有 persona 的 manifest.json,按问题语义打分,给出排序推荐,你挑一个或几个触发。

Router 不回答问题,只负责把合适的 persona 推到你面前。

When Router Adds Value (Be Honest)

PRD 明确指出:

"router 和 debate 在 persona skill 数量 <10 之前没价值。" — docs/.../prd.md §8 Q6

在下面这些情况,不要用 router:

场景 更好的做法
只装了 1-3 个 persona 直接叫名字
问题明显属于某个 persona 的主场 直接触发那个 persona
你想要的是"多方辩论"而非"挑人" 直接用 persona-debate
persona 总数 <10 手动挑更快,router 开销反而亏

Router 的回报曲线在 persona 数 >= 10 后才变陡。

The Single Input Contract

Router 只读一种输入:符合 contracts/manifest.schema.json 的 manifest.json 文件。

这是 router 唯一认识的格式。任何 persona skill 如果没有合规的 manifest,router 会直接跳过(并在报告中列出)。Contract 路径(相对仓库根):

plugins/persona-distill/contracts/manifest.schema.json

Schema 里 router 实际用到的字段:

  • schema_type — 9 种 persona schema 之一
  • identity.name / identity.display_name / identity.description / identity.domains / identity.subject_type — 匹配语义
  • components_used — 19 个共享组件的激活集合(v0.3.0 起含 execution-profile)
  • triggers — 触发短语(用来做二次验证)
  • density_score / validation_score — 质量信号
  • unvalidated — 未验证警告

不在 schema 里的字段 router 一律忽略。

Four-Step Workflow

┌─────────────────────────────────────────────────────────────┐
│                    PERSONA ROUTER FLOW                      │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│  Step 1: 接收用户问题                                        │
│           ↓                                                 │
│  Step 2: 扫描 installed persona skills                      │
│           └─ 读所有 manifest.json                           │
│              (符合 contracts/manifest.schema.json)         │
│           ↓                                                 │
│  Step 3: 在匹配维度上打分                                    │
│           ├─ schema_type relevance                          │
│           ├─ identity.domains keyword overlap               │
│           ├─ components_used coverage                       │
│           └─ density_score / validation_score 调权           │
│           ↓                                                 │
│  Step 4: 输出 1-3 条推荐(rationale 可见)                   │
│           └─ 按 templates/recommendation-template.md 格式   │
│                                                             │
└─────────────────────────────────────────────────────────────┘

Read the full file on GitHub · 208 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 208 lines · 130 tokens per session scan A f4c5a1cafb65

Subscribe to this mod's changes

persona-router is a skill published in the GitHub repository XRenSiu/claude-code-forge (2 stars, last pushed 29d ago), licensed MIT. It adds 130 tokens to every session and 2,510 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens