agentleFS
MicrosoftKnown publishermicrosoft/winml-cli/skills/adding-model-support/SKILL.md

adding-model-support

Skill51 starsChanged 41 days 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 activate for explanation-only questions about operator coverage reports or execution-provider internals, even when they mention an unsupported operator or a crash; those require a request to implement or repair 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.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. NVIDIA-NeMo/Megatron-Bridge★ 1ksame name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

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
  1. Distinctive:

    Use this skill to take one unsupported or partially supported model from current-main diagnosis through a validated draft contribution.

    line 19
  2. Very specific:

    Run from a microsoft/winml-cli checkout with Python 3.14 x64, uv, authenticated gh, and push access.

    line 29
  3. Very specific:

    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.

    line 36
  4. Very specific:

    Every model-support PR targets main, remains draft, and carries model-scale-by-skill.

    line 60
  5. Very specific:

    Every required (EP, device, precision) tuple retains exact PASS, blocked, or exhausted-failure evidence.

    line 62
  6. Distinctive:

    Run one bounded final-SHA FP32 CPU functional smoke Eval.

    line 63
  7. Distinctive:

    Treat a recipe as authoritative during recipe validation.

    line 64
  8. Very specific:

    Prefer narrow metadata/config/architecture-derived shared fixes.

    line 65
  9. Very specific:

    Never edit examples/recipes/README.md for recipes produced by this workflow.

    line 66
  10. Distinctive:

    Read model knowledge before planning and update it only with scoped evidence after testing.

    line 71
  11. Distinctive:

    Use response and trigger evals when changing this skill's behavior or description.

    line 73

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

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-cli checkout with Python 3.14 x64, uv, authenticated gh, 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-breakdown is optional. When discoverable as an installed skill, require schema 1.2+; otherwise the planner builds the same profile from pinned source, config, and model-card evidence.
  • auto-optimize is optional and needed only for --promotion-handoff. Discover its scripts/promotion.py through 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.

RoleOwnsContract
Orchestratorpreflight, delegation, loop continuation, isolation, cleanuporchestrator.md
Plannercurrent-main diagnosis, model profile, baseline, Effort/Goal/Outcome charterplanner.md
Producerminimal code and exact-evidence recipe candidatesproducer.md
Testerrepair loop and Goal-ladder verdictstester.md
Learnermodel knowledge, methodology findings, blocker diligencelearner.md
Explainerexisting/new draft PR, body, label, replies, shipmentexplainer.md
Reviewerindependent final-head verification and one opinion commentreviewer.md
planner -> producer -> tester -> learner -> explainer -> reviewer
   ^           ^                                      |
   |           +---- artifact REQUEST_CHANGES --------+
   +---------------- scope/tier contradiction --------+

Non-negotiable boundaries

  • Model-supplied code requires the custom-code execution gate before any probe or run: reviewed immutable model/code revisions, explicit user authorization for those revisions, and verified credential-free, network-disabled isolation. A recipe, loader warning, historical finding, or invocation of this skill is not approval. Missing prerequisites mean BLOCKED, never an automatic trust-flag retry.
  • 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 carries model-scale-by-skill. Dependency ancestry never changes the live PR base.
  • The reviewer writes only one normal PR comment containing APPROVE, REQUEST_CHANGES, or REJECT; 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.md for 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.

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.