agentleFS
kalaverinkalaverin/skills/todo-protocol/SKILL.md

todo-protocol

Skill1 starsChanged 3 days agoBSD-3-ClauseView on GitHub

Mandatory protocol for using the SetTodoList tool. Governs when to create a todo list, how to update it without violating immutability rules, how to synchronize item status after every tool call, and the forbidden mutations. Always active.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When this skill is active, its rules override any casual or heuristic use of the todo list.

    line 14
  2. Distinctive:

    If no todo list exists, create one immediately when the task qualifies under Section 1.

    line 29
  3. Distinctive:

    After every tool call that completes a task, you MUST evaluate whether the active todo item is now factually complete.

    line 53
  4. Very specific:

    If yes, update it to done via SetTodoList BEFORE any subsequent action.

    line 55
  5. Distinctive:

    If new work is discovered after the list was created, insert new items at the current active position.

    line 62
  6. Distinctive:

    Do not append new items to the end if that would place them after already-completed work unless they are genuinely follow-up tasks.

    line 63
  7. Very specific:

    Call SetTodoList repeatedly without making real progress between calls.

    line 69
  8. Distinctive:

    Create a todo list and then ignore it.

    line 70
  9. Very specific:

    Leave an item as in_progress after the work is complete.

    line 72
  10. Distinctive:

    Delete or overwrite a list to erase unfinished work.

    line 73
  11. Distinctive:

    When a subtask involves another skill (for example, writing a memory entry or delegating to a subagent), the active todo item should …

    line 78
  12. Distinctive:

    If you violate any rule in this skill, halt immediately, restore the correct todo list state, and resume from the last valid state before …

    line 82

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SKILL: Todo List Protocol

This skill owns the SetTodoList tool. It applies to every task that involves multiple subtasks, milestones, sequential steps, or any situation where the user asks for a todo list, ordered execution, or step-by-step work. When this skill is active, its rules override any casual or heuristic use of the todo list.

1. When to Use SetTodoList

You MUST use SetTodoList for:

  • Non-trivial implementation tasks (new features, architectural changes, multi-file modifications, unclear requirements).
  • Tasks with more than one step.
  • Any request where the user asks for a todo list, sequential execution, ordered actions, or step-by-step work.

You MAY stop using the todo list mid-session if you started it and then realized the task is trivial enough to complete without it. You MUST NOT use the todo list for trivial single-step tasks or for tracking steps that are too small to justify the overhead.

2. Creating the Todo List

If no todo list exists, create one immediately when the task qualifies under Section 1. The initial list should contain the high-level milestones or subtasks needed to complete the request.

3. Updating the Todo List

SetTodoList operates in three modes:

  • Update mode: pass todos to replace the entire list. Use this only when the rules below allow it.
  • Query mode: omit todos to retrieve the current list without changes.
  • Clear mode: pass an empty array [] to clear all todos. Allowed only when every item is already finished or the task is truly complete.

4. Todo List Immutability Rule (HARD RULE)

Once a todo list exists, you MUST NOT delete, overwrite, clear, shrink, or recreate it while any item remains unfinished.

Allowed mutations are:

  • Marking an item as done.
  • Inserting new items at the current active position.

You MUST NOT remove unfinished items, reorder them to hide progress, or replace the list with a shorter one while work remains.

5. Status Synchronization Rule (HARD RULE)

After every tool call that completes a task, you MUST evaluate whether the active todo item is now factually complete.

  • If yes, update it to done via SetTodoList BEFORE any subsequent action.
  • Under no circumstances may you leave an item as pending or in_progress after the corresponding work is already done.

The todo list is the single source of truth for work state.

6. Inserting New Items

If new work is discovered after the list was created, insert new items at the current active position. Do not append new items to the end if that would place them after already-completed work unless they are genuinely follow-up tasks.

7. Forbidden Patterns

You MUST NOT:

  • Call SetTodoList repeatedly without making real progress between calls.
  • Create a todo list and then ignore it.
  • Mark an item done before the work it represents is actually finished.
  • Leave an item as in_progress after the work is complete.
  • Delete or overwrite a list to erase unfinished work.

8. Interaction with Other Skills

This skill is always active and works alongside other protocols. When a subtask involves another skill (for example, writing a memory entry or delegating to a subagent), the active todo item should reflect the higher-level goal, and you must still synchronize its status after the underlying tool call completes.

9. Violation Protocol

If you violate any rule in this skill, halt immediately, restore the correct todo list state, and resume from the last valid state before continuing.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.