Workflow router
Skill alainlebret/claude-agents/higher-ed-teaching-agents/skills/workflow-router
Selects the best workflow-spec dynamically from the repository, computes the minimal skill chain, and emits a deterministic routing decision with confidence and fallback. Use when the orchestrator receives a pedagogical request and must choose among multiple workflows without hardcoded chains.From its SKILL.md
npx -y skills add alainlebret/claude-agents --skill workflow-routerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.0 KB, 353 tokens by cl100k_base, as published. Nobody here has run it
Workflow Router
Goal
Map an instructor request to exactly one workflow in workflows/*/workflow-spec.json, with explicit rationale and fallback behavior.
Inputs
- Instructor request (free text)
- Optional
mission.json - Repository workflow inventory under
workflows/
Produce
Write routing-decision.json with:
request_summarycandidate_workflows(ranked)selected_workflowselected_reasonconfidence(high|medium|low)required_skillsoptional_skills_selectedskip_conditions_appliedhuman_confirmation_required(bool)fallback_workflow
Selection policy
- Discover candidates by reading all
workflow-spec.jsonfiles. - Score candidates on:
- intent match (create, redesign, evaluate, validate, benchmark);
- artifact intent (exam/lab/course/project/grading/figures);
- constraints (language_mode, evaluation_mode, level, duration, toolchain);
- required input availability.
- Select the highest score only if score gap to second candidate is significant.
- If ambiguity remains, set
human_confirmation_required: true.
Skill-chain policy
- Start from workflow
execution_order. - Apply
skip_conditionsif artifacts already exist and pass validators. - Add optional skills only when their trigger in
optional_extensionsis satisfied. - Never invent a skill not present in workflow spec.
Rules
- Do not use hardcoded workflow names in logic; load from repository each run.
- Emit one selected workflow, never multiple.
- If confidence is low, provide a fallback and require confirmation before generation.
- Keep routing deterministic for same inputs and same repository state.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.