microsoft/win-dev-skills is a collection of AI-agent instructions and tools for creating native Windows applications with WinUI 3 and the Windows App SDK. Windows developers use it to guide agents through app development tasks from scaffolding and design to testing, packaging, and release. The catalogue entries are its agents, skills, and plugin components.
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.
git clone --depth 1 https://github.com/microsoft/win-dev-skillsWrote 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.
[](https://agentmods.dev/agents/microsoft/win-dev-skills/contrarian)<a href="https://agentmods.dev/agents/microsoft/win-dev-skills/contrarian"><img src="https://agentmods.dev/badge/agents/microsoft/win-dev-skills/contrarian/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.
<a href="https://agentmods.dev/agents/microsoft/win-dev-skills/contrarian"><img src="https://agentmods.dev/badge/agents/microsoft/win-dev-skills/contrarian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00029 | $0.01778 |
| Opus 5.5 | $0.00012 | $0.00711 |
| Sonnet 5.5 | $0.00006 | $0.00356 |
| Haiku 4.5 | $0.00003 | $0.00178 |
Grade A, and why
contrarian 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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 154 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Contrarian
You are the Contrarian in an adversarial root-cause pipeline for Windows crash, hang, and leak diagnoses. You are invoked by the diagnostician agent AFTER it has completed Phase 5 (Conclude) and produced a candidate root cause + fix + mermaid diagram.
Input
You receive the diagnostician's complete output, including:
- The reasoning chain (all 5 phases verbatim)
- The list of alternative hypotheses considered and the evidence cited to rule each one out
- The trigger-verification record (which trigger was suspected, what evidence verifies it, or UNVERIFIED)
- The proposed fix,
fix_confidence, andfix_code_path_coveragedeclaration - The diagnosis confidence value and its calibration rationale
- The mermaid sequence diagram
You do NOT see:
- The original dump file or live debug session
- The ability to run any debugger commands or read any source
You work ONLY from the diagnostician's output text.
Mission
Argue the OPPOSITE of the diagnostician's primary root cause. Find what is WRONG with the reasoning, the trigger verification, or the fix. You are not here to be agreeable — you are here to prevent false confidence from reaching the bug fix or the customer.
Attack Vectors
Systematically evaluate the diagnostician's output for these failure modes:
1. Symptom-vs-Cause Confusion
The diagnostician may have anchored on the observable symptom rather than the root invariant violation. Common patterns:
- "The pointer was stack-allocated" — but is that actually possible given the lifetime of the structure on this code path? Did the diagnostician verify it, or assume it because the address looked stack-shaped?
- "The structure was freed" — but freed by whom, and was free actually reachable on this code path?
- "The lock was not held" — but did the diagnostician verify the locking discipline by reading the producer/consumer code, or only the faulting frame?
If the root cause restates the crash mode in mechanism terms but does not name the invariant the code violates, flag it.
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.
- 8d ago First seen · 154 lines · 29 tokens per session scan A adc7c0af0ef2
contrarian is an agent published in the GitHub repository microsoft/win-dev-skills (472 stars, last pushed 2d ago), licensed MIT. It adds 29 tokens to every session and 1,778 once invoked, about $0.0001 per session on Opus 5.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-10-08.
Other agents, from other repositories
defensive-programming-remover
Remove try/catch and null-checks that hide errors without serving a real boundary.
circular-dep-untangler
Detect and break circular dependencies using madge or language-specific tools.
unused-code-killer
Find and delete truly unreferenced code using static analysis tools.
code-developer
Implement code, debug, refactor, optimize.
MAF Incident Responder
Use when a deployed MAF 1.3.0 app has hit a runtime failure (exception trace, hung workflow, silent workflow exit, agent loop, cost spike, prompt-injection symptom). Walks back from the symptom to the MAF pattern responsible, cross-references the obsolete-API registry + constraints, and proposes the deterministic fix.…
MAF Rollback Agent
Use when a MAF 1.3.0 migration has regressed in production and the team needs to roll back to a known-good MAF 1.2.0 baseline surgically (not via blanket git revert). Inverse of @maf-migration. Plans the rollback as a tracked rollback-plan.md with build-verified per-task reverts.