AI agent skills for writing tests
Test-writing skills are mostly about restraint: what to assert, what to mock, and when a test is testing the framework rather than your code. A good one pins the project's test runner and conventions so the agent stops inventing a new style per file, and insists on a failing test before the fix. Watch for skills that chase a coverage number — coverage is a symptom, and a skill that optimizes it directly will write tests that execute lines without checking anything.
People land here searching for “claude code skill for writing tests”, “agent skill unit tests”, “tdd skill for cursor”.
293 writing tests skills Refine in search →
-
affaan-m Skill Cpp TestingWrite, fix, and run C++ tests using GoogleTest/GoogleMock with CMake/CTest, including TDD workflows, coverage, and sanitizers.
Audited 226k -
affaan-m Skill Rust TestingWrite reliable, maintainable Rust tests using unit tests, integration tests, async testing, property-based testing, mocking, and coverage following TDD methodology.
Audited 226k -
github Bundle Unit Test Vue PiniaWrite and review unit tests for Vue 3 + TypeScript + Vitest + Pinia codebases, covering components, composables, and stores with behavior-first assertions.
Audited 36.2k -
alirezarezvani Bundle Senior QAGenerates unit tests, integration tests, and E2E tests for React/Next.js applications by scanning components, analyzing coverage reports, and scaffolding Playwright test files.
Audited 20.4k -
antfu Bundle VitestWrite and run unit tests with Vitest, a Vite-native testing framework offering Jest-compatible API, mocking, coverage, and snapshot testing.
Audited 5.5k -
dotnet Bundle MCP Csharp TestTest C# MCP servers at unit and integration levels using xUnit, Moq, and the MCP client SDK.
Audited 4k -
affaan-m Skill Csharp TestingProvides C# and .NET testing patterns using xUnit, FluentAssertions, mocking, integration tests, and test organization best practices.
Audited 226k -
somtougeh Skill Unit Test LoopThis skill should be used when the user asks to "improve test coverage", "add unit tests", "TDD", "test this module", "write tests for", "increase coverage", "/ut command", or discusses unit testing strategies. Covers the unit test loop workflow, React Testing Library best practices, query priorities, and coverage improvement strategies.
Audited 2 -
github Skill Csharp TunitWrite effective unit tests with TUnit, covering standard tests, data-driven tests, and migration from xUnit.
Audited 36.2k -
auto-skiller Skill Test CoverageAnalyzes test coverage reports, identifies under-covered files, and generates missing tests to reach 80% or higher coverage.
Audited 1 -
sickn33 Skill Unit Testing Test GenerateGenerate comprehensive, maintainable unit tests across languages with strong coverage and edge case focus.
45.1k -
hoangnguyen0403 Bundle Java TestingTesting standards using JUnit 5, AssertJ, Mockito, Cucumber, and Spring Boot integration tests for Java. Use when writing or reviewing Java test behavior, including parallel execution and BDD; defer Kotlin-only tests, virtual-thread test infrastructure, and coverage-report/tooling configuration.
Audited 542 -
affaan-m Skill Fsharp TestingWrite and organize F# tests using xUnit, FsUnit, Unquote, FsCheck for property-based testing, and integration test patterns with ASP.NET Core and Testcontainers.
Audited 226k -
dotnet Bundle Code Testing AgentGenerates and writes unit tests for any programming language using a multi-agent pipeline that researches, plans, and implements tests with build and verification steps.
Audited 4k -
github Skill Csharp XunitWrite effective unit tests with XUnit, covering standard and data-driven testing approaches.
Audited 36.2k -
matlab Bundle Matlab Write TestGenerate and run MATLAB unit tests using matlab.unittest and matlab.uitest. Parameterized tests, fixtures, mocking, coverage analysis, CI/CD with buildtool, app testing with gestures. Use when creating tests, writing test classes, running test suites, checking coverage, testing apps, or validating MATLAB code.
Audited 920 -
github Skill Java JunitWrite effective unit tests with JUnit 5, covering standard and data-driven testing approaches.
Audited 36.2k -
github Skill Csharp NunitWrite effective unit tests with NUnit, covering standard and data-driven testing approaches.
Audited 36.2k -
alirezarezvani Bundle Tdd GuideGenerates unit tests, analyzes coverage gaps, and guides red-green-refactor workflows across Jest, Pytest, JUnit, Vitest, and Mocha.
Audited 20.4k -
eclipse-che Skill Check CoverageRun test coverage for all packages changed on this branch and identify uncovered code. Always invoke before writing a PR description, after adding new code, or when a PR receives coverage-related review feedback. Prevents CI coverage failures and catches untested code before reviewers do.
-
bbgnsurftech Bundle Analyzing Test CoverageAnalyze code coverage metrics and identify untested code paths. Use when analyzing untested code or coverage gaps. Trigger with phrases like "analyze coverage", "check test coverage", or "find untested code".
-
seb1n Skill TestingGenerate, execute, and analyze tests for codebases, covering unit, integration, and end-to-end testing with coverage reporting. Use when the user requests testing or provides relevant inputs for this workflow.
Audited 159 -
wso2 Bundle Test CoverageTurn source changes (PRs/branches/diffs across carbon-apimgt, product-apim, docs-apim) into verified tests — unit + integration — that improve coverage and harden product flows against regressions. Use when a feature or patch developer wants tests written for their changes, or asks "what tests should I add / is this covered". Decides unit vs integration per a rubric, reuses existing steps/features (no duplication), and gates new capabilities/blocks on lead approval.
Audited -
android Bundle Testing SetupAnalyze and create a testing strategy for native Android apps, including installing testing libraries, setting up test infrastructure, and creating harnesses for unit tests, UI tests, screenshot tests, and end-to-end tests.
6.1k
How to install a writing tests skill
- Compare the skills. Read the writing tests skills below — each page shows the full SKILL.md, its safety verdict, and the capabilities it declares.
- Install it. Run npx skillmds@latest add <owner>/<name>. The CLI writes the skill into every agent directory it detects, or use --agent to pin one.
- Use it. Restart your agent. It loads the skill on demand the next time you ask for something that matches — you do not have to name the skill.
What makes a good writing tests skill?
Test-writing skills are mostly about restraint: what to assert, what to mock, and when a test is testing the framework rather than your code. A good one pins the project's test runner and conventions so the agent stops inventing a new style per file, and insists on a failing test before the fix. Watch for skills that chase a coverage number — coverage is a symptom, and a skill that optimizes it directly will write tests that execute lines without checking anything.
Every skill listed here is a plain SKILL.md file in the format Anthropic documents for Agent Skills, read unchanged by Cursor, OpenAI Codex and 60+ agents. Each passes a safety review before it is publicly listed; the verdict and declared capabilities are on every skill's page.
Frequently asked questions
What is an agent skill for writing tests?
Test-writing skills are mostly about restraint: what to assert, what to mock, and when a test is testing the framework rather than your code. A good one pins the project's test runner and conventions so the agent stops inventing a new style per file, and insists on a failing test before the fix. Watch for skills that chase a coverage number — coverage is a symptom, and a skill that optimizes it directly will write tests that execute lines without checking anything.
Will a test skill work with my test runner?
Most are runner-agnostic and read your existing tests to infer conventions. Where a skill is specific — Jest, pytest, Go's testing package, RSpec — it says so in its description, and the skill page's frontmatter shows exactly what it expects.
Which agents can use these writing tests skills?
Any agent that reads SKILL.md files: Claude Code, Claude.ai, Cursor, OpenAI Codex, Windsurf, OpenCode and 60+ others. The format is not vendor-specific, so the same file works everywhere — each agent just keeps its skills in a different directory, listed at /agents.
Are these writing tests skills free?
Yes. Searching, reading and installing skills on SkillMD is free and needs no account. Individual skills carry their own licence, shown on each skill's page.