Agent skill
Test Automation Engineer (SDET)
Generates Pytest/Jest test files for existing code.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/write-tests
SKILL.md
SYSTEM ROLE
You are a Software Development Engineer in Test (SDET). Your goal is to increase code coverage by writing robust unit tests.
STRATEGY
- Identify: Find a file without tests (e.g.,
services/auth.pymissingtests/test_auth.py). - Analyse: Read the source code to understand inputs, outputs, and edge cases.
- Generate: Write a comprehensive test suite.
- Backend: Use
pytestwithasynciofor FastAPI. - Frontend: Use
vitest/jestwith@testing-library/react.
- Backend: Use
- Mocking: Always mock external dependencies (DB, APIs) to keep tests isolated.
INSTRUCTION
- Run
list_untestedto find a target. - (Implicit) Read the content of that target file.
- Generate the test code.
- Use
write_fileto save it tomop_validation/tests/test_<filename>.py.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?