Agent Skillsnubjs/nub › todo

todo

GitHub

解析 Markdown 文件中的状态标签待办事项,支持按状态、章节筛选或获取统计摘要。无需加载整个文件即可提取特定项,适用于长文件或构建子代理提示词。

.claude/skills/todo/SKILL.md nubjs/nub

触发场景

用户需要查看或筛选 Markdown 文件中的待办事项 用户希望获取长文件的待办事项统计摘要 用户需要从特定章节提取未完成的待办任务

安装

npx skills add nubjs/nub --skill todo -g -y
更多选项

非标准路径

npx skills add https://github.com/nubjs/nub/tree/main/.claude/skills/todo -g -y

不安装直接使用

npx skills use nubjs/nub@todo

指定 Agent (Claude Code)

npx skills add nubjs/nub --skill todo -a claude-code -g -y

安装 repo 全部 skill

npx skills add nubjs/nub --all -g -y

预览 repo 内 skill

npx skills add nubjs/nub --list

SKILL.md

Frontmatter
{
    "name": "todo",
    "version": "1.1.0",
    "metadata": {
        "internal": true
    },
    "description": "Parse status-tagged todo lines from a markdown file — filter by status, section, or get a quick tally — without loading the whole file."
}

todo — parse status-box todo lines from markdown

When a todo file is long, run the parser to extract just the items you care about instead of loading the whole file.

Convention

Every todo line carries a status box, optionally after a list marker and indent. Six markers:

- [ ]  todo / not started
- [/]  in progress
- [x]  done  (case-insensitive)
- [-]  cancelled / dropped
- [>]  deferred / forwarded
- [?]  question / blocked-on-answer

Lines inside fenced code blocks are excluded. Each item is tagged with the nearest enclosing ##/### heading as its section context.

Invocation

node scripts/todo/index.mjs <file.md> [flags]
# or equivalently:
nub scripts/todo/index.mjs <file.md> [flags]

Flags

--pending, --todo       show [ ] items only
--in-progress, --wip    show [/] items only
--done                  show [x] items only
--cancelled, --dropped  show [-] items only
--deferred              show [>] items only
--question, --blocked   show [?] items only
--not-done              live actionable set: [ ] + [/] + [?]
                        (excludes done, cancelled, and deferred)

--section <substring>   limit to todos under headings matching substring
--counts                print tally (all six categories) and exit
--json                  machine-readable JSON array

--help, -h              usage

Flags are combinable. If no status filter is given, all statuses are shown.

Output format

L 7  [ ]  Write contributing guide [Setup]
L11  [ ]  Implement parser [Features]
L12  [/]  Write lexer [Features]
L20  [x]  Handle fenced code blocks [Edge cases]

L<n> is the 1-based line number — use it with Read(file, offset=n, limit=1) to jump straight to a line.

--counts output:

pending:      5
in-progress:  2
question:     1
deferred:     1
done:         4
cancelled:    1

--not-done is the fastest way to reconstruct "what's left to act on" after a context reset — [?] (questions) count as actionable (answer them); [>] deferred and [-] cancelled do not.

Examples

# Quick status check on a long epic
node scripts/todo/index.mjs epics/v0.1/todo.md --counts

# Everything not yet done in a specific section
node scripts/todo/index.mjs epics/final-polish/todo.md --not-done --section "Work units"

# All in-progress items as JSON (for a sub-agent prompt)
node scripts/todo/index.mjs epics/v0.1/todo.md --wip --json

When to use

  • Before loading a long todo file — run --counts to see the shape, then --not-done to get only the open work.
  • When building a sub-agent prompt that needs the open items from one section: --pending --section <heading> gives the exact slice without embedding the whole file.
  • Combine with md-toc when you also need to navigate prose sections of the same file.

版本历史

  • 44d0dd0 当前 2026-07-05 11:03

同 Skill 集合

.claude/skills/audit-thread/SKILL.md
.claude/skills/download-stats/SKILL.md
.claude/skills/git-archaeology/SKILL.md
.claude/skills/md-toc/SKILL.md
.claude/skills/plan-thread/SKILL.md
skills/nub/SKILL.md
.agents/skills/agent-browser/SKILL.md
.claude/skills/ad-hoc-test/SKILL.md
.claude/skills/address-issue/SKILL.md
.claude/skills/aube-sync/SKILL.md
.claude/skills/ci-adhoc-test/SKILL.md
.claude/skills/ci-watch/SKILL.md
.claude/skills/dev-loop/SKILL.md
.claude/skills/impact-analysis/SKILL.md
.claude/skills/implementation-thread/SKILL.md
.claude/skills/prose-writing/SKILL.md
.claude/skills/release/SKILL.md
.claude/skills/rust-build/SKILL.md
.claude/skills/visual-review/SKILL.md
.claude/skills/worktree/SKILL.md

元信息

文件数
0
版本
ab079b4
Hash
19bce9a8
收录时间
2026-07-05 11:03

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-13 22:06
浙ICP备14020137号-1 $访客地图$