test-writer
/test-writer
Write tests that verify behavior (not implementation), use table-driven/parameterized patterns, and minimize mocking. Triggers when asked to write tests, add test coverage, or create test files. Also triggers when reviewing existing tests for quality.
- Author
- smykla-skalski ↗
- Repository
- sai ↗
- Licence
- MIT
- Last repository change
- 27.10.2026
Assessment and security
- Files in this package
- 5
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Write tests that verify behavior (not implementation), use table-driven/parameterized patterns, and minimize mocking. Triggers when asked to write tests, add test coverage, or create test files. Also triggers when reviewing existing tests for quality.
Arguments
/test-writer [file-or-function-to-test] [--review] [--lang go|python|ts|java|rust]
Original author description
Write tests that verify behavior (not implementation), use table-driven/parameterized patterns, and minimize mocking. Triggers when asked to write tests, add test coverage, or create test files. Also triggers when reviewing existing tests for quality.
How it works
- Required guidance
- Arguments
- Core flow
- Execution contract
SKILL.md preview
--- name: test-writer description: Write tests that verify behavior (not implementation), use table-driven/parameterized patterns, and minimize mocking. Triggers when asked to write tests, add test coverage, or create test files. Also triggers when reviewing existing tests for quality. license: MIT compatibility: Works in Claude Code, Codex, opencode and Copilot CLI. Writes test files and may run the project's test command; no network access needed. argument-hint: "[file-or-function-to-test] [--review] [--lang go|python|ts|java|rust]" user-invocable: true allowed-tools: Bash Glob Grep Read Write context: fork agent: general-purpose metadata: short-description: Write behavior-first tests --- # Test Writer Write tests that survive refactoring, catch real bugs, and don't waste maintenance effort. **Philosophy:** Test what the code does, not how it does it. If you refactor internals and tests break — the tests are wrong, not the code. ## Required guidance Before taking any action, read [references/workflow.md](references/workflow.md) completely. It is the authoritative procedure and preserves every platform fallback, decision rule, template, command, validation step, and output contract. Follow its sections in order and load the deeper references it names only at their stated gates. Paths in the workflow are relative to this skill directory. When a named tool, agent, or interaction primitive is unavailable, use the workflow's compatibility fallback; never silently skip the behavior. ## Arguments Invocation arguments: `$ARGUMENTS` These are the target and flags the user gave on invocation. The workflow reads them from here, not from its own text. If the line above is empty or still shows the literal placeholder, the client passed none: take the same values from the user's request. ## Core flow 1. Agent compatibility 2. Arguments 3. Phase 1: Understand the Code 4. Phase 2: Design Test Structure 5. Phase 3: Write Tests 6. Phase 4: Quality Check 7. Phase 5: Review Mode (--review) 8. Test Review: [file] 9. Hard Rules ## Execution contract - Resolve the target and flags before side effects. - Execute every applicable workflow section in the listed order; headings are an index, not a replacement for the detailed instructions. - Preserve explicit read gates: load each supporting reference immediately before the phase that needs it. - Follow repository instructions and the user's authorized scope. - Preserve validation, state-update, deduplication, adversarial-check, and output requirements exactly as defined in the workflow. - Stop at every hard stop named by the workflow and state the required next action.
Files in this package (5)
- SKILL.md 3 KB
- agents/openai.yaml 1 KB
- references/language-patterns.md 3 KB
- references/testing-principles.md 5 KB
- references/workflow.md 10 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · smykla-skalski/sai | 90 | MIT |
| miniidealab/openlogos | 100 | Apache-2.0 |
| sofetizm/test-writer | 100 | MIT |
| anchildress1/awesome-ai | 100 | MIT |
| hamzafarooq/claude-code-starter | 100 | MIT |
| toss/react-simplikit | 90 | MIT |
| KILN-skills/kiln | 90 | MIT |
Database snapshot: 13.11.2026 · package version 64f02acb40fe (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95memstack-development-test-writer
Use this skill when the user says 'write tests', 'add tests', 'test coverage', 'unit tests', 'integration tests', 'component tests', 'mocking', 'edge cases', or needs to generate tests with proper mocking and edge case coverage. Do NOT use for refactoring plans or database migrations. - 100write-tests
Write tests that pin real behavior instead of implementation details, config values, or lucky samples. Use when adding tests for new behavior, writing a regression test, fixing a brittle or flaky test, reviewing a test diff, or when a test breaks after a refactor or config… - 100write-tests
Write tests that pin real behavior instead of implementation details, config values, or lucky samples. Use when adding tests for new behavior, writing a regression test, fixing a brittle or flaky test, reviewing a test diff, or when a test breaks after a refactor or config… - 100playwright-test-writer
Write or extend Playwright end-to-end tests for a web page or feature. Use when the user asks to add, write, improve or fix Playwright, e2e or browser tests. - 100golang-testing
Write unit tests with table-driven patterns and interface mocking in Go. Use when writing Go unit tests, table-driven tests, or using mock interfaces. - 100generate-tests
Use this skill whenever the user wants to generate tests before refactoring, create a test plan, add safety net tests, lock down behavior with tests, or generate test code for existing modules. Triggers include: "generate tests", "create test plan", "add tests before…