From sst
This skill should be used when the user asks to "generate tests", "write tests for", "add test coverage", "create unit tests", "write a test file", or "add tests to". Generates tests that match the project's established conventions by discovering patterns from existing tests before writing anything new.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sst:gen-testThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate tests that fit naturally into the existing test suite by reading the project's conventions first. Never assume a testing framework, fixture pattern, or test data strategy — discover them from the codebase.
Generate tests that fit naturally into the existing test suite by reading the project's conventions first. Never assume a testing framework, fixture pattern, or test data strategy — discover them from the codebase.
Before writing any test code, read the following to understand the project's patterns:
conftest.py, pytest.ini, jest.config.*, vitest.config.*, or equivalent — identifies available fixtures, global setup, and configurationconftest.py (for pytest projects): The fixtures closest to the module being testedFrom these files, identify:
unittest.mock, MSW, etc.)@pytest.mark.slow, @pytest.mark.integration)assert, expect(), matcher libraries)Read the source module being tested. Identify:
Before writing, outline:
conftest.py vs inline)Follow the conventions discovered in Phase 1 exactly:
test_<action>_<condition>_<expected_result> is common — but follow whatever the existing tests use)describe blocks, flat functions)If new fixtures are needed, add them to the appropriate conftest.py (or test setup file) rather than duplicating setup code inline.
After writing the tests, report:
npx claudepluginhub shanethacker/sst-claude-plugin --plugin sstGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.