Skills for Real Engineers. Straight from my .agents directory.
snapshot-testing
Agent skill fromAaronontheweb/dotnet-skills
Use Verify for snapshot testing in .NET. Approve API surfaces, HTTP responses, rendered emails, and serialized outputs. Detect unintended changes through human-reviewed baseline files.
How to install snapshot-testing
npx skills add Aaronontheweb/dotnet-skills# or add only this skill to Claude Code: copy the folder
skills/snapshot-testing/
# into
~/.claude/skills/snapshot-testing/ (all projects)
.claude/skills/snapshot-testing/ (one project)
1# Snapshot Testing with Verify23## When to Use This Skill45Use snapshot testing when:6- Verifying rendered output (HTML emails, reports, generated code)7- Approving public API surfaces for breaking change detection8- Testing HTTP response bodies and headers9- Validating serialization output10- Catching unintended changes in complex objects1112---1314## What is Snapshot Testing?1516Snapshot testing captures output and compares it against a human-approved baseline:17181. **First run**: Test generates a `.received.` file with actual output192. **Human review**: Developer approves it, creating a `.verified.` file203. **Subsequent runs**: Test compares output against `.verified.` file214. **Changes detected**: Test fails, diff tool shows differences for review2223This catches **unintended changes** while allowing **intentional changes** through explicit approval.2425---2627## Installation2829### Add Verify Package3031```bash32dotnet add package Verify.Xunit33# or for other test frameworks:34dotnet add package Verify.NUnit35dotnet add package Verify.MSTest36```3738### Configure ModuleInitializer3940Create a `ModuleInitializer.cs` in your test project:4142```csharp43using System.Runtime.CompilerServices;4445public static class ModuleInitializer46{47 [ModuleInitializer]48 public static void Init()49 {50 // Use source-file-relative paths for verified files51 VerifyBase.UseProjectRelativeDirectory("Snapshots");5253 // Configure diff tool (optional - auto-detected)54…
Excerpt shown under the repository's MIT license.
More skills in dotnet-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
