fix-bug SKILL.md skillA

fix-bug 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/fix-bug@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/fix-bug/SKILL.md
Versions recorded
1
Latest version
git:20261105.582c0e7, committed Nov 5, 2026
Size
2,115 bytes
Repository stars
330
License
MIT

Fixes a bug by reproducing it in a failing test first, then making the smallest change that turns it green. Use when something is "broken", "wrong", "fails", "doesn't work", throws an error, or a user or issue reports a bug.

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

# Fix a bug

## 1. Restate the symptom

Write down what happens, what should happen, and the command that triggers it (`td <command> <args>`). If the report is vague, restate it to the owner and ask before going further. Done when the symptom fits in one sentence.

## 2. Reproduce it in a test

Write a test that fails on the exact symptom, at the lowest layer that shows it:

- a helper in `src/lib/` → its `*.test.ts` next to it;
- a command's flags, API calls or output → the command's test, through `program.parseAsync(['node', 'td', ...])` with `setupApiMock()`;
- argv parsing, global flags or the JSON error envelope of the built CLI → `src/index.integration.test.ts`.

Follow `write-tests` for helpers and the quality bar. Run the test and see it fail **for the reason in step 1**, not a typo or a missing mock. Done when the failure message describes the bug.

## 3. Find the root cause

Trace from the symptom to the first place the data goes wrong. Name it with `path:line`. A fix at the symptom (a special case, a retry, a try/catch) is not a root cause. Done when you can say why the code does what it does.

## 4. Make the smallest fix
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add doist/todoist-cli/fix-bug@sha256:bcc96f57ca014b45

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_ycyfsvozo2onbzik.svg)](https://markdownregistry.com/a/art_ycyfsvozo2onbzik)

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,115 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 (2115 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_ycyfsvozo2onbzik
GET https://markdownregistry.com/api/v1/resolve?ref=doist/todoist-cli/fix-bug
GET https://markdownregistry.com/api/v1/blob/bcc96f57ca014b45e4b03a9cf91f08510f9e8dbf8ffdcf733c39cde8a678dbf6

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
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
write-tests SKILL.md skill
doist/todoist-cli · .agents/skills/write-tests/SKILL.md · Writes or changes tests in this repository to its quality bar, with the right helpers and layer. Use when adding…
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 fix-bug

fix-bug SKILL.md skill
nowsprinting/unity-coding-skills · skills/fix-bug/SKILL.md · Diagnoses and fixes bugs using a test-first workflow (reproduce, diagnose, fix). Use this skill whenever the user…
git:20261016.1a93bbe · audit A · 20 stars
fix-bug SKILL.md skill
nanosite-ai/nanoflow · skills/fix-bug/SKILL.md · Fix a bug by reproducing it with a failing test first, finding the root cause, and watching the same test pass. Use for…
git:20261007.050f6df · audit A · 15 stars
fix-bug SKILL.md skill
mgiovani/cc-arsenal · skills/fix-bug/SKILL.md · Fixes a bug through test-driven debugging, reproduces it with a failing
git:20261005.b620662 · audit A · 8 stars

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