writing-mstest-tests SKILL.md skillA
writing-mstest-tests from dotnet/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add dotnet/skills/writing-mstest-tests@git:20261008.a51399bPins git:20261008.a51399b in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- dotnet/skills
- Path
plugins/dotnet-test/skills/writing-mstest-tests/SKILL.md- Versions recorded
- 7
- Latest version
- git:20261008.a51399b, committed Oct 8, 2026
- First version recorded
- Aug 27, 2026
- Size
- 19,980 bytes
- Repository stars
- 5,836
- License
- MIT
ALWAYS USE when asked to fix, rewrite, update, improve, modernize, show corrected code for, or explain existing MSTest tests or MSTest-specific configuration. Use for "review" when corrected code or edits are wanted, even for one pasted assertion or passing tests with bad failure output. Covers expected/actual labels; generic Boolean, collection, string, numeric, null, identity, exception, hard-cast, and object[] checks; TestContext/lifecycle; timeout/cancellation; OS/CI conditions, retry…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Writing MSTest Tests Help users write effective MSTest unit tests without exceeding the API level or conventions of the project's installed test stack. ## Repository overlay For every repository-scoped task where read-only file inspection is allowed, check `.agents/skill-overlays/dotnet-test/writing-mstest-tests.md` at the repository root before any other discovery. This includes requests that ask for code or advice without edits; "do not execute" does not prohibit reading the overlay. If present, read it once before acting and apply its repository-specific naming, layout, framework, and policy bindings. Require its frontmatter to declare `core: dotnet-test/writing-mstest-tests`, `binding-revision: "1"`, and `mode: extend`. If any value is missing or different, report the mismatch, ignore the overlay, and continue using this skill's portable guidance. Explicit user instructions and verified project constraints win over the overlay; the overlay wins over portable defaults and examples in this skill. If the file is present but unreadable or conflicts with the repository, report the problem, ignore the overlay, and continue with portable guidance subject to …
Read the whole file at its exact version.
How to install
mdr add dotnet/skills/writing-mstest-tests@sha256:0b279db26d24af21The line at the top of this page pins the label git:20261008.a51399b, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_ruicmow7zi7hapsb)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 7 versions of this file, between Aug 27, 2026 and Oct 8, 2026, about one every 7 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261008.a51399b latest | 2026-10-08 | a51399b | 19,980 B | A | view · diff |
| git:20260930.0c7d740 | 2026-09-30 | 0c7d740 | 19,992 B | A | view · diff |
| git:20260904.cb9651d | 2026-09-04 | cb9651d | 24,706 B | A | view · diff |
| git:20260903.30b30ef | 2026-09-03 | 30b30ef | 23,349 B | A | view · diff |
| git:20260902.00b3bac | 2026-09-02 | 00b3bac | 23,254 B | A | view · diff |
| git:20260828.2b9056b | 2026-08-28 | 2b9056b | 22,224 B | A | view · diff |
| git:20260827.a77e7da | 2026-08-27 | a77e7da | 20,420 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (19980 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
dotnet/skills · 5,836 stars · license MIT · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_ruicmow7zi7hapsb GET https://markdownregistry.com/api/v1/resolve?ref=dotnet/skills/writing-mstest-tests GET https://markdownregistry.com/api/v1/blob/0b279db26d24af215a18cbca8db05b70cce7f6f4a9f1541a2f2c7ade23321354
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.