write-tests SKILL.md skillA

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

Install it, pinned
mdr add goldziher/ai-rulez/write-tests@git:20261016.7bc6b88

Pins git:20261016.7bc6b88 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
goldziher/ai-rulez
Path
bench/judge/corpus/governance-repo/.claude/skills/write-tests/SKILL.md
Versions recorded
1
Latest version
git:20261016.7bc6b88, committed Oct 16, 2026
Size
643 bytes
Repository stars
166
License
MIT

Writes a unit test for one Python function. Use when the user asks for tests of existing code; not for integration tests.

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

1. Create the test file named `<module>_test.py` next to the module.
2. Use this shape:

```python
import unittest

from parcel_calc import total

ITEMS = [10, 20]

class TotalTest(unittest.TestCase):
    def test_total(self):
        self.assertEqual(total(ITEMS), 30)

    def test_total_empty(self):
        self.assertEqual(total([]), 0)

if __name__ == "__main__":
    unittest.main()
```

3. Run `python <module>_test.py` and confirm that both tests pass.

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add goldziher/ai-rulez/write-tests@sha256:51bdf15588a594c9

The line at the top of this page pins the label git:20261016.7bc6b88, 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_lxtg2dawkyefy63h.svg)](https://markdownregistry.com/a/art_lxtg2dawkyefy63h)

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

Versions

The registry has recorded 1 version of this file, committed on Oct 16, 2026.

versioncommittedcommitsizeaudit
git:20261016.7bc6b88 latest2026-10-16 7bc6b88 643 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 (643 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

goldziher/ai-rulez · 166 stars · license MIT · pushed 2026-11-03 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_lxtg2dawkyefy63h
GET https://markdownregistry.com/api/v1/resolve?ref=goldziher/ai-rulez/write-tests
GET https://markdownregistry.com/api/v1/blob/51bdf15588a594c94b7e01ad84fe8806f51c2a7e74b91f0cec7160571c8f269d

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 goldziher/ai-rulez

capability-delivery-checklist SKILL.md skill
goldziher/ai-rulez · .ai-rulez/skills/capability-delivery-checklist/SKILL.md · Use when adding a new CLI command, flag, preset, or other user-visible capability, and before opening a pull request…
git:20261009.c337fe2 · audit B · 166 stars
config-schema-maintainer SKILL.md skill
goldziher/ai-rulez · .ai-rulez/skills/config-schema-maintainer/SKILL.md · Use when changing config.toml fields or defaults, include resolution, domain or profile behavior, the JSON schemas in…
git:20261009.b6bc310 · audit B · 166 stars
core-workflows SKILL.md skill
goldziher/ai-rulez · .ai-rulez/skills/core-workflows/SKILL.md · Use when you need to know how ai-rulez loads configuration, generates outputs, runs CRUD subcommands, validates, or…
git:20261009.b6bc310 · audit B · 166 stars
docs-and-site SKILL.md skill
goldziher/ai-rulez · .ai-rulez/skills/docs-and-site/SKILL.md · Use when editing files under docs/, zensical.toml, or the generated site/, or when a CLI or config change needs its…
git:20261009.c337fe2 · audit B · 166 stars
mcp-integrations SKILL.md skill
goldziher/ai-rulez · .ai-rulez/skills/mcp-integrations/SKILL.md · Use when changing the MCP server in internal/mcp, its handlers or tools, [[mcp_servers]] configuration, MCP schemas, or…
git:20261009.c337fe2 · audit B · 166 stars
release-and-distribution SKILL.md skill
goldziher/ai-rulez · .ai-rulez/skills/release-and-distribution/SKILL.md · Use when preparing a release, bumping versions across root.go, package.json and pyproject.toml, or changing the npm and…
git:20261009.c337fe2 · audit B · 166 stars
repository-layout SKILL.md skill
goldziher/ai-rulez · .ai-rulez/skills/repository-layout/SKILL.md · Use when you are unsure where code, docs, schemas, wrappers, or tests live in this repository, or need to pick the…
git:20261009.c337fe2 · audit B · 166 stars
test-fixture-maintainer SKILL.md skill
goldziher/ai-rulez · .ai-rulez/skills/test-fixture-maintainer/SKILL.md · Use when writing or fixing tests, updating fixtures under tests/, or adding integration or e2e coverage for generator…
git:20261009.c337fe2 · audit B · 166 stars
ReleaseNotes SKILL.md skill
goldziher/ai-rulez · bench/judge/corpus/governance-repo/.claude/skills/ReleaseNotes/SKILL.md · Drafts release notes from merged pull requests. Use when a release is being prepared.
git:20261016.7bc6b88 · audit A · 166 stars
dependency-bump SKILL.md skill
goldziher/ai-rulez · bench/judge/corpus/governance-repo/.claude/skills/dependency-bump/SKILL.md · Bumps one dependency to a newer version. Use when the user names a package to upgrade.
git:20261016.7bc6b88 · audit A · 166 stars
frontend-setup SKILL.md skill
goldziher/ai-rulez · bench/judge/corpus/governance-repo/.claude/skills/frontend-setup/SKILL.md · Sets up the JavaScript toolchain on a fresh checkout. Use when onboarding a new machine.
git:20261016.7bc6b88 · audit A · 166 stars
lockfile-refresh SKILL.md skill
goldziher/ai-rulez · bench/judge/corpus/governance-repo/.claude/skills/lockfile-refresh/SKILL.md · Regenerates the dependency lockfile. Use when the manifest changed and the lockfile is out of date.
git:20261016.7bc6b88 · audit A · 166 stars

Every file in goldziher/ai-rulez

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
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
henrigrimm/minnow · src/skills/write-tests/SKILL.md · Generate deterministic tests matching project style. Use when adding or fixing test coverage.
git:20261007.306e7f0 · audit A · 25 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.