adaptive-routing

adaptive-routing is a skill for Claude Code, Codex from gabriele-mastrapasqua/codex-lean-team. It costs 39 tokens per session (563 once invoked), scanned A, original, MIT.

A software-development routing guide that chooses a suitably sized workflow for each task. It covers ordinary edits as well as ambiguous, multi-part, risky, performance-related, AI, and infrastructure work.

In plain words
What is it for?
Use it to decide whether to work directly, inspect and validate locally, or ask one focused specialist to examine a specific uncertainty or risk.
Why use it?
It helps prevent both overcomplicating small changes and overlooking risks in larger or less clear tasks. It also sets limits for when to involve a specialist.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to decide whether to work directly, inspect and validate locally, or ask one focused specialist to examine a specific uncertainty or risk.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gabriele-mastrapasqua/codex-lean-team/adaptive-routing
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 gabriele-mastrapasqua/codex-lean-team --skill adaptive-routing
Clone the repo
git clone --depth 1 https://github.com/gabriele-mastrapasqua/codex-lean-team

Made for: Claude Code, Codex.

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 adaptive-routing

README.md
[![agentmods](https://agentmods.dev/badge/skills/gabriele-mastrapasqua/codex-lean-team/adaptive-routing/github.svg)](https://agentmods.dev/skills/gabriele-mastrapasqua/codex-lean-team/adaptive-routing)
Your own site
<a href="https://agentmods.dev/skills/gabriele-mastrapasqua/codex-lean-team/adaptive-routing"><img src="https://agentmods.dev/badge/skills/gabriele-mastrapasqua/codex-lean-team/adaptive-routing/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 adaptive-routing

Your own site · 80×15
<a href="https://agentmods.dev/skills/gabriele-mastrapasqua/codex-lean-team/adaptive-routing"><img src="https://agentmods.dev/badge/skills/gabriele-mastrapasqua/codex-lean-team/adaptive-routing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 563 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.00039 $0.00563
Opus 5 $0.00019 $0.00282
Sonnet 5 $0.00008 $0.00113
Haiku 4.5 $0.00004 $0.00056

Measured 10d ago against content hash 993337663d76, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

adaptive-routing 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 10d 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.

skills/adaptive-routing/SKILL.md · 43 lines

How it starts

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

Default: direct execution

Complete the task directly when it is reasonably contained and can be validated through local inspection, compilation, tests, linting, or a focused runtime check.

Examples:

  • fixing a localized bug;
  • adding an endpoint;
  • changing a CLI option;
  • updating a query;
  • adding tests;
  • modifying configuration;
  • implementing a small feature;
  • refactoring a limited component;
  • updating documentation.

Delegation rules

Before spawning any subagent, identify a narrow question or a concrete decision, risk, domain constraint, or failure mode. A full blocker is not required: use one focused specialist early when its output is likely to change the next implementation step.

  • Delegate when a specialist can answer faster or with higher confidence than reading alone.
  • Stop delegation when the next agent is unlikely to change the decision.
  • Keep agent outputs concise; pass summaries, not full transcripts.
  • Do not chain planner then explorer then worker then reviewer.
  • Use one focused specialist for concrete uncertainty or a specialist domain; keep its scope narrow and read-only.

Allowed escalation paths

Use at most one specialist per concrete decision, risk, or failure mode:

  • lean-planner: ambiguous requirements, architectural choices with multiple viable designs, destructive migrations, difficult rollback, or conflicting requirements after a short scan.
  • lean-explorer: one narrow question about an unfamiliar or cross-cutting code path when local reading would duplicate broad context. Use Luna at high.
  • lean-debugger: root-cause investigation with Luna at max after Luna reproduces or inspects a difficult, intermittent, cross-layer, previously failed, or multi-hypothesis failure.
  • lean-native: native or unsafe systems code with Luna at max: C/C++, Rust, SIMD, CUDA, Metal, FFI, memory ownership, or atomics.
  • lean-reviewer: when the user explicitly requests a review, or for security, concurrency, migrations, public API, unsafe code, large diffs, or changes where tests cannot provide reasonable confidence.
  • lean-performance: performance work with a reproducible benchmark, profile, or identified hot path. Use Luna at high.
  • lean-ai-ml: model inference, training, quantization, RAG, OCR, TTS, CUDA, Metal, MLX, llama.cpp, or vLLM. Use Luna at high.
  • lean-infrastructure: deployment, CI/CD, containers, networking, cloud, observability, scaling, or reliability. Use Luna at high.

Read the full file on GitHub · 43 lines

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. 10d ago First seen · 43 lines · 39 tokens per session scan A 993337663d76

Subscribe to this mod's changes

adaptive-routing is a skill published in the GitHub repository gabriele-mastrapasqua/codex-lean-team (3 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 563 once invoked, about $0.0002 per session on Opus 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-08-31.

Related

Other skills, from other repositories

maintain-codex-wiki

Maintain a review-first Markdown knowledge base for Codex practices with source provenance, engineering capture, citation-aware queries, explicit archive and promotion, and deterministic linting. Use when asked to capture a durable engineering lesson, ingest Codex research, query or archive what the repository knows…

Phelan164/codex-howto · 76 tokens

orchestrate-engineering

Coordinate complex engineering work across bounded subagents while protecting the main context, preventing edit conflicts, and measuring whether delegation was worthwhile. Use when the user asks to delegate, parallelize, orchestrate, use subagents, fan out a review, or handle a large task with independent workstreams…

Phelan164/codex-howto · 78 tokens

operate-devops

Plan and implement infrastructure, CI/CD, container, deployment, observability, and operational configuration changes with least privilege, staged validation, and rollback awareness. Use for pipelines, infrastructure as code, Kubernetes, containers, release automation, monitoring, and production-readiness work; do not…

Phelan164/codex-howto · 69 tokens

choose-engineering-flow

Select the smallest useful Codex engineering workflow from this repository's existing skills. Use when a task spans multiple engineering concerns, the user is unsure which skill to invoke, or loading every specialist would waste context; return a recommendation only and do not execute the engineering task.

Phelan164/codex-howto · 58 tokens

build-backend

Build or modify backend APIs, services, jobs, persistence, and integrations while preserving contracts, authorization, data integrity, and failure behavior. Use for server-side features, database changes, background processing, backend defects, and service refactors; do not use for frontend-only or infrastructure-only…

Phelan164/codex-howto · 62 tokens

build-frontend

Build or modify frontend interfaces using repository-native components while preserving accessibility, responsive behavior, state handling, and visual verification. Use for UI features, design implementation, forms, client-side defects, and frontend refactors; do not use for backend-only or infrastructure-only work.

Phelan164/codex-howto · 57 tokens