Skip to content
Back to skills

Write Tests

ASecurity

Write or improve behaviour-focused tests for a module, endpoint, feature or bug (regression test) with the project's existing test framework.

  • 3 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 26, 2026
ai-agentstesting

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add Rasimoghlu/sarkhans-claude-starter --skill write-tests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Write Tests?

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

Security grade badge for Write Tests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rasimoghlu-write-tests/badge)](https://www.skillsdirectory.com/skills/rasimoghlu-write-tests)

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: write-tests
description: Write or improve behaviour-focused tests for a module, endpoint, feature or bug (regression test) with the project's existing test framework.
argument-hint: "[what to test]"
---
# Write tests

Target: $ARGUMENTS

1. **Find the existing setup:** test framework, config, folder layout, naming, helpers/factories/fixtures, how the DB/HTTP is handled in tests. Follow it exactly; never add a new test library without approval.
2. **List behaviours** of the target (show the list): happy path; validation failures; edge cases (empty, zero, max, unicode, duplicates, time boundaries); error paths; for handlers 400/422, 401, 403, 404; for permissions every role that matters.
3. **Write the tests** following `.claude/rules/testing.md`:
   - one behaviour per test, descriptive names, Arrange–Act–Assert, no comments;
   - table-driven / parametrized for input variations;
   - mock only at external boundaries; real logic inside; deterministic time/random.
4. **Run them** with the project's runner. For a bug: show the regression test failing before the fix and passing after.
5. **Check quality:** would the test fail if the behaviour broke? Remove tests that only assert mocks.
6. Run `/verify`. Report: tests added (names), the real runner summary line, behaviours still uncovered, bugs found. End with `### Third eye`.

For a large test effort across many modules, use `/orchestrate` with `test-writer` agents.

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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