Skip to content
Back to skills

Test Writer

ASecurity

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.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 6, 2026
toolspythonrustgojavabashrefactoring

Works with

  • claude code
  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 7, 2026

npx -y skills add smykla-skalski/sai --skill test-writer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Writer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Test Writer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/smykla-skalski-test-writer-sai/badge)](https://www.skillsdirectory.com/skills/smykla-skalski-test-writer-sai)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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. If argument substitution is unavailable or unresolved, take the input and flags from the user's request. When a named tool, agent, or interaction primitive is unavailable, use the workflow's compatibility fallback; never silently skip the behavior.

## 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 skill

  • SKILL.md3.1 KB
  • agents/openai.yaml231 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.