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.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- api-designSkill
- bootstrapSkill
- dash-protocolSkill
- discuss-firstSkill
- entity-protocolSkill
- existence-bibleSkill
- frontmatter-protocolSkill
- kagi-searchSkill
- mandatory-toolsSkill
- markdown-protocolSkill
- ondemandSkill
- preflight-checklistSkill
- python-langSkill
- read-for-commentsSkill
- serena-protocolSkill
- subagents-protocolSkill
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
- Distinctive: line 14
When this skill is active, its rules override any casual or heuristic use of the todo list.
- Distinctive: line 29
If no todo list exists, create one immediately when the task qualifies under Section 1.
- Distinctive: line 53
After every tool call that completes a task, you MUST evaluate whether the active todo item is now factually complete.
- Very specific: line 55
If yes, update it to done via SetTodoList BEFORE any subsequent action.
- Distinctive: line 62
If new work is discovered after the list was created, insert new items at the current active position.
- Distinctive: line 63
Do not append new items to the end if that would place them after already-completed work unless they are genuinely follow-up tasks.
- Very specific: line 69
Call SetTodoList repeatedly without making real progress between calls.
- Distinctive: line 70
Create a todo list and then ignore it.
- Very specific: line 72
Leave an item as in_progress after the work is complete.
- Distinctive: line 73
Delete or overwrite a list to erase unfinished work.
- Distinctive: line 78
When a subtask involves another skill (for example, writing a memory entry or delegating to a subagent), the active todo item should …
- Distinctive: line 82
If you violate any rule in this skill, halt immediately, restore the correct todo list state, and resume from the last valid state before …
≈ “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.
Files
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
todosto replace the entire list. Use this only when the rules below allow it. - Query mode: omit
todosto 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
doneviaSetTodoListBEFORE any subsequent action. - Under no circumstances may you leave an item as
pendingorin_progressafter 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
SetTodoListrepeatedly 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_progressafter 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.
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
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.

