write-tests SKILL.md skillA

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

Install it, pinned
mdr add doist/todoist-cli/write-tests@git:20261105.582c0e7

Pins git:20261105.582c0e7 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
doist/todoist-cli
Path
.agents/skills/write-tests/SKILL.md
Versions recorded
1
Latest version
git:20261105.582c0e7, committed Nov 5, 2026
Size
2,593 bytes
Repository stars
330
License
MIT

Writes or changes tests in this repository to its quality bar, with the right helpers and layer. Use when adding, fixing or reviewing tests, when a change "needs a test", or when deciding whether a test may change.

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

## Where tests live

- Next to the code: `src/lib/refs.ts` → `src/lib/refs.test.ts`. A command group has one test file for the group or one per subcommand (`src/commands/label/label.test.ts`, `src/commands/project/reorder.test.ts`). Vitest, globals on, `restoreMocks: true`, so spies restore themselves: no manual `.mockRestore()`.
- Command tests mock the SDK client: `vi.mock('../../lib/api/core.js', () => ({ getApi: vi.fn() }))` at the top, `mockApi = setupApiMock()` in `beforeEach`, a program from `createTestProgram(registerXxxCommand)`, then `program.parseAsync(['node', 'td', ...])`. Capture output with `captureConsole()` or `captureStream()`. Read `src/commands/label/label.test.ts` for the shape.
- `src/index.integration.test.ts` builds the CLI and runs `dist/index.js`, for argv handling, global flags and JSON errors end to end.
- `vi.mock('chalk')` uses the manual mock in `src/__mocks__/chalk.ts`, which makes styling a passthrough so tests read plain text.
- Agent tooling tests live in `.agents/scripts/` and run copies of the tools in throwaway repos (`.agents/scripts/lib/test-repo.ts`).

## Helpers
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add doist/todoist-cli/write-tests@sha256:1ef7234c0dc9133b

The line at the top of this page pins the label git:20261105.582c0e7, 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_yp2hauenunmu4uv6.svg)](https://markdownregistry.com/a/art_yp2hauenunmu4uv6)

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

Versions

The registry has recorded 1 version of this file, committed on Nov 5, 2026.

versioncommittedcommitsizeaudit
git:20261105.582c0e7 latest2026-11-05 582c0e7 2,593 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 (2593 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

doist/todoist-cli · 330 stars · license MIT · pushed 2026-11-06 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_yp2hauenunmu4uv6
GET https://markdownregistry.com/api/v1/resolve?ref=doist/todoist-cli/write-tests
GET https://markdownregistry.com/api/v1/blob/1ef7234c0dc9133bb0d18dc7135a023b786c3df4e5e1d45da8d37f98e446c604

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 doist/todoist-cli

add-command SKILL.md skill
doist/todoist-cli · .agents/skills/add-command/SKILL.md · Guide for adding new CLI commands or subcommands to todoist-cli. Use when implementing new SDK endpoints, adding…
git:20261105.582c0e7 · audit A · 330 stars
build-feature SKILL.md skill
doist/todoist-cli · .agents/skills/build-feature/SKILL.md · Builds a new command, flag or behaviour in thin test-first slices, after settling the open decisions with the owner…
git:20261105.582c0e7 · audit A · 330 stars
fix-bug SKILL.md skill
doist/todoist-cli · .agents/skills/fix-bug/SKILL.md · Fixes a bug by reproducing it in a failing test first, then making the smallest change that turns it green. Use when…
git:20261105.582c0e7 · audit A · 330 stars
learn SKILL.md skill
doist/todoist-cli · .agents/skills/learn/SKILL.md · Turns a correction or a repeated mistake into the strongest structure that prevents it, and proves it catches the…
git:20261105.4b96b9d · audit A · 330 stars
refactor SKILL.md skill
doist/todoist-cli · .agents/skills/refactor/SKILL.md · Changes the structure of code without changing its behaviour, with the current behaviour pinned by tests first. Use…
git:20261105.582c0e7 · audit A · 330 stars
review-changes SKILL.md skill
doist/todoist-cli · .agents/skills/review-changes/SKILL.md · Reviews a finished change with fresh reviewers (a task review, a blast-radius review for shared code, and Doistbot or…
git:20261105.4b96b9d · audit A · 330 stars
verify SKILL.md skill
doist/todoist-cli · .agents/skills/verify/SKILL.md · Proves a change works before it is called done, and reports the evidence on a ladder from "said" to "ran". Use when you…
git:20261105.582c0e7 · audit A · 330 stars
AGENTS.md AGENTS.md file
doist/todoist-cli · AGENTS.md
git:20261105.9fe6f4e · audit A · 330 stars
CLAUDE.md CLAUDE.md file
doist/todoist-cli · CLAUDE.md
git:20261105.a8acaaf · audit B · 330 stars
todoist-cli SKILL.md skill
doist/todoist-cli · skills/todoist-cli/SKILL.md · Manage Todoist tasks, projects, labels, filters, sections, comments, reminders, and workspaces via the `td` CLI. Use…
git:20261106.f79c538 · audit A · 330 stars

Every file in doist/todoist-cli

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:20261104.fe05770 · audit A · 1,404 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 · 535 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 · 341 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 · 167 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 · 53 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 · 25 stars

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