todo — команда для Claude Code: список задач в todos.md
Ведёт задачи проекта в файле todos.md прямо из чата: добавить, закрыть, удалить, посмотреть список. Пригодится, когда не хочется уходить из Claude ради таск-трекера.
npx claude-code-templates@latest --command project-management/todoЧто делает todo
Команда работает с файлом todos.md в корне проекта. Она сама находит корень по признакам вроде .git или package.json, создаёт файл, если его нет, и держит две секции: ## Active и ## Completed. Задачи нумеруются, так что дальше можно ссылаться на них по номеру.
Действия задаются первым аргументом: add, complete, remove, undo, due, list, past due, next. К add можно вторым параметром приписать срок — «tomorrow», «next week», «4 days», конкретную дату. Даты сохраняются в формате MM/DD/YYYY, время добавляется, только если вы его назвали. Активные задачи с датой идут раньше тех, у кого срока нет.
Инструменты ограничены: Read, Write, Edit. Ничего вне todos.md команда не трогает, так что для правок кода она не подойдёт. И если проект разложен так, что корень не угадывается по .git или package.json, файл может создаться не там, где вы ждёте — это повод проверить путь после первого запуска.
Какие задачи решает
- записать задачу в список, не выходя из чата
- проставить срок у уже добавленной задачи
- закрыть выполненный пункт и убрать его из активных
- посмотреть, что просрочено и ещё не сделано
- отменить случайное закрытие задачи
Примеры запросов агенту
- /user:todo add "Fix navigation bug"
- /user:todo add "Fix navigation bug" tomorrow
- /user:todo list
Как установить todo
1Через claude-code-templates
npx claude-code-templates@latest --command project-management/todo2Вручную: положить файлы
.claude/commands/todo.mdВызов — /todo. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
~/.codex/prompts/todo.mdВызов — /prompts:todo. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.github/prompts/todo.prompt.mdВручную: положить файлы
.gemini/commands/todo.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Из того же набора205
Весь набор →Похожие
Рядом в каталоге
Все слэш-команды по теме «Заметки, задачи и проекты» →Вопросы о todo
Как установить todo в Claude?
Выполните npx claude-code-templates@latest --command project-management/todo. После этого файл команды лежит в .claude/commands/todo.md.
Что делает команда todo?
Ведёт список задач проекта в todos.md: добавляет пункты, отмечает выполненные, удаляет, показывает активные и просроченные.
Где хранятся задачи?
В файле todos.md в корне проекта. Команда ищет корень по .git, package.json и похожим признакам, а если файла нет — создаёт его.
Исходный текст
todo.md · MIT
--- allowed-tools: Read, Write, Edit argument-hint: "[action] [task-description] | add | complete | remove | list" description: Manage project todos in todos.md file --- # Project Todo Manager Manage todos in a `todos.md` file at the root of your current project directory: **$ARGUMENTS** ## Usage Examples: - `/user:todo add "Fix navigation bug"` - `/user:todo add "Fix navigation bug" [date/time/"tomorrow"/"next week"]` an optional 2nd parameter to set a due date - `/user:todo complete 1` - `/user:todo remove 2` - `/user:todo list` - `/user:todo undo 1` ## Instructions: You are a todo manager for the current project. When this command is invoked: 1. **Determine the project root** by looking for common indicators (.git, package.json, etc.) 2. **Locate or create** `todos.md` in the project root 3. **Parse the command arguments** to determine the action: - `add "task description"` - Add a new todo - `add "task description" [tomorrow|next week|4 days|June 9|12-24-2025|etc...]` - Add a new todo with the provided due date - `due N [tomorrow|next week|4 days|June 9|12-24-2025|etc...]` - Mark todo N with the due date provided - `complete N` - Mark todo N as completed and move from the ##Active list to the ##Completed list - `remove N` - Remove todo N entirely - `undo N` - Mark completed todo N as incomplete - `list [N]` or no args - Show all (or N number of) todos in a user-friendly format, with each todo numbered for reference - `past due` - Show all of the tasks which are past due and still active - `next` - Shows the next active task in the list, this should respect Due dates, if there are any. If not, just show the first todo in the Active list ## Todo Format: Use this markdown format in todos.md: ```markdown # Project Todos ## Active - [ ] Task description here | Due: MM-DD-YYYY (conditionally include HH:MM AM/PM, if specified) - [ ] Another task ## Completed - [x] Finished task | Done: MM-DD-YYYY (conditionally include HH:MM AM/PM, if specified) - [x] Another completed task | Due: MM-DD-YYYY (conditionally include HH:MM AM/PM, if specified) | Done: MM-DD-YYYY (conditionally include HH:MM AM/PM, if specified) ``` ## Behavior: - Number todos when displaying (1, 2, 3...) - Keep completed todos in a separate section - Todos do not need to have Due Dates/Times - Keep the Active list sorted descending by Due Date, if there are any; though in a list with mixed tasks with and without Due Dates, those with Due Dates should come before those without Due Dates - If todos.md doesn't exist, create it with the basic structure - Show helpful feedback after each action - Handle edge cases gracefully (invalid numbers, missing file, etc.) - All provided dates/times should be saved/formatted in a standardized format of MM/DD/YYYY (or DD/MM/YYYY depending on locale), unless the user specifies a different format - Times should not be included in the due date format unless requested (`due N in 2 hours` should be MM/DD/YYYY @ [+ 2 hours from now]) Always be concise and helpful in your responses.
© davila7 · MIT · davila7/claude-code-templates