Skip to content
Development
Skill

/dotnet-verify

This skill should be used when working with Verify snapshot tests in .NET projects. Use when updating verified snapshots after intentional code changes, accepting new snapshots, discovering verify tests, or troubleshooting snapshot mismatches. Trigger phrases include "verify

From plugin
claude-code-rules
14227 skills13 agents16 commands3 MCP

Claude Code

$ npx -y skills add NikiforovAll/claude-code-rules --skill dotnet-verify --agent claude-code

SKILL.md

dotnet-verify.SKILL.md
name: dotnet-verify
description: This skill should be used when working with Verify snapshot tests in .NET projects. Use when updating verified snapshots after intentional code changes, accepting new snapshots, discovering verify tests, or troubleshooting snapshot mismatches. Trigger phrases include "verify tests", "update snapshots", "accept snapshots", "verified files", ".verified.txt".

.NET Verify Snapshot Testing

Manage [Verify](https://github.com/VerifyTests/Verify) snapshot tests using the `verify.tool` dotnet local tool.

Discovery

To list all test files using Verify snapshots:

rg -l "Verifier\.Verify|UsesVerify|\.verified\." --type cs

To scope to a specific directory:

rg -l "Verifier\.Verify|UsesVerify|\.verified\." --type cs <path/to/test/directory>

Update Snapshots

To update snapshots after intentional code changes:

1. Build the solution:

   dotnet build -p:WarningLevel=0 /clp:ErrorsOnly --verbosity minimal

2. Run affected verify tests (they fail, generating `.received.` files):

   dotnet test <test-project> --no-build --filter "FullyQualifiedName~<TestClass>" -v m

3. Accept all new snapshots:

   dotnet verify accept -y

To scope to a specific directory:

   dotnet verify accept -y -w <path/to/test/directory>

4. Re-run tests to confirm they pass:

   dotnet test <test-project> --no-build --filter "FullyQualifiedName~<TestClass>" -v m

File Conventions

  • `ClassName.MethodName.verified.txt` — accepted snapshot (committed to git)
  • `ClassName.MethodName.received.txt` — latest test output (not committed, gitignored)
  • Parameterized tests: `ClassName.MethodName_param=value.verified.txt`

Quick Reference

| Command | Purpose | |---|---| | `dotnet verify accept -y` | Accept all pending snapshots | | `dotnet verify accept -y -w <dir>` | Accept snapshots in specific directory | | `rg -l "Verifier\.Verify\|UsesVerify\|\.verified\." --type cs` | List all test files using Verify |

Read more
@nikiforovall
Ships withclaude-code-rules

A collection of Claude Code recommendations and practices. Learn practical techniques to enhance your AI-assisted development workflow with Claude Code.

14227 skills13 agents3 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
142
Star history of NikiforovAll/claude-code-rules on GitHub, a chart by star-history.com

Other skills on claude-code-rules.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about dotnet-verify.

Which coding agents can use dotnet-verify?
dotnet-verify installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.