routing-policy
Skill9 starsChanged 6 months agoMITView on GitHub
Before starting ANY task: (1) know the PROJECT type, then (2) identify the TASK type and follow the route. Several skills overlap by topic but differ by mechanism (skeptic vs codex-skeptic vs grill-me; research vs research-scout vs deep-research). They are modes, not duplicates. When unsure which to invoke, consult docs/skill-disambiguation.md — it maps each family to "when to take this one". Do not fire all of them; pick by mechanism. Task routing alone is not enough — the SAME task…
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Scylla23/modelroutertheir own version, first seen Oct 20, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Scylla23/modelrouter★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository164 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- agents/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- claude-md/CLAUDE.mdCLAUDE.md
- hooks/CLAUDE.mdCLAUDE.md
- insight-architectSkill
- agent-teamsSkill
- brainstormingSkill
- claim-decomposerSkill
- context-engineeringSkill
- dispatcherSkill
- git-worktreesSkill
- hd-mavp-routerSkill
- mentor-modeSkill
- reference-registrySkill
- skill-self-updateSkill
- tdd-workflowSkill
- ab-testSkill
- academic-researchSkill
- advanced-methodology-extensionsSkill
- agent-governanceSkill
- ai-hyp-gateSkill
- algorithm-designSkill
- analystSkill
- archcode-genomicsSkill
- arm-cortex-microcontrollersSkill
- atomizeSkill
- backward-traceabilitySkill
- boyko-constraint-engineSkill
- boyko-epistemic-auditSkill
- boyko-goal-expansion-100Skill
- boyko-knowledge-architectureSkill
- boyko-leverage-mapSkill
- boyko-methodSkill
- boyko-preflightSkill
- boyko-project-radarSkill
- boyko-rippleSkill
- boyko-scientific-consortiumSkill
- boyko-specialistSkill
- boyko-toolcheckSkill
- boyko-triangle-auditSkill
- boyko-why-ladderSkill
- browser-actSkill
- build-autoSkill
- c4-architectureSkill
- career-prepSkill
- changelog-genSkill
- citation-managementSkill
- code-debuggingSkill
- code-materialitySkill
- codex-skepticSkill
- codex-solverSkill
- codex-tracySkill
- combinatorial-creativitySkill
- common-groundSkill
- conductorSkill
- consilienceSkill
- construct-measurement-gateSkill
- convertSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. About 0 are common, 18 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
ALWAYS CHECK before starting ANY task.
- Distinctive: line 16
Do NOT use as an execution skill — it routes only, never implements.
- Distinctive: line 31
Before starting ANY task: (1) know the PROJECT type, then (2) identify the TASK type and follow the route.
- Very specific: line 37
When unsure which to invoke, consult docs/skill-disambiguation.md — it maps each family to "when to take this one".
- Very specific: line 45
Read .claude/memory/_auto/project_profile.md (auto-written by the project_classifier hook at SessionStart).
- Very specific: line 47
If confidence is LOW / ambiguous, invoke the dispatcher skill — it arbitrates by reading CLAUDE.md/README intent, not folder structure.
- Distinctive: line 49
NOT call back into routing-policy for task classification (that would cycle) -- pass it the task type you already have, or classify it …
- Distinctive: line 82
Every task passes through these stages in order.
- Distinctive: line 91
Hard rule: Never skip Stage 1 to jump directly to Stage 3.
- Distinctive: line 101
If not found locally → MCP (Context7, PubMed, WebSearch)
- Distinctive: line 110
Read target file(s) in full
- Very specific: line 113
Run tests (pytest -x -q or equivalent)
- Distinctive: line 114
If tests fail → Read the error, understand the cause, THEN fix
- Distinctive: line 142
NEVER write implementation before tests — because tests written after code validate the implementation, not the requirements (post-hoc …
- Distinctive: line 149
Read full traceback / error message
- Distinctive: line 152
Verify hypothesis with a tool → [VERIFIED]
- Distinctive: line 153
If 3 attempts failed → Stuck Detection → STOP → ask user
- Distinctive: line 162
If working with PII → confirm redaction hook is active
- Distinctive: line 178
If the task does not clearly fall into one type:
- Distinctive: line 193
When multiple skills could activate, follow this priority:
- Distinctive: line 203
If skills conflict: higher layer wins.
- Distinctive: line 207
If task type is unclear after 5 seconds, first check the boyko-agent criterion under "Task Type Identification" above — only default to …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
<!-- BSV — Brief Skill View | поиск: BSV
Скил : routing-policy
TL;DR : Маршрутизатор задач — выбирает тип и путь решения
Вызов : Автоматически при любой задаче
НЕ для : Самостоятельная работа без задачи
-->name: routing-policy description: > [STATUS: review] [CONFIDENCE: high] [REVIEWED: 2026-03-13] ALWAYS CHECK before starting ANY task. Decision routing matrix for task→skill→agent→tools selection. Determines optimal execution path. Triggers: any task, start of work, new request, plan, task, implement, fix, debug, review, add, create, build, change. Do NOT use as an execution skill — it routes only, never implements.
Routing Policy — Task Routing Matrix
Current State (auto-injected)
!`git status --short 2>/dev/null | head -15`!`git diff --stat 2>/dev/null | tail -5`How to Use
Before starting ANY task: (1) know the PROJECT type, then (2) identify the TASK type and follow the route.
Picking between similar skills
Several skills overlap by topic but differ by mechanism (skeptic vs codex-skeptic vs
grill-me; research vs research-scout vs deep-research). They are modes, not duplicates.
When unsure which to invoke, consult docs/skill-disambiguation.md — it maps each
family to "when to take this one". Do not fire all of them; pick by mechanism.
Stage 0 — Project Type (sets the methodology baseline)
Task routing alone is not enough — the SAME task needs different rigor in different projects (a "quick fix" in a research repo still affects conclusions; in an MVP it just ships).
- Read
.claude/memory/_auto/project_profile.md(auto-written by theproject_classifierhook at SessionStart). It gives project type + confidence. - If confidence is LOW /
ambiguous, invoke the dispatcher skill — it arbitrates by reading CLAUDE.md/README intent, not folder structure. When you invoke it this way, dispatcher will NOT call back into routing-policy for task classification (that would cycle) -- pass it the task type you already have, or classify it yourself once dispatcher returns the project type. - The project type sets the methodology baseline; the task type (below) refines the route:
| Project type | Baseline | FL tier default |
| research | EstimandOps L0 + skeptic-triggers, claims [VERIFIED]/[HYPOTHESIS] | Full |
| data-science | validate on REAL data [VERIFIED-REAL] | Standard |
| production | reviewer mandatory + coverage ≥80% | Standard |
| MVP | speed > rigor, tests optional | Micro |
Then apply the task matrix below within that baseline.
Absolute Safety Floor (applies on EVERY route — confidence or dispatcher-invocation does not matter)
The table above sets rigor, never an on/off switch for these. They apply whether confidence was HIGH (dispatcher never ran) or LOW/ambiguous (dispatcher ran and returned a verdict):
| Always mandatory | Even if project type = |
| Security/PII/payments/secrets review | MVP, production, any |
| Tests for migrations, destructive operations, releases | MVP |
| Evidence-marking for external claims ([VERIFIED]/[HYPOTHESIS]/[UNKNOWN]) | MVP, research |
| User confirmation for irreversible actions | any |
MVP × "change token auth handling" is not the "tests optional" MVP row above — it falls
under the security floor regardless of project type. This is a minimal addition, not a rearchitecture:
routing-policy still owns task routing; dispatcher still owns project-type arbitration on
ambiguous cases. The floor text is duplicated intentionally (see dispatcher/SKILL.md's own
Safety Floor) so it holds even when dispatcher is never invoked.
4-Stage Workflow
Every task passes through these stages in order. Use them as a mental checklist:
| Stage | Goal | Maps to |
| 1 — Research | Understand before acting | Type 1, or Explore agent for Types 2-5 |
| 2 — Planning | Design before coding | Types 2-3 (brief plan or EnterPlanMode) |
| 3 — Acting | Execute with evidence | Types 2-6 execution routes |
| 4 — Review | Verify and capture | reviewer agent + session-retrospective skill |
Hard rule: Never skip Stage 1 to jump directly to Stage 3. Symptoms of skipping: editing without reading, committing without testing, closing task without review.
Routing Matrix
Type 1: Research / Question
Signals: "what is this", "how does it work", "where is it", "why", explain, find, search
Route:
- Explore subagent → Read/Grep/Glob (local tools)
- If not found locally → MCP (Context7, PubMed, WebSearch)
- Mark every fact according to Evidence Policy
Hard rule: local tools first, then MCP. Do not call MCP without first trying locally.
Type 2: Code Change (1-2 files)
Signals: "change", "add", "fix" + specific file/function
Route:
- Read target file(s) in full
- Brief plan in response (not EnterPlanMode)
- Edit/Write
- Run tests (
pytest -x -qor equivalent) - If tests fail → Read the error, understand the cause, THEN fix
- Commit
Type 3: Code Change (3+ files)
Signals: "refactor", "new feature", "migration", multi-file change
Route:
- EnterPlanMode (plan_mode_guard fires automatically)
- boyko-agent (Opus) → decompose into tasks
(correction 2026-07-22: a prior edit this session changed this to "navigator", reasoning
"there is no agents/boyko-agent.md" -- that check only looked for the FILENAME. PR #207
(2026-07-17) renamed the agent by changing agents/navigator.md's frontmatter
name:field from navigator to boyko-agent; per agents/navigator.md's own "identity is defined by frontmatter, not the filename", boyko-agent IS the real, currently-resolving Agent-tool invocation name -- verified via the live Agent-tool roster, which lists boyko-agent and no longer lists navigator. The file is still named navigator.md for git-history continuity.) - builder agent (Sonnet) → implement each file
- tester agent (Sonnet) → tests
- reviewer agent (Sonnet, high effort) → code review (was "Opus" here -- agents/reviewer.md is model: sonnet, effort: high; fixed 2026-07-21)
- Commit
Type 4: Writing Tests / TDD
Signals: "tests", "test", "coverage", "TDD", "with tests", "cover with tests"
Route:
- Load tdd-workflow skill (auto-loaded by trigger)
- RED → GREEN → REFACTOR
- NEVER write implementation before tests — because tests written after code validate the implementation, not the requirements (post-hoc confirmation bias)
Type 5: Debugging
Signals: "crashes", "error", "not working", "bug", error, fail, broken, debug
Route:
- Read full traceback / error message
- Explore subagent → search context in codebase
- Hypothesis [INFERRED] with chain of reasoning
- Verify hypothesis with a tool → [VERIFIED]
- If 3 attempts failed → Stuck Detection → STOP → ask user
Type 6: Security / Compliance
Signals: "audit", "security", PII, SQL, auth, payments, .env
Route:
- Load security-audit skill
- reviewer agent → code review
- Check deny-list (17 patterns)
- If working with PII → confirm redaction hook is active
Hard Guards — Absolute Rules
These rules override ANY rationalization:
| Guard | Rule | Prevents |
| Read Before Edit | Do NOT edit a file without reading it first | Hallucination Loops |
| Local Before MCP | Do NOT call MCP without trying locally first | Wasted tokens |
| Plan Before Multi-Edit | Do NOT edit 3+ files without a plan | Chaotic changes |
| Test Before Commit | Do NOT commit without running tests (if tests exist) | Broken commits |
| Evidence Before Claim | Do NOT assert a fact without an Evidence Policy marker | Hallucinations |
Task Type Identification
If the task does not clearly fall into one type:
- Contains "test/coverage" → Type 4 (TDD) takes priority
- Contains "error/bug" → Type 5 (Debugging) takes priority
- Contains "security/PII/auth" → Type 6 (Security) takes priority
- Touches 3+ files → Type 3 (Multi-file) is mandatory
- Direction is genuinely unclear (not just "little context in the prompt"),
or the task is explicitly exploratory/hypothesis-driven/cross-domain →
invoke
Agent(boyko-agent, ...)first instead of defaulting to Type 2/3. boyko-agent's ownwhenToUsenames exactly this case ("when direction is unclear... exploratory, cross-domain, hypothesis-driven") — routing straight to Type 2/3 here skips the one component built for it. - Anything else → Type 2 (Simple change) by default
Skill Execution Order (Layers)
When multiple skills could activate, follow this priority:
| Layer | Priority | Skills | Rule |
| 1 — SAFETY | Mandatory, always first | security-audit, routing-policy | Never skip. Check before any code change touching auth/PII/payments |
| 2 — QUALITY | Before implementation | tdd-workflow, brainstorming (if 3+ files) | RED before GREEN. Design before code |
| 3 — EXECUTION | Task-specific work | archcode-genomics, geoscan, notebooklm, mentor-mode, reference-registry | Load on trigger, one at a time |
| 4 — ENHANCEMENT | Post-task | git-worktrees, last30days, research-pipeline | Isolation, research, supplementary |
| 5 — REVIEW | Post-task | session-retrospective | Capture decisions, patterns, next focus |
If skills conflict: higher layer wins. Layer 1 can block Layer 3 (security blocks unsafe code). Layer 5 always runs last — it reviews, never blocks.
Gotchas
- This skill is meta — it routes, not executes. Don't let it become a bottleneck
- If task type is unclear after 5 seconds, first check the boyko-agent criterion under "Task Type Identification" above — only default to Type 3 (code change) if that criterion doesn't apply
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.

