documenting-test-suites
БесплатноБез исполняемых скриптовНе проверенWrites the documentation a test suite needs to be usable by someone who did not build it: run instructions, environment setup, tag glossary, ownership…
от jaktestowac★ 124 звезды на GitHubОб этом скилле
Documenting Test Suites
Use this skill when a test suite is understandable only to the person who wrote it.
Test documentation has one job: get a competent stranger from a fresh clone to a passing local run, and then let them change something without breaking a convention they could not have known about. Everything that does not serve that is decoration.
The discipline that keeps it useful is knowing what not to write. A document that restates what the code already says goes stale within a sprint and then actively misleads. Document what the reader cannot find by looking: the unwritten convention, the reason behind a choice, the gotcha no config file confesses.
When to Use
- a new joiner needs to run the suite and there is no path from clone to green
- "how do I run just the API tests" is a recurring question
- a suite has been inherited and nobody knows why it is shaped the way it is
- a test architecture decision was made and will be re-argued in six months
- tags exist and their meanings live in one person's head
- fixtures and seed data have rules that only surface when you break them
Operating Principles
- Write what the environment cannot tell you. A list of npm scripts belongs in
package.json; the reason two of them exist belongs in the README. - Optimize for the first hour. The most valuable page gets a stranger to a green run. Everything else is secondary.
- Every command in the docs is copy-pasteable and has been run. An untested command is a broken promise with a trust cost.
- Decisions get a record, not a comment. Why page objects and not fixtures, why this runner, why the suite is split this way. Those get re-litigated without a record.
- Ownership is named. A suite with no owner has no maintainer, and the documentation is where that becomes visible.
- State what is not covered. A reader who assumes coverage that does not exist is worse off than one who knows the gap.
Workflow
Phase 0: Identify the readers
Different readers need different documents. Name them before writing:
| Reader | Needs | Document |
|---|---|---|
| New joiner | Clone to green run | README quickstart |
| Developer adding a test | Conventions, fixtures, where things go | README conventions plus the architecture record |
| Someone debugging CI | Environment, secrets, artifacts, how to reproduce locally | README CI section |
| Reviewer | Tag meanings, what is expected in a pull request | Tag glossary, contribution notes |
| Future maintainer | Why the suite is like this | Architecture decision records |
A single document serving all five serves none. Split by reader, and link.
Phase 1: Write the quickstart first
The highest-value section, and the one to validate hardest.
It contains, in order:
- Prerequisites with exact versions: Node, package manager, Docker, browsers
- Install, one command
- Environment setup: which file to copy, which values are needed, where non-secret values come from and who to ask for the secrets
- Start dependencies: the app under test, the database, the mock server
- Run, one command
- Expected result: how many tests, roughly how long, what a green run looks like
- First troubleshooting entries: the three failures a newcomer actually hits
Point six is skipped almost always and it is what tells a stranger whether their run went right.
Validation gate for this phase: follow your own quickstart on a clean clone, in a fresh shell, with no environment variables set, and record every place you had to know something the document did not say. That list is the actual content of the section.
Phase 2: Document the conventions
Only the ones a reader would otherwise get wrong.
- where a new test goes, by type
- naming conventions for files, suites, and test titles
- the locator or selector policy, and what is banned
- fixture and helper rules: what belongs where, what must not be shared
- data rules: seeding, cleanup, whether tests may share an account, whether parallel-safe
- assertion conventions the team has settled on
- what a pull request touching tests is expected to include
Each entry answers a question a reviewer has asked more than once. If no one has ever asked, it probably does not need writing.
Phase 3: Write the tag glossary
Tags are a control surface. When their meanings are undocumented, they decay into personal shorthand and CI filters start excluding things nobody intended.
./resources/tag-glossary-template.md gives one row per tag: what it means, who runs it, where it runs, and who may add it.
Phase 4: Record the decisions
For each significant choice, write a short record using ./resources/test-adr-template.md:
- the decision
- the context that forced it
- the alternatives that were genuinely considered
- the consequences, including the ones the team is unhappy about
- the conditions that would justify revisiting
Candidates worth a record: runner choice, page
Установить documenting-test-suites в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл documenting-test-suites?
Writes the documentation a test suite needs to be usable by someone who did not build it: run instructions, environment setup, tag glossary, ownership, fixture and data notes, and architecture decision records. Use when onboarding someone into a suite, when "how do I run these" keeps being asked, when a test architecture decision needs recording, or when a suite is inherited with no documentation.
Как установить скилл documenting-test-suites?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл documenting-test-suites запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic