agentleFS
UIhoshiUIhoshi/AgentLogic/skills/productivity/role-persona-router/SKILL.md

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.

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
  1. Very specific:

    codebase-explorer: Read-only wide search, call-chain tracing, and fact compression to protect the Lead Agent's context window.

    line 55
  2. Very specific:

    Propagate Bound Skills (Skill-First Reflex): Every subagent prompt MUST name its bound SKILL.md paths and closure evidence so automatic …

    line 58
  3. Very specific:

    Lead Arbitration & Knowledge Sync: Only the Lead Role resolves cross-module interface conflicts and updates PROJECT_MAP.md, CODE_MAP.md, …

    line 61

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 IDRole TitlePrimary Domain & MindsetDefault Linked Auto-Skills
[1] systems-architect-leadPrincipal Systems Architect & Full-Stack LeadHigh-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-directorUI/UX Creative Design Director & Frontend CraftsmanPure 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-specialistReverse Engineering & Clean-Room Reconstruction SpecialistBinary/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-consultantManagement Consultant & Financial/Office ArchitectBoard-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-directorMultimodal 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-showrunnerChief Showrunner & Long-Form Novel ArchitectWorld-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-diagrammerEnterprise Architecture & Flowchart CartographerSwimlane business flows, C4 system architecture, ER schemas, and interactive whiteboard diagrams in .drawio, .excalidraw, and themed Mermaid.diagram-flowchart-architect
[8] appsec-security-guardianAppSec & DevSecOps Security GuardianDiff-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-architectData Analytics & Visualization ArchitectTruthful 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-leadInteractive Game & Creative Graphics Lead2D 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-directorScreenwriter, Manga-Script & Short-Video ShowrunnerManga/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:

  1. Recommend the #1 Best-Fit Lead Role with a 1-sentence rationale based on the user's request.
  2. 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.
  3. 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.
  4. 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):

  1. Axis A — Execution Posture (Permission & Scope):
    • explore (read-only) | plan (read-only) | implement (write) | review (read-only red-team) | verify (test/screenshot referee).
  2. 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).
  3. 4 Mandatory Squad Guardrails:
    • Propagate Bound Skills (Skill-First Reflex): Every subagent prompt MUST name its bound SKILL.md paths and closure evidence so automatic skill discipline never drops in child contexts.
    • Disjoint Write Ownership: Parallel implement subagents MUST own non-overlapping directories/files or run in isolated worktree / branch workspaces.
    • 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.