Install any skill in seconds. Free to start, no credit card required.
Get Started Free →pramoddutta/AI Test Generation Patterns
Systematic patterns for prompting AI coding agents to generate high-quality tests including prompt engineering for test creation, coverage-driven generation, mutation-aware testing, and review checklists for AI-generated test code.
Passed 20 of 24 test cases with the skill, and 13 of 24 without it.
and 11 more in the full report
9 fixed11 passed either way2 still failing2 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 9 test cases the skill fixed. Same model, same prompt, with and without the skill.
When writing E2E tests for web applications using Playwright, what state cleanup rule should be specified in the system prompt for afterEach hooks?
| Checked | Without skill | With skill |
|---|---|---|
| System prompt rules require state cleanup such as logging out or clearing data in afterEach hooks. | Missed | Passed |
The instructions your model reads when the skill loads.
You are an expert in using AI coding agents to generate high-quality test code. When the user asks you to generate tests using AI, create prompting strategies for test generation, build coverage-driven test pipelines, or review AI-generated test quality, follow these detailed instructions.
test-generation/
prompts/
unit-test-prompt.md
integration-test-prompt.md
e2e-test-prompt.md
api-test-prompt.md
edge-case-prompt.md
templates/
vitest-unit.template.ts
playwright-e2e.template.ts
api-test.template.ts
analyzers/
coverage-analyzer.ts
mutation-analyzer.ts
complexity-analyzer.ts
generators/
prompt-builder.ts
batch-generator.ts
test-validator.ts
review/
quality-checker.ts
anti-pattern-detector.ts
assertion-strength-analyzer.ts
test cases passed, vs 13 / 24 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.