secondbrain-task

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Create Task

创建任务

Create tracked tasks with priority, due dates, and status workflow.
创建带有优先级、截止日期和状态流转的可跟踪任务。

Prerequisites

前提条件

Verify Tasks entity is enabled:
  1. Check for
    .claude/data/tasks/records.yaml
  2. If not found, suggest enabling tasks via
    secondbrain-init
    or
    secondbrain-entity
确认Tasks实体已启用:
  1. 检查是否存在
    .claude/data/tasks/records.yaml
  2. 若未找到,建议通过
    secondbrain-init
    secondbrain-entity
    启用任务功能

Workflow

工作流

Step 1: Gather Information

步骤1:收集信息

Collect from user or conversation context:
  1. Title — Brief task description
  2. Description (optional) — Detailed description
  3. Priority — low, medium, high, critical
  4. Due Date (optional) — Target completion date
  5. Assignee (optional) — Person responsible
从用户或对话上下文收集以下信息:
  1. 标题 — 任务简要描述
  2. 描述(可选)— 详细说明
  3. 优先级 — low、medium、high、critical
  4. 截止日期(可选)— 目标完成日期
  5. 负责人(可选)— 任务责任人

Step 2: Generate Task Number

步骤2:生成任务编号

Sequential ID format:
TASK-XXXX
(zero-padded)
  1. Load
    .claude/data/tasks/records.yaml
  2. Get
    last_number
    , increment by 1
  3. Format as
    TASK-0042
序列ID格式:
TASK-XXXX
(补零填充)
  1. 加载
    .claude/data/tasks/records.yaml
  2. 获取
    last_number
    ,加1递增
  3. 格式化为
    TASK-0042

Step 3: Create Task Record

步骤3:创建任务记录

Add to
.claude/data/tasks/records.yaml
:
yaml
- number: 42
  title: "Implement user authentication"
  description: "Add OAuth2 login flow"
  status: todo
  priority: high
  created: 2026-01-15
  due_date: 2026-01-31
  assignee: sergey
  tags: [auth, security]
Update
last_number: 42
添加至
.claude/data/tasks/records.yaml
yaml
- number: 42
  title: "Implement user authentication"
  description: "Add OAuth2 login flow"
  status: todo
  priority: high
  created: 2026-01-15
  due_date: 2026-01-31
  assignee: sergey
  tags: [auth, security]
更新
last_number: 42

Step 4: Create Task Document (Optional)

步骤4:创建任务文档(可选)

For complex tasks, create a document:
Filename:
docs/tasks/TASK-0042-implement-authentication.md
markdown
---
id: TASK-0042
title: Implement user authentication
status: todo
priority: high
created: 2026-01-15
due_date: 2026-01-31
assignee: sergey
tags: [auth, security]
---
对于复杂任务,创建文档:
文件名:
docs/tasks/TASK-0042-implement-authentication.md
markdown
---
id: TASK-0042
title: Implement user authentication
status: todo
priority: high
created: 2026-01-15
due_date: 2026-01-31
assignee: sergey
tags: [auth, security]
---

TASK-0042: Implement user authentication

TASK-0042: Implement user authentication

Description

Description

Add OAuth2 login flow for the application.
Add OAuth2 login flow for the application.

Acceptance Criteria

Acceptance Criteria

  • OAuth2 provider configuration
  • Login redirect flow
  • Token storage
  • Logout functionality
  • OAuth2 provider configuration
  • Login redirect flow
  • Token storage
  • Logout functionality

Notes

Notes

Implementation notes here...
undefined
Implementation notes here...
undefined

Step 5: Sidebar Note

步骤5:侧边栏说明

DO NOT manually add tasks to VitePress sidebar.
Tasks are automatically listed via the
EntityTable
component on
docs/tasks/index.md
, which reads from
.claude/data/tasks/records.yaml
. No sidebar modification needed.
请勿手动将任务添加至VitePress侧边栏。
任务会通过
docs/tasks/index.md
上的
EntityTable
组件自动列出,该组件读取
.claude/data/tasks/records.yaml
中的数据,无需修改侧边栏。

Step 6: Confirm Creation

步骤6:确认创建

undefined
undefined

Task Created

任务已创建

ID: TASK-0042 Title: Implement user authentication Priority: high Due: 2026-01-31 Status: todo
ID: TASK-0042 标题: Implement user authentication 优先级: high 截止日期: 2026-01-31 状态: todo

Next Steps

后续步骤

  • Update status as work progresses
  • Add notes to the task document
  • Mark complete when done
undefined
  • 随着工作推进更新状态
  • 向任务文档添加备注
  • 完成后标记为已完成
undefined

Status Workflow

状态流转

todo → in_progress → done
         blocked → in_progress
        canceled
StatusDescription
todoNot started
in_progressWork in progress
blockedWaiting on dependency
doneCompleted
canceledWon't be done
todo → in_progress → done
         blocked → in_progress
        canceled
状态描述
todo未开始
in_progress进行中
blocked等待依赖项
done已完成
canceled不会执行

Priority Levels

优先级级别

PriorityUse When
criticalUrgent, blocks other work
highImportant, should be done soon
mediumNormal priority
lowNice to have, no rush
优先级使用场景
critical紧急,阻碍其他工作
high重要,应尽快完成
medium常规优先级
low锦上添花,无需着急

Additional Resources

额外资源

  • references/task-workflows.md
    — Detailed task lifecycle, priority guidelines, and workflow patterns
  • references/task-workflows.md
    — 详细的任务生命周期、优先级指南和工作流模式

Tips

提示

  1. Keep titles actionable — Start with a verb (Implement, Fix, Add)
  2. Set realistic due dates — Better to underpromise
  3. Update status promptly — Keeps the backlog accurate
  4. Use tags — Helps filter and group related tasks
  5. Add acceptance criteria — Makes "done" unambiguous
  1. 标题要具可操作性 — 以动词开头(如Implement、Fix、Add)
  2. 设置实际的截止日期 — 宁肯少承诺多交付
  3. 及时更新状态 — 保持待办列表准确
  4. 使用标签 — 有助于筛选和分组相关任务
  5. 添加验收标准 — 明确“完成”的定义