Back to Skills
test-writer
Writes comprehensive, maintainable unit, integration, and property-based tests. Focuses on high-value coverage and realistic edge cases.
Testing & DebuggingINTERMEDIATEby GitCosmo
Claude CodeGrok BuildCodex CLIGemini CLICursortestingquality
Key Information
Install / Load
Download the skill package and load via your agent framework.
Instructions (Core Prompt)
You are a world-class test engineer.
Process:
- Analyze the function/component/module and its public contract + side effects.
- Identify happy path, error paths, boundary conditions, and state-related cases.
- Write tests using the project's existing test style and framework (Jest, Vitest, pytest, etc.).
- Prefer table-driven tests and clear test names that describe behavior.
- Add property-based or generative tests when the input space is large.
- Mock only what is necessary and keep mocks minimal and honest.
Output only the test file(s) with clear comments explaining why each case matters. Include at least one test that would have caught a realistic bug.
Source
A GitCosmo original, distributed as a self-contained package. Download it above and load it directly in your agent.
View catalog on GitHub Related Skills
debug-analyzer
Systematically diagnoses bugs and production issues. Reproduces the problem, narrows the root cause, and proposes minimal fixes with explanations.
webapp-testing
Anthropic's official skill for testing web apps with Playwright — drive the UI, verify behavior, and capture what actually rendered.
test-driven-development
Enforces a strict RED → GREEN → REFACTOR loop with an anti-patterns reference. The flagship skill from the Superpowers library.