write-tests SKILL.md skillA

write-tests from henrigrimm/minnow is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add henrigrimm/minnow/write-tests@git:20261007.306e7f0

Pins git:20261007.306e7f0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
henrigrimm/minnow
Path
src/skills/write-tests/SKILL.md
Versions recorded
2
Latest version
git:20261007.306e7f0, committed Oct 7, 2026
First version recorded
May 19, 2026
Size
1,242 bytes
Repository stars
25
License
AGPL-3.0

Generate deterministic tests matching project style. Use when adding or fixing test coverage.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Write tests

## When to use

- User asks for unit/integration tests for a module or bug fix
- After implementing behavior that lacks coverage

## Steps

1. Discover test stack: read `package.json` scripts, existing `test/` files, and one representative test file.
2. Match **framework and style** (e.g. `node:test`, Vitest, pytest) — do not introduce a new runner without asking.
3. Use **fixed fixtures**: hardcoded ids, dates, and expected strings — no `Date.now()` or random UUIDs in assertions.
4. Prefer **static expected output** (full JSON/string) over building expectations in code.
5. Cover: happy path, one failure/edge case, and boundary if relevant.
6. Run the project's test command (`execute_command` or documented npm script) and fix failures.

## Principles

- Tests document behavior; name tests by scenario (`rejects empty input`)
- Assert business outcomes, not private implementation details
- Minimal mocking; prefer real small fixtures

## Tools

`read_file`, `list_directory`, `find_files`, `search_in_file`, `save_file`, `execute_command`

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add henrigrimm/minnow/write-tests@sha256:a9da5d5b4083da04

The line at the top of this page pins the label git:20261007.306e7f0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ah56ikmvldw7as7v.svg)](https://markdownregistry.com/a/art_ah56ikmvldw7as7v)

5 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between May 19, 2026 and Oct 7, 2026, about one every 140 days.

versioncommittedcommitsizeaudit
git:20261007.306e7f0 latest2026-10-07 306e7f0 1,242 BA view · diff
git:20260519.c82c3bc2026-05-19 c82c3bc 1,241 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (1242 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

henrigrimm/minnow · 25 stars · license AGPL-3.0 · pushed 2026-11-02 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_ah56ikmvldw7as7v
GET https://markdownregistry.com/api/v1/resolve?ref=henrigrimm/minnow/write-tests
GET https://markdownregistry.com/api/v1/blob/a9da5d5b4083da04d831f875ade925496eebee35100b0dacfa45584d6454428c

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from henrigrimm/minnow

minnow-plan SKILL.md skill
henrigrimm/minnow · .claude/skills/minnow-plan/SKILL.md · Write an implementation plan in Minnow's orchestrator board schema — front matter with todos, waves, and tasks carrying…
git:20260920.5de7156 · audit A · 25 stars
fix-ci SKILL.md skill
henrigrimm/minnow · .cursor/skills/fix-ci/SKILL.md · Investigates GitHub Actions CI failures for the latest commit on the current branch, fixes scoped issues using…
git:20260907.e597af9 · audit A · 25 stars
orchestrate-plan SKILL.md skill
henrigrimm/minnow · .cursor/skills/orchestrate-plan/SKILL.md · Runs multi-phase plans by delegating each phase to sub-agents and gating progress on a dedicated verification pass…
git:20260807.a6b2b83 · audit A · 25 stars
plan-work SKILL.md skill
henrigrimm/minnow · .cursor/skills/plan-work/SKILL.md · Produces implementation plans in documentation/plans/ through discovery, codebase research via sub-agents, and a review…
git:20260807.a6b2b83 · audit A · 25 stars
AGENTS.md AGENTS.md file
henrigrimm/minnow · AGENTS.md
git:20261026.833c474 · audit C · 25 stars
DESIGN.md DESIGN.md file
henrigrimm/minnow · DESIGN.md · Multi-family palette themes (8× dark/light) on --mn-* tokens; swamp-dark default; family accent, semantic metric…
git:20261101.48c167e · audit A · 25 stars
_example SKILL.md skill
henrigrimm/minnow · src/skills/_example/SKILL.md · Author template for Minnow skills (not shown in the slash picker).
git:20260520.a13d1dd · audit A · 25 stars
my-custom-skill SKILL.md skill
henrigrimm/minnow · src/skills/_template/SKILL.md · Describe what this skill does and when Minnow should apply it. Include example phrases users might say, such as "help…
git:20260520.a13d1dd · audit A · 25 stars
ask-user SKILL.md skill
henrigrimm/minnow · src/skills/ask-user/SKILL.md · Gather structured answers from the user with the ask_question tool when requirements, scope, or priorities are…
git:20261029.66e5bbf · audit A · 25 stars
browser-automation SKILL.md skill
henrigrimm/minnow · src/skills/browser-automation/SKILL.md · Drive Minnow's visible preview or isolated Agent Browser for login flows, SPAs, and screenshots. Use when fetch tools…
git:20261007.306e7f0 · audit A · 25 stars
build-plugin SKILL.md skill
henrigrimm/minnow · src/skills/build-plugin/SKILL.md · Build, validate, install and update Minnow plugins with tools, connections, custom UI panels and bundled skills.
git:20261003.d3978cb · audit A · 25 stars
caveman SKILL.md skill
henrigrimm/minnow · src/skills/caveman/SKILL.md · Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical…
git:20261007.306e7f0 · audit A · 25 stars

Every file in henrigrimm/minnow

Other files named write-tests

write-tests SKILL.md skill
dzhng/skills · skills/engineering/write-tests/SKILL.md · Write tests that pin real behavior instead of implementation details, config values, or lucky samples. Use when adding…
git:20261021.8e74252 · audit A · 1,396 stars
write-tests SKILL.md skill
cowork-os/cowork-os · resources/skills/write-tests/SKILL.md · Generate unit tests for existing code
v1.0.0 · audit A · 517 stars
write-tests SKILL.md skill
justxor/claude-code-pro-course · starter-kit/.claude/skills/write-tests/SKILL.md · Пишет unit-тесты для указанного файла или функции в стиле существующих тестов проекта. Используй, когда просят добавить…
git:20260930.92d4796 · audit A · 334 stars
write-tests SKILL.md skill
goldziher/ai-rulez · bench/judge/corpus/governance-repo/.claude/skills/write-tests/SKILL.md · Writes a unit test for one Python function. Use when the user asks for tests of existing code; not for integration…
git:20261016.7bc6b88 · audit A · 166 stars
write-tests SKILL.md skill
dzhng/duet-agent · .agents/skills/write-tests/SKILL.md · Write tests that pin real behavior instead of implementation details, config values, or lucky samples. Use when adding…
git:20261021.e955131 · audit A · 55 stars
write-tests SKILL.md skill
aktsmm/agent-skills · write-tests/SKILL.md · コードを分析し、テストを段階的に生成・実行
git:20261026.267c548 · audit A · 26 stars
write-tests SKILL.md skill
qa-aman/claude-skills · skills/by-role/engineer/write-tests/SKILL.md · Write unit and integration tests. Use when the user says "write tests for this", "add test coverage", "how do I test…
git:20260303.09b1726 · audit A · 24 stars
write-tests SKILL.md skill
greglas75/zuvo · skills/write-tests/SKILL.md · Write tests for existing production code. Processes ONE file at a time through a full pipeline: analyze, inventory…
git:20261016.4de0a83 · audit A · 7 stars

Browse by kind, by grade A, or by owner.