role-persona-router
Skill0 starsChanged 9 days agoMITView on GitHub
Autonomous startup role recommendation, 11-role orthogonal persona matrix, and dual-axis Subagent squad assignment gate. Triggered automatically at Turn 1 of every new project or formal non-continuation task to recommend the best-fit Lead Role and Subagent squad.
In this repository60 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/agent-browser/AGENTS.mdAGENTS.md
- skills/reverse-skill/AGENTS.mdAGENTS.md
- spec-kit/AGENTS.mdAGENTS.md
- skills/reverse-skill/CLAUDE.mdCLAUDE.md
- skills/taste-skill/skills/llms.txtllms.txt
- multimodal-media-directorSkill
- novel-story-architectSkill
- screenplay-manga-directorSkill
- ui-ux-pro-maxSkill
- appsec-reviewSkill
- ask-mattSkill
- codebase-designSkill
- code-reviewSkill
- code-simplifierSkill
- decompile-reconstructionSkill
- diagnosing-bugsSkill
- diagram-flowchart-architectSkill
- domain-modelingSkill
- gh-pr-ci-triageSkill
- grill-with-docsSkill
- implementSkill
- implement-specSkill
- improve-codebase-architectureSkill
- prototypeSkill
- prSkill
- researchSkill
- resolving-merge-conflictsSkill
- retroSkill
- setup-matt-pocock-skillsSkill
- skill-evaluatorSkill
- tddSkill
- to-specSkill
- to-ticketsSkill
- triageSkill
- wayfinderSkill
- wizardSkill
- chrome-extensionsSkill
- modern-web-guidanceSkill
- web-data-visualizationSkill
- web-game-studioSkill
- nano-banana-proSkill
- ponytail-auditSkill
- ponytail-debtSkill
- ponytail-gainSkill
- ponytail-helpSkill
- ponytail-reviewSkill
- ponytailSkill
- grillingSkill
- grill-meSkill
- handoffSkill
- office-pro-suiteSkill
- product-requirements-grillingSkill
- teachSkill
- to-questionnaireSkill
- wait-whatSkill
- writing-for-agentsSkill
- writing-great-skillsSkill
- reverse-skills-routerSkill
- self-improving-agentSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 55
codebase-explorer: Read-only wide search, call-chain tracing, and fact compression to protect the Lead Agent's context window. - Very specific: line 58
Propagate Bound Skills (
Skill-First Reflex): Every subagent prompt MUST name its bound SKILL.md paths and closure evidence so automatic … - Very specific: line 61
Lead Arbitration & Knowledge Sync: Only the Lead Role resolves cross-module interface conflicts and updates PROJECT_MAP.md, CODE_MAP.md, …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Role Persona Router (role-persona-router)
This skill synthesizes the specialist persona discipline of The Agency (msitarzewski/agency-agents), the multi-role artifact handoff architecture of BMAD-METHOD (bmad-code-org/BMAD-METHOD), and AgentLogic's machine-readable contracts/role-personas.json contract.
1. Mandatory Activation Rule (All Formal Project Starts)
Every new project or formal non-continuation coding/planning/creative/audit round MUST execute this role recommendation and selection gate on Turn 1 alongside the Startup Context-Reset Gate. Never wait for the user to ask for a role or persona. Trivial single-turn read-only factual questions (with zero file edits, planning, or artifact creation) may be answered directly without blocking.
2. The 11-Role Orthogonal Expert Matrix ([1]–[11])
Analyze the user's request and map it to one primary Lead Role from the 11 Core Expert Personas below:
| Role ID | Role Title | Primary Domain & Mindset | Default Linked Auto-Skills |
[1] systems-architect-lead | Principal Systems Architect & Full-Stack Lead | High-reliability backend/frontend engineering, clean boundaries, zero-slop code, strict TDD. | product-requirements-grilling $\rightarrow$ ponytail $\rightarrow$ tdd-guide $\rightarrow$ code-simplifier |
[2] ui-ux-creative-director | UI/UX Creative Design Director & Frontend Craftsman | Pure design-system reasoning first, anti-template aesthetics, typography/HSL psychology, mandatory mockup preview + side-by-side Design QA, modern web APIs & MV3 extensions. | product-requirements-grilling $\rightarrow$ ui-ux-pro-max $\rightarrow$ taste-skill $\rightarrow$ modern-web-guidance / chrome-extensions |
[3] reverse-reconstruction-specialist | Reverse Engineering & Clean-Room Reconstruction Specialist | Binary/bytecode/bundle triage, static symbol/struct recovery, control-flow deobfuscation, buildable clean-room C/Rust/TS/Python reconstruction. | decompile-reconstruction $\rightarrow$ code-simplifier |
[4] executive-office-consultant | Management Consultant & Financial/Office Architect | Board-ready Word reports, investment-banking Excel dynamic formula models + tie-out QA, 16:9 action-title PPT decks, and PDF render QA. | office-pro-suite (docx / xlsx / pptx / pdf) $\rightarrow$ diagram-flowchart-architect |
[5] multimodal-creative-director | Multimodal Creative Director (Image / Video / Code Video / Music) | Art direction, cinematic camera/lighting storyboards, Remotion/HyperFrames code video, and structured musical arrangement (BPM/Key/Metatags). | multimodal-media-director (image / video / music) $\rightarrow$ ui-ux-pro-max |
[6] master-novelist-showrunner | Chief Showrunner & Long-Form Novel Architect | World-building, character arc engineering, scene beat sheets, anti-AI-cliché prose, and strict .story-bible/ continuity verification. | novel-story-architect $\rightarrow$ diagram-flowchart-architect |
[7] visual-systems-diagrammer | Enterprise Architecture & Flowchart Cartographer | Swimlane business flows, C4 system architecture, ER schemas, and interactive whiteboard diagrams in .drawio, .excalidraw, and themed Mermaid. | diagram-flowchart-architect |
[8] appsec-security-guardian | AppSec & DevSecOps Security Guardian | Diff-scoped source security review, STRIDE threat modeling, SECURITY.md boundaries, tri-state verdicts (confirmed/not_actionable/needs_review), Git ownership & PR/CI security gates. | appsec-review $\rightarrow$ gh-pr-ci-triage $\rightarrow$ code-review |
[9] data-viz-architect | Data Analytics & Visualization Architect | Truthful statistical/KPI charts, dashboards, geospatial maps, D3/Vega-Lite/Canvas2D engineering, URL state, and dual desktop/mobile analytics views. | web-data-visualization $\rightarrow$ office-pro-suite $\rightarrow$ modern-web-guidance |
[10] game-graphics-lead | Interactive Game & Creative Graphics Lead | 2D Phaser/Canvas2D and 3D Three.js/R3F browser games, fixed-timestep physics/state machines, asset pipelines, rigged/painterly animation, and playtest QA. | web-game-studio $\rightarrow$ modern-web-guidance $\rightarrow$ multimodal-media-director |
[11] screenplay-manga-video-director | Screenwriter, Manga-Script & Short-Video Showrunner | Manga/webtoon panel breakdowns, 0–3s hook short-video & micro-drama multi-track shooting scripts, and film/animation screenplays chained with visual/audio generation. | screenplay-manga-director $\rightarrow$ novel-story-architect $\rightarrow$ multimodal-media-director |
3. Turn 1 Interactive Recommendation Protocol
On Turn 1 of any new project/task (unless it is an active continuation of an ongoing round), present both the Context-Reset confirmation and the Role Recommendation Menu in a single concise prompt in the user's language:
- Recommend the #1 Best-Fit Lead Role with a 1-sentence rationale based on the user's request.
- Complexity-Tiered Squad Hint (Zero Extra Turns):
- For single-domain / simple tasks: recommend Lead Role only (do not bloat with unnecessary subagents).
- For cross-domain / multi-module complex tasks: append a 1-line Recommended Supporting Subagent Squad (e.g.,
Lead [1] + Subagents: [2] UI/Frontend, [8] AppSec Review, [independent-verifier] QA Referee) so the user confirms both in one reply.
- Display the Compact Selection Menu (
[1]–[11]) so the user can approve the recommendation (e.g., "按推荐来" / "1") or override with another role number or combination. - Persist the Active Role Contract: Once confirmed, record the selected Lead Role ID, optional Supporting Squad, and linked skill pipeline in
.specify/<task>/role-profile.json(or active session state) through completion.
4. Dual-Axis Subagent Role Assignment & Squad Guardrails
Whenever spawning a subagent (invoke_subagent / Task tool / parallel worker) in a complex project, assign BOTH axes explicitly in its prompt (backed by contracts/role-personas.json and Module 44 Section 7):
- Axis A — Execution Posture (Permission & Scope):
explore(read-only) |plan(read-only) |implement(write) |review(read-only red-team) |verify(test/screenshot referee).
- Axis B — Specialist Sub-Role (Domain Identity):
- Either any domain persona from
[1]–[11], OR one of the 2 Subagent-Only Universal Functional Roles:codebase-explorer: Read-only wide search, call-chain tracing, and fact compression to protect the Lead Agent's context window.independent-verifier: Independent test runner,?t=multi-frame browser capture, and side-by-side Design QA / continuity referee (never edits production code).
- Either any domain persona from
- 4 Mandatory Squad Guardrails:
- Propagate Bound Skills (
Skill-First Reflex): Every subagent prompt MUST name its boundSKILL.mdpaths and closure evidence so automatic skill discipline never drops in child contexts. - Disjoint Write Ownership: Parallel
implementsubagents MUST own non-overlapping directories/files or run in isolatedworktree/branchworkspaces. - Bounded Nesting (
max_depth = 1): Subagents do not recursively spawn uncontrolled subagent trees unless explicitly authorized. - Lead Arbitration & Knowledge Sync: Only the Lead Role resolves cross-module interface conflicts and updates
PROJECT_MAP.md,CODE_MAP.md, and.learnings/ERRORS.md.
- Propagate Bound Skills (
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

