write-tests SKILL.md skillA

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

Install it, pinned
mdr add aktsmm/agent-skills/write-tests@git:20261026.267c548

Pins git:20261026.267c548 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
aktsmm/agent-skills
Path
write-tests/SKILL.md
Versions recorded
2
Latest version
git:20261026.267c548, committed Oct 26, 2026
First version recorded
Oct 18, 2026
Size
2,516 bytes
Repository stars
26
License
a license file GitHub does not identify

コードを分析し、テストを段階的に生成・実行.

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

<!-- syncToGlobal: true -->
<!-- author: aktsmm -->
<!-- repository: https://github.com/aktsmm/Agent-Customization -->
<!-- license: CC BY-NC-SA 4.0 -->
<!-- copyright: Copyright (c) 2025 aktsmm -->

# write tests

対象コードを分析し、テストを段階的に生成・実行する。

## 対象(必須)

- **ファイル**: (ファイルを添付 or パスを記載)
- **フレームワーク**: pytest / jest / vitest / 他(指定なければ自動検出)
- 対象ファイルまたはパスが無い場合は、広い範囲を推測せず確認して停止する

## 指示

### Step 1: 分析(SRP)

- テスト対象の**責務**を特定する(何をする関数/クラスか)
- 入出力のパターンを洗い出す
- 既存テストがあれば確認し、**重複を避ける**

### Step 2: 計画(Transparency)

テストケースを書く前に計画を示す:

| ケース | 入力例 | 期待結果 | 優先度 |
| ------ | ------ | -------- | ------ |
| 正常系 | ...    | ...      | 高     |
| 異常系 | ...    | ...      | 中     |
| 境界値 | ...    | ...      | 中     |

### Step 3: 実装(Iterative)

1. **1 ケースずつ**テストを書く
2. 各テストは AAA パターン(Arrange / Act / Assert)
3. テスト名は既存 repo と framework の命名規則を最優先する
	- pytest の例: `test_<何を>_<どんな条件で>_<期待結果>`
	- Jest / Vitest: 既存の `describe` / `it` / `test` の文体と粒度に合わせる

### Step 4: 検証(Feedback Loop)

- テストを実行して全て PASS するか確認
- 表示文言を検証するテストが複数 locale を持つ製品では、各 locale で実行する(英語文言だけを期待する assertion は他 locale で落ちる)
- VS Code の task 実行(`runTask`)は使わない(確認待ちを避けるため、`powershell` で非対話・単発で実行する)
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add aktsmm/agent-skills/write-tests@sha256:8de1e9696d0d26ae

The line at the top of this page pins the label git:20261026.267c548, 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_4l7vvqprnlxjkyym.svg)](https://markdownregistry.com/a/art_4l7vvqprnlxjkyym)

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

Versions

The registry has recorded 2 versions of this file, between Oct 18, 2026 and Oct 26, 2026, about one every 8 days.

versioncommittedcommitsizeaudit
git:20261026.267c548 latest2026-10-26 267c548 2,516 BA view · diff
git:20261018.a6d0f062026-10-18 a6d0f06 2,334 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 (2516 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

aktsmm/agent-skills · 26 stars · license a license file GitHub does not identify · pushed 2026-10-30 · branch master

API

GET https://markdownregistry.com/api/v1/artifacts/art_4l7vvqprnlxjkyym
GET https://markdownregistry.com/api/v1/resolve?ref=aktsmm/agent-skills/write-tests
GET https://markdownregistry.com/api/v1/blob/8de1e9696d0d26ae7bfe38a2d2930d6cd70c21427560ba3504af4f60d57c44d9

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 aktsmm/agent-skills

agentic-workflow-guide SKILL.md skill
aktsmm/agent-skills · agentic-workflow-guide/SKILL.md · Design, review, and debug agent workflows, and decide when a request should use a prompt, instruction, skill, agent, or…
git:20261013.f4d371a · audit A · 26 stars
ai-cli-benchmark SKILL.md skill
aktsmm/agent-skills · ai-cli-benchmark/SKILL.md · Design, run, and review fair performance, token, and cost comparisons across GitHub Copilot CLI, Codex CLI, and direct…
git:20261022.387b228 · audit A · 26 stars
analyze-copilot-sessions SKILL.md skill
aktsmm/agent-skills · analyze-copilot-sessions/SKILL.md · Analyze historical VS Code GitHub Copilot Chat sessions by model, reasoning effort, AIU, time, reliability, workflow…
git:20261026.133d3e3 · audit A · 26 stars
animated-infographic SKILL.md skill
aktsmm/agent-skills · animated-infographic/SKILL.md · Create reproducible animated infographic GIFs from structured data or measured results, with audience-language labels…
git:20261004.e1c4ed1 · audit A · 26 stars
archify SKILL.md skill
aktsmm/agent-skills · archify/SKILL.md · Create polished, validated architecture, workflow, sequence, data-flow, and lifecycle/state diagrams as explorable…
v3.0 · audit A · 26 stars
ascii-banner SKILL.md skill
aktsmm/agent-skills · ascii-banner/SKILL.md · Generate ASCII-art text banners for terminals, READMEs, and CLI startup messages. Use when a user asks for an ASCII…
git:20261001.2b7a422 · audit A · 26 stars
azure-advisor-report SKILL.md skill
aktsmm/agent-skills · azure-advisor-report/SKILL.md · Generate Azure environment monthly report (Markdown + PowerPoint) from Azure Advisor and Cost Management API. Use when…
git:20261004.de613c1 · audit A · 26 stars
azure-env-builder SKILL.md skill
aktsmm/agent-skills · azure-env-builder/SKILL.md · [Alpha] Experimental Azure environment builder for infrastructure and deployment design. Use when building Azure…
git:20261004.e1c4ed1 · audit A · 26 stars
azure-infra-validation SKILL.md skill
aktsmm/agent-skills · azure-infra-validation/SKILL.md · Build and validate Azure infrastructure in a lab or sandbox using Azure CLI and official Microsoft docs. Use when…
git:20261022.c08e9e0 · audit A · 26 stars
azure-screenshot-mask SKILL.md skill
aktsmm/agent-skills · azure-screenshot-mask/SKILL.md · Mosaic environment-sensitive areas (tenant name, user avatar, subscription name / ID, resource group, internal…
git:20261004.e1c4ed1 · audit A · 26 stars
azure-troubleshooting SKILL.md skill
aktsmm/agent-skills · azure-troubleshooting/SKILL.md · Investigate Azure incidents and service degradations with a read-only workflow using Azure CLI, Resource Health…
git:20261004.e1c4ed1 · audit A · 26 stars
azure-update-customer-pptx SKILL.md skill
aktsmm/agent-skills · azure-update-customer-pptx/SKILL.md · Build a customer-facing Azure Update PowerPoint from Azure Updates MCP results, including customer classification…
git:20261014.48a6cca · audit A · 26 stars

Every file in aktsmm/agent-skills

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
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.