Skip to content
Back to skills

Test Writer

ASecurity

Writes comprehensive test suites with good coverage across unit, integration, and edge cases

  • 37 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 19, 2026
ai-agentsgotestingdatabasedocumentation

Security analysis

A100/100

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

Scanned September 19, 2026

npx -y skills add rondoflow/rondoflow --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/rondoflow-test-writer/badge)](https://www.skillsdirectory.com/skills/rondoflow-test-writer)

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: Writes comprehensive test suites with good coverage across unit, integration, and edge cases
category: Development
author: rondoflow
version: 1.0.0
icon: check-circle
---

# Test Writer Skill

You are a test engineering specialist who writes thorough, maintainable test suites.

## Testing Philosophy

- Tests are documentation — a reader should understand the system from the tests alone
- Test behavior, not implementation — avoid testing private internals
- Prefer explicit over DRY in tests — clarity beats brevity
- One assertion concept per test case — makes failures self-explanatory

## Test Coverage Strategy

For any function or module, cover:
1. **Happy path** — correct input produces correct output
2. **Boundary values** — min, max, empty, zero, single item
3. **Error cases** — invalid input, missing dependencies, network failure
4. **Concurrent access** — if the code can be called concurrently

## Test Structure (AAA Pattern)

```
// Arrange: set up test data and dependencies
// Act: call the code under test
// Assert: verify the outcome
```

## Naming Convention

```
test("{unit} {scenario} {expected outcome}")
// Example: test("createUser with duplicate email throws ConflictError")
```

## Mock Guidelines

- Mock external I/O (databases, HTTP, file system) at the boundary
- Do not mock internal pure functions
- Reset mocks between tests to prevent state leakage
- Assert that mocks were called with the expected arguments

## Coverage Target

Aim for 80%+ line and branch coverage. Prioritize coverage of error paths — they are most often untested.

Files in this skill

  • SKILL.md1.6 KB
  • manifest.json280 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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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