adding-model-support
Skill41 starsChanged 6 months agoMITView on GitHub
Use this skill whenever contributing model support to the `winml` CLI: an unsupported Hugging Face model or architecture, an existing family that fails in one or more commands, a missing recipe, exporter, resolver, task, dataset adapter, evaluator, or promotion handoff. It diagnoses the gap, implements the narrowest reusable fix, validates the result, opens a draft model-support PR, and captures reusable findings. Trigger even when the user asks to repair support rather than explicitly saying "add model support". Do not use it merely to run or tune an already-supported model, optimize an existing recipe, or add a new execution provider backend.
In this repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- tests/CLAUDE.mdCLAUDE.md
- auto-optimizeSkill
- use-winml-cliSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Use this skill to take one unsupported or partially supported model from current-main diagnosis through a validated draft contribution.
- Very specific: line 27
Run from a microsoft/winml-cli checkout with Python 3.11, uv, authenticated gh, and push access.
- Very specific: line 34
Run one model at a time. The orchestrator delegates every role to a fresh agent and drives all loop-backs to APPROVE, REJECT, or BLOCKED.
- Very specific: line 57
Every model-support PR targets main, remains draft, and carries model-scale-by-skill.
- Very specific: line 59
Every required (EP, device, precision) tuple retains exact PASS, blocked, or exhausted-failure evidence.
- Distinctive: line 60
Run one bounded final-SHA FP32 CPU functional smoke Eval.
- Distinctive: line 61
Treat a recipe as authoritative during recipe validation.
- Very specific: line 62
Prefer narrow metadata/config/architecture-derived shared fixes.
- Very specific: line 63
Never edit examples/recipes/README.md for recipes produced by this workflow.
- Distinctive: line 68
Read model knowledge before planning and update it only with scoped evidence after testing.
- Distinctive: line 70
Use response and trigger evals when changing this skill's behavior or description.
≈ “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.
Files
Adding model support
Use this skill to take one unsupported or partially supported model from current-main diagnosis through a validated draft contribution. Diagnose first, freeze the Effort/Goal/Outcome target from evidence, implement the narrowest reusable fix, validate independently, and capture durable knowledge.
This is a dispatcher, not the complete procedure. Load the owning role contract under agents/ at every transition. Do not substitute this overview for those instructions.
Repository scope
This skill lives in skills/adding-model-support/ in microsoft/winml-cli. Resolve src/..., tests/..., and examples/... from the repository root. Keep methodology changes under skills/adding-model-support/** in a separate skill-only branch and PR; never mix them into a model-support PR.
Prerequisites and optional integrations
- Run from a
microsoft/winml-clicheckout with Python 3.11,uv, authenticatedgh, and push access. The orchestrator verifies these before implementation. - The agent runtime must support fresh subagent delegation. Each role loads its file under
agents/; if delegation is unavailable, stop as BLOCKED rather than collapsing producer, tester, and reviewer into one agent. model-breakdownis optional. When discoverable as an installed skill, require schema1.2+; otherwise the planner builds the same profile from pinned source, config, and model-card evidence.auto-optimizeis optional and needed only for--promotion-handoff. Discover itsscripts/promotion.pythrough the installed skill location. If it is absent or incompatible, promotion mode stops as BLOCKED while normal model-support work remains available. Follow the orchestrator promotion handoff entry.
Pipeline
Run one model at a time. The orchestrator delegates every role to a fresh agent and drives all loop-backs to APPROVE, REJECT, or BLOCKED; REQUEST_CHANGES is not terminal.
| Role | Owns | Contract |
| Orchestrator | preflight, delegation, loop continuation, isolation, cleanup | orchestrator.md |
| Planner | current-main diagnosis, model profile, baseline, Effort/Goal/Outcome charter | planner.md |
| Producer | minimal code and exact-evidence recipe candidates | producer.md |
| Tester | repair loop and Goal-ladder verdicts | tester.md |
| Learner | model knowledge, methodology findings, blocker diligence | learner.md |
| Explainer | existing/new draft PR, body, label, replies, shipment | explainer.md |
| Reviewer | independent final-head verification and one opinion comment | reviewer.md |
planner -> producer -> tester -> learner -> explainer -> reviewer
^ ^ |
| +---- artifact REQUEST_CHANGES --------+
+---------------- scope/tier contradiction --------+Non-negotiable boundaries
- Planner freezes the target only after current-main baseline evidence. If reality contradicts it, return to planner.
- Producer, tester, explainer, and reviewer remain separate agents. The reviewer starts from a fresh context after the draft PR exists.
- Every model-support PR targets
main, remains draft, and carriesmodel-scale-by-skill. Dependency ancestry never changes the live PR base. - The reviewer writes only one normal PR comment containing
APPROVE,REQUEST_CHANGES, orREJECT; these are not GitHub Review states. - Every required
(EP, device, precision)tuple retains exact PASS, blocked, or exhausted-failure evidence. Never infer one tuple from another. - Run one bounded final-SHA FP32 CPU functional smoke Eval; do not present it as representative accuracy. Keep per-tuple performance and both component-level and op-level Analyze evidence.
- Treat a recipe as authoritative during recipe validation. Semantic CLI overrides are diagnostic evidence, not proof that the recipe works.
- Prefer narrow metadata/config/architecture-derived shared fixes. Preserve existing public defaults, signatures, recipe semantics, and sibling-model behavior with regression tests.
- Never edit
examples/recipes/README.mdfor recipes produced by this workflow. - Cleanup is orchestrator-owned, manifest-driven, dry-run-first, and limited to marked run-owned regenerable state via cleanup-run-cache.ps1.
Knowledge and evaluation resources
- Read model knowledge before planning and update it only with scoped evidence after testing.
- Record reusable workflow lessons in skill methodology findings; preserve historical provenance.
- Use response and trigger evals when changing this skill's behavior or description.
Begin execution by loading the orchestrator contract.
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.

