Skip to content

Instantly share code, notes, and snippets.

@gigamonkey
Created March 14, 2026 18:35
Show Gist options
  • Select an option

  • Save gigamonkey/9a94822794a74f8510b9b56d6d6c4405 to your computer and use it in GitHub Desktop.

Select an option

Save gigamonkey/9a94822794a74f8510b9b56d6d6c4405 to your computer and use it in GitHub Desktop.
do-next-todo
name do-next-todo
description Use this skill when the user says "do next X todo" where X is a section header in plans/TODO.md (e.g. "do next small todo", "do next medium todo"). Finds the first unchecked item under that header and does it.
version 1.0.0

Do Next Todo Skill

The user wants to work on the first unchecked item in a specific section of plans/TODO.md.

Steps

1. Read plans/TODO.md

Read the file and find the first - [ ] item under the section header matching what the user asked for (e.g. "Small", "Medium", "Large"). The match is case-insensitive. If the user didn't specify a section header, e.g. "do the next todo", then just pick the first - [ ] item from the top of the file.

If there are no unchecked items in the named section, tell the user and don't do anything else. Do not do items from another section if the user specified a section.

2. Do the work

Carry out whatever that item describes — just as if the user had typed the request directly. Apply any relevant skills if they match. For items in the Medium and Large sections, do the work in a git worktree.

3. Mark it done — MANDATORY, do not skip

After completing the work you MUST update plans/TODO.md in three ways:

  1. Change the checkbox: - [ ]- [x]

  2. Move the item: Remove it from its current section and append it at the bottom of the ## Done section.

  3. If needed, add new item to Plans: If the work produced a plan file in plans/, there are two sub steps you MUST complete:

    1. Append (plan: plans/filename.md) to the end of the original todo item.

    2. Add an unchecked item at the bottom of the ## Plans section that says “Implement the plan in plans/…” with the name of the plan file filled in.

The first two steps are required every time. Do not leave a completed item in its original section. And the third step is required if you wrote a plan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment