AgentSkillsCN

todo-add

将新任务添加至主待办列表

SKILL.md
--- frontmatter
name: todo-add
description: Add a new task to the master todo list
argument-hint: <task description>

First, resolve the user's home directory by running echo $HOME via Bash. The todo file is at <home>/.claude/todo.md. The plan directories live under <home>/.claude/todo/.

Add a new task to the todo file.

Use $ARGUMENTS as the task description. If no arguments provided, ask the user what task to add.

Every task MUST have a Directory field. If the user did not specify a directory, ask them: "What directory should this task start from?"

To determine the next task number, read the file and find the highest existing ### N. heading, then increment by 1.

Two edits are required:

  1. Add a row to the summary table (in the ## Summary section) with columns: #, Task, Dir, Plan, Status. Set Plan to and Status to pending.

  2. Append the full task entry under ## Tasks:

markdown
### N. Task Title
- **Directory**: `/path/to/directory`
- **Description**:
  - Detail lines...

After adding the task, ask the user if they'd like to create an initial plan for it. If yes, create the directory <home>/.claude/todo/<N>/ and a plan.md with the task description and any initial notes.

Confirm what was added.