test-writer SKILL.md skillA

test-writer from wpfleger96/ai-agent-rules is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add wpfleger96/ai-agent-rules/test-writer@v1.0.1

Pins v1.0.1 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
wpfleger96/ai-agent-rules
Path
src/ai_rules/config/skills/test-writer/SKILL.md
Versions recorded
5
Latest version
v1.0.1, committed Aug 22, 2026
First version recorded
May 18, 2026
Size
7,715 bytes
Repository stars
10
License
MIT

Write, update, or review tests. Use after implementing features to add tests for new/changed code paths. Covers testing strategy, framework selection, and coverage analysis.

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

# Test Writing Skill

You are an expert test engineering assistant. You write tests that verify behavior, not implementation.

## Core Philosophy

**Test Behavior, Not Implementation:** Test what code does, not how it does it | Mock boundaries, not internals | Tests should survive refactoring

**Tests Are Documentation:** Test names describe expected behavior | Arrange-Act-Assert makes intent clear | Good tests explain the system

**Minimal and Focused:** One behavior per test | No redundant assertions | Test the interesting paths

## Test Writing Workflow

### For New Tests

1. **Identify What to Test (Test Value Framework)**

   Apply this 4-tier framework to determine test value:

   **CRITICAL (must test):**
   - Business logic with branches
   - Security boundaries (auth, authz, input validation)
   - Data integrity (transactions, constraints)
   - User-facing functionality
   - Integration with external systems
   - Financial/regulatory logic

   **VALUABLE (should test):**
   - Error handling for external dependencies
   - Edge cases with production impact history
   - State transitions in complex workflows
   - API contract validation
   - Performance regression detection
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add wpfleger96/ai-agent-rules/test-writer@sha256:6f232701716bb73e

The line at the top of this page pins the label v1.0.1, 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_xsbvxab34usmwydg.svg)](https://markdownregistry.com/a/art_xsbvxab34usmwydg)

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

Versions

The registry has recorded 5 versions of this file, between May 18, 2026 and Aug 22, 2026, about one every 24 days.

versioncommittedcommitsizeaudit
v1.0.1 latest2026-08-22 fc3c7df 7,715 BA view · diff
v1.0.12026-07-04 cac8f2d 7,700 BA view · diff
v1.0.12026-06-13 149c6f4 7,589 BA view · diff
v1.0.02026-06-05 8f1ebda 7,513 BA view · diff
git:20260518.05a0e862026-05-18 05a0e86 7,498 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 (7715 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

wpfleger96/ai-agent-rules · 10 stars · license MIT · pushed 2026-10-22 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_xsbvxab34usmwydg
GET https://markdownregistry.com/api/v1/resolve?ref=wpfleger96/ai-agent-rules/test-writer
GET https://markdownregistry.com/api/v1/blob/6f232701716bb73ec834ee68f6b713ba0450baf4e0321415de229957a907422f

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 wpfleger96/ai-agent-rules

AGENTS.md AGENTS.md file
wpfleger96/ai-agent-rules · AGENTS.md
git:20260929.8dc0b41 · audit A · 10 stars
AGENTS.md@src/ai_rules/config AGENTS.md file
wpfleger96/ai-agent-rules · src/ai_rules/config/AGENTS.md
git:20260930.c325fca · audit A · 10 stars
AGENTS.md@src/ai_rules/config/amp AGENTS.md file
wpfleger96/ai-agent-rules · src/ai_rules/config/amp/AGENTS.md
git:20260704.cac8f2d · audit B · 10 stars
CLAUDE.md@src/ai_rules/config/claude CLAUDE.md file
wpfleger96/ai-agent-rules · src/ai_rules/config/claude/CLAUDE.md
git:20260704.cac8f2d · audit B · 10 stars
AGENTS.md@src/ai_rules/config/codex AGENTS.md file
wpfleger96/ai-agent-rules · src/ai_rules/config/codex/AGENTS.md
git:20260704.cac8f2d · audit B · 10 stars
writing-as-will SKILL.md skill
wpfleger96/ai-agent-rules · src/ai_rules/config/profiles/skills/writing-as-will/SKILL.md · Drafts or edits prose written as Will for human readers, in Will's voice. Use when writing Slack or Buzz messages for…
v1.0.0 · audit A · 10 stars
agents-md SKILL.md skill
wpfleger96/ai-agent-rules · src/ai_rules/config/skills/agents-md/SKILL.md · Create or update AGENTS.md with repo-specific patterns, conventions, commands, and gotchas for LLM coding agents. Use…
v1.0.1 · audit A · 10 stars
code-reviewer SKILL.md skill
wpfleger96/ai-agent-rules · src/ai_rules/config/skills/code-reviewer/SKILL.md · Performs thorough code review on local changes or PRs. Use this skill proactively after implementing code changes to…
v1.2.0 · audit A · 10 stars
continue-crash SKILL.md skill
wpfleger96/ai-agent-rules · src/ai_rules/config/skills/continue-crash/SKILL.md · Continues after a session crash while working on a task
v1.0.0 · audit A · 10 stars
crossfire SKILL.md skill
wpfleger96/ai-agent-rules · src/ai_rules/config/skills/crossfire/SKILL.md · Get multi-model perspectives (Codex + Gemini) on any work product. Use at any development stage — planning, design…
v1.0.0 · audit B · 10 stars
dev-docs SKILL.md skill
wpfleger96/ai-agent-rules · src/ai_rules/config/skills/dev-docs/SKILL.md · Creates or updates PLAN.md based on session - auto-detects create vs update mode
v1.0.1 · audit A · 10 stars
doc-writer SKILL.md skill
wpfleger96/ai-agent-rules · src/ai_rules/config/skills/doc-writer/SKILL.md · Write, update, or review documentation (README, ARCHITECTURE.md, API docs, guides). Use after implementing features to…
v1.0.1 · audit A · 10 stars

Every file in wpfleger96/ai-agent-rules

Other files named test-writer

test-writer SKILL.md skill
hex/claude-council · mods/council-pane/specialists/test-writer/SKILL.md · The task is to add or extend tests for existing behaviour that has a spec, a documented contract, or a confirmed…
git:20260925.093f32a · audit A · 892 stars
test-writer SKILL.md skill
nguyenthienthanh/aura-frog · aura-frog/skills/test-writer/SKILL.md · Write tests with TDD following structured patterns. Ensures consistent AAA structure, proper coverage targets, and…
git:20260515.6be9f59 · audit A · 25 stars
test-writer SKILL.md skill
wst2002/claude-code-skills · skills/test-writer/SKILL.md · Use when asked to write tests, add unit or integration tests, increase test coverage, test existing untested code, or…
git:20261016.55bd98a · audit A · 3 stars

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