计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
task-management【效率与协作】Create, update, list, prioritize, and triage tasks. TRIGGER when: user says "add task", "todo", "what are my tasks", "mark done", "triage", "prioritize", or manages any work item tracking.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
A structured, file-based task tracking system. Each task is an individual markdown file with YAML frontmatter, indexed in a central manifest.
Before any operation, ensure the task system exists:
~/.claude/tasks/ exists — if not, create with mkdir -p ~/.claude/tasks/~/.claude/tasks/TASKS.md exists — if not, create:# Task Index
<!-- Auto-maintained. Do not edit manually. -->
## In Progress
## To Do
## Blocked
## Done
Each task is a file at ~/.claude/tasks/TASK-{NNN}.md:
---
id: TASK-001
title: "Short imperative description (max 80 chars)"
status: todo | in-progress | done | blocked
priority: critical | high | medium | low
created: 2026-04-08
updated: 2026-04-08
due: 2026-04-15 # optional — ISO date
completed: null # set to ISO date when done
tags: [feature, backend] # optional — freeform labels
blocked-by: TASK-003 # optional — dependency
source: "gh#45" # optional — link to GitHub issue, PR, or external ref
---
Detailed description of what needs to be done and why.
## Acceptance Criteria
- [ ] Criterion 1
- [ ] Criterion 2
## Notes
- YYYY-MM-DD: Progress note or context update
$ARGUMENTS starts with "add" or user describes a new taskTASK-001).status: todo, priority: medium, created: today, updated: today.~/.claude/tasks/TASK-{NNN}.md with full schema.TASKS.md:
- [TASK-{NNN}](TASK-{NNN}.md) — {title} ({priority}, due {date})$ARGUMENTS starts with "list" or user asks to see tasksTASKS.md and present grouped by status.$ARGUMENTS:
list high — filter by prioritylist blocked — filter by statuslist backend — filter by taglist overdue — due date < today and status != done## Tasks (5 total: 1 in-progress, 3 todo, 1 blocked)
### In Progress
- TASK-005: Migrate user table (high, due tomorrow)
### To Do
- TASK-007: Write API docs (medium, no due date)
- TASK-008: Add rate limiting (medium, due 2026-04-20)
- TASK-009: Update onboarding flow (low)
### Blocked
- TASK-006: Deploy auth service — blocked by TASK-005
$ARGUMENTS starts with "done" or user marks a task completestatus: donecompleted: {today}updated: {today}TASKS.md from its current section to ## Done.blocked-by references), notify the user and offer to unblock them.updated: {today}.## Notes describing the change.TASKS.md if the status, priority, or title changed.$ARGUMENTS starts with "triage" or user asks to review tasksTriage walks through tasks that need attention:
due < today and status != doneupdated > 7 days ago and status is todo or in-progressdue date and priority is high or criticalin-progress for > 14 days$ARGUMENTS starts with "delete" or "remove"TASKS.md.blocked-by referencing this task. If so, warn the user.TASKS.md is a derived index.TASKS.md is out of sync with task files (missing entries, wrong status), rebuild it from the task files.TASKS.md in the same operation. Never leave them inconsistent.