Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add AmariahAK/atlarix-skills --skill test-writergit clone --depth 1 https://github.com/AmariahAK/atlarix-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/amariahak/atlarix-skills/test-writer)<a href="https://agentmods.dev/skills/amariahak/atlarix-skills/test-writer"><img src="https://agentmods.dev/badge/skills/amariahak/atlarix-skills/test-writer/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/amariahak/atlarix-skills/test-writer"><img src="https://agentmods.dev/badge/skills/amariahak/atlarix-skills/test-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00002 | $0.00823 |
| Opus 5 | $0.00001 | $0.00411 |
| Sonnet 5 | $0.00000 | $0.00165 |
| Haiku 4.5 | $0.00000 | $0.00082 |
Grade A, and why
Test Writer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Test Writer
When to use this skill
Use this skill when you’re adding features or fixing bugs and you want tests that lock in behavior, are easy to read, and fail with useful diagnostics.
Core patterns
Test behavior, not implementation
Prefer assertions on:
- outputs and return values
- observable side-effects (DB writes, network calls via mocked boundary)
- rendered UI behavior
Avoid asserting:
- internal helper calls
- private state
- exact call order unless it’s part of the contract
Arrange / Act / Assert (AAA)
Structure tests so readers can skim:
- Arrange: setup inputs + mocks
- Act: execute
- Assert: verify outcomes
it("returns 401 when token is missing", async () => {
// Arrange
const req = makeRequest({ headers: {} });
// Act
const res = await handler(req);
// Assert
expect(res.status).toBe(401);
});
Naming conventions
Use readable test names:
describe("<unit>")it("does <behavior> when <condition>")
Bad:
it("works")it("test1")
Mocking philosophy: mock at the boundary
Mock:
- HTTP clients
- DB adapters/repositories
- filesystem
- time
Avoid mocking deep internals; that freezes implementation and makes refactors painful.
Testing async code
Rules:
- always
awaitpromises - assert rejection paths explicitly
await expect(fn()).rejects.toThrow("missing");
Snapshot tests (use intentionally)
Use snapshots when:
- large stable output (markdown rendering, formatted AST)
- you want quick diff review
Avoid snapshots for:
- small outputs (write explicit asserts)
- unstable values (timestamps, random IDs)
Error paths are first-class
Every critical function should have tests for:
- invalid input
- missing resources (ENOENT)
- permission denied
- timeouts / retries
Unit vs integration vs e2e
Use:
- Unit: pure logic, fast, lots of cases
- Integration: modules wired together (DB in memory, API route handler with mocked network)
- E2E: user flows (Playwright/Cypress), fewer tests but high confidence
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago First seen · 133 lines · 2 tokens per session scan A 3244516719aa
Test Writer is a skill published in the GitHub repository AmariahAK/atlarix-skills (2 stars, last pushed 4d ago), licensed Apache-2.0. It adds 2 tokens to every session and 823 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
test-driven-development
Use when writing production code. Enforces RED-GREEN-REFACTOR cycle: write failing test, make it pass, improve design. Prevents test-after development and ensures verified behavior.
test-generator
Generate comprehensive unit, integration, and end-to-end tests. Use when adding test coverage, writing tests for new features, or improving existing test suites.
test-driven-development
Enforces TDD discipline with RED-GREEN-REFACTOR cycle. Use when writing new features, fixing bugs, or refactoring code. Ensures tests genuinely verify behavior.
x-qdev
A compact development workflow for a small, clearly defined code change. It keeps the requirement, initially failing tests, implementation, and real verification results in one task document, following TDD, or test-driven development.
Unit Test Scaffold (TypeScript)
Generate TypeScript unit test skeletons (Jest/Vitest) from specifications.
automacao-de-testes
Automação de testes: unitários (Jest, Pytest), integração (supertest, httpx) e E2E com Playwright. Inclui estratégia de pirâmide de testes, cobertura mínima, CI/CD integration e testes para contexto brasileiro (CPF, CNPJ, CEP, PIX).