smithery/yatarousan0227

agent-contracts-routing-tuning

Tune routing with TriggerCondition priorities, LLM hints, context_builder, and traceable decisions.

Installation

$ npx skills add smithery/yatarousan0227 --skill agent-contracts-routing-tuning

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/yatarousan0227.

npx skills add smithery/yatarousan0227

Browse all from smithery/yatarousan0227

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

More metadata
short-description
Routing design and debugging

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,436 B
  • docs SUMMARY.md 137 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

agent-contracts Routing Tuning

Use this skill when you are designing or debugging routing behavior (rule matches vs LLM selection).

Routing Model (what to optimize)

  1. Rule filtering via TriggerCondition (when / when_not, priority)
  2. Candidate selection (top matches + ties)
  3. Optional LLM decision among candidates (with llm_hint)
  4. Fallbacks and terminal states (response.response_type)

Practical Tuning Steps

  1. Make rule-based selection deterministic first (LLM off).
  2. Use priorities to express business rules (100+ = critical, 50-99 = main, 1-49 = fallback).
  3. Add llm_hint only where ambiguity remains after rules.
  4. Use context_builder only when needed; keep default minimal slices.
  5. Debug with decidewithtrace() and inspect matched rules.

Guardrails

  • Prefer rules for safety/constraints; use LLM for ambiguous intent.
  • Keep candidate sets small and explainable.
  • Treat response.response_type terminal values as part of routing design.

References (load only when needed)

  • docs/core_concepts.md (Traceable Routing / Context Builder)
  • examples/02routingexplain.py
  • docs/skills/official/agent-contracts-routing-tuning/references/debug_playbook.md