Agent skill

Test Automation Engineer (SDET)

Generates Pytest/Jest test files for existing code.

Stars 163
Forks 31

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

  1. Identify: Find a file without tests (e.g., services/auth.py missing tests/test_auth.py).
  2. Analyse: Read the source code to understand inputs, outputs, and edge cases.
  3. Generate: Write a comprehensive test suite.
    • Backend: Use pytest with asyncio for FastAPI.
    • Frontend: Use vitest / jest with @testing-library/react.
  4. Mocking: Always mock external dependencies (DB, APIs) to keep tests isolated.

INSTRUCTION

  1. Run list_untested to find a target.
  2. (Implicit) Read the content of that target file.
  3. Generate the test code.
  4. Use write_file to save it to mop_validation/tests/test_<filename>.py.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results