agentleFS
gustavo-meilusgustavo-meilus/superpipelines/skills/sk-dynamic-routing/SKILL.md

sk-dynamic-routing

Skill4 starsChanged 6 months agoMITView on GitHub

Maps pipeline agent roles to intent-based model categories on Tier 1 (Claude Code). Use when a Tier 1 pipeline stage requires model assignment beyond the two-slot fast/deep abstraction — e.g., pure read-only audit agents, deep architectural planners, or visual-analysis roles. Non-CC tiers resolve models via platform_profile.model_tiers only; this skill must not be invoked on tier_1b/1c/1d/2.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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:

    When generating an agent or scaffold, the model: field in the frontmatter is set to the primary model of the selected category.

    line 43
  2. Very specific:

    NEVER override pipeline-task-executor or pipeline-spec-reviewer.

    line 48
  3. Distinctive:

    NEVER route to a model not explicitly defined in the category mapping table.

    line 49
  4. Very specific:

    NEVER invoke this skill from tier-agnostic orchestrator skills (creating-a-pipeline, pipeline-architect-protocol, sk-platform-dispatch).

    line 51

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Dynamic Model Routing — Intent-Based Capability Mapping

<overview> This skill is **Claude Code-scoped (tier_1 only)**. Superpipelines on Tier 1 maintains `claude-sonnet-4-6` as the baseline default for implementation workers (the Tier 1 resolution of `platform_profile.model_tiers.fast`). Certain specialized roles — fast audits, deep architectural planning, visual analysis — benefit from dynamic routing beyond the two-slot `fast`/`deep` abstraction. This skill defines the CC-specific categories and fallback chains for those overrides. Non-CC tiers do not consult this skill; they resolve models via `platform_profile.model_tiers` only. </overview><glossary> <term name="Category">An intent-based tag that dictates the model requirement (e.g., `quick-audit`, `deep-plan`).</term> <term name="Fallback Chain">The sequence of alternative models if the primary is unavailable or rate-limited.</term> </glossary>

Category Mappings

<categories_table>

CategoryPrimary ModelFallback ChainUse Case
defaultclaude-sonnet-4-6NoneImplementation, general tasks, and task-execution.
deep-planclaude-opus-4-8gpt-5.4 -> sonnet-4-6High-stakes architectural planning (e.g., pipeline-architect).
quick-auditclaude-haiku-4-5-20251001NoneFast, broad pattern matching and codebase grepping.
visualgemini-3.5-progpt-5.4Tasks requiring image processing, UI screenshots, or diagram analysis.
</categories_table>

Routing Protocol

<protocol> ### 1. EVALUATE INTENT - Determine the nature of the specific task or agent role. - Standard code implementation or functional review maps to category `default`.

2. ASSIGN CATEGORY

  • Roles exclusively concerned with planning, architecture, or deep conceptual alignment → deep-plan.
  • Roles restricted to read-only utility (fast file searching, lint aggregation) → quick-audit.
  • Roles that interpret screenshots or diagrams → visual.

3. CONFIGURATION OVERRIDE

  • When generating an agent or scaffold, the model: field in the frontmatter is set to the primary model of the selected category.
  • A comment or meta-tag noting the category intent is added for future auditing.</protocol>
<invariants> - NEVER override `pipeline-task-executor` or `pipeline-spec-reviewer`; they MUST remain on `claude-sonnet-4-6` (`default`). - NEVER route to a model not explicitly defined in the category mapping table. - Maintain `MODEL_SELECTION: DYNAMIC_DEFAULT_SONNET` adherence. On Tier 1 the `default` category equals `platform_profile.model_tiers.fast` (`claude-sonnet-4-6`). - NEVER invoke this skill from tier-agnostic orchestrator skills (`creating-a-pipeline`, `pipeline-architect-protocol`, `sk-platform-dispatch`). Caller MUST gate on `platform_profile.tier == "tier_1"` before reading this skill's category table. </invariants>

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.