Skip to content
cccskills
FreePublished on GitHub

priority-task-reader

Read active and pending tasks from todos.json, group them by P0–P9 priority, and identify what comes next. Tasks with equal priority are ordered by status and creation time, with JSON output also available.

OriginalShow the original description

按优先级读取任务 Skill - 从 todos.json 读取 in-progress 和 pending 任务,按 P0-P9 优先级排序

See how to install

Good for

  • Reviewing unfinished tasks grouped by priority
  • Identifying the next task for an AI agent
  • Retrieving several upcoming tasks as JSON
  • Reading tasks from a custom configuration

Files included (3)

  • SKILL.md3.7 KB
  • main.py9.1 KB
  • skill.json454 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

Priority Task Reader Skill

按优先级读取任务,从 todos.json 读取 in-progress 和 pending 任务,按 P0-P9 优先级排序。

核心功能

  1. 读取任务 - 从 todos.json 读取所有任务
  2. 筛选任务 - 只选择 in-progress 和 pending 状态的任务
  3. 按优先级排序 - 按 P0(最高)→ P9(最低)优先级排序
  4. 分组展示 - 按优先级分组展示任务列表
  5. 获取下一个任务 - 识别下一个应该由 AI 执行的任务

优先级排序规则

排序优先级(从高到低):

  1. 优先级分数:P0 (0) → P1 (1) → P2 (2) → ... → P9 (9)
  2. 状态:in-progress 优先于 pending
  3. 创建时间:越早创建的优先

向后兼容:high (2), medium (5), low (8)

使用方法

基本使用 - 显示任务列表

cd /Users/bytedance/CS-Notes/.trae/openclaw-skills/priority-task-reader
python3 main.py

输出 JSON 格式

python3 main.py --json

显示下一个应该执行的任务

python3 main.py --next

显示接下来 K 个应该执行的任务

python3 main.py --next --next-count 3

同时使用多个选项

python3 main.py --json --next --next-count 5

输出示例

任务列表输出

================================================================================
📋 按优先级排序的任务列表
================================================================================

================================================================================
🔸 优先级: P0 (1 个任务)
================================================================================

  1. ⏸️ [todo-20260219-050]
     标题: 精炼整理知乎文章:关于 AI Agent 的内容
     负责人: ai

================================================================================
🔸 优先级: P1 (6 个任务)
================================================================================

  1. 🚀 [todo-20260223-041344]
     标题: 解决子agent遇到gateway pairing问题
     负责人: ai
...

================================================================================
📊 总计: 48 个任务 (in-progress + pending)
================================================================================

下一个任务输出

================================================================================
🎯 下一个应该执行的任务
================================================================================
{
  "id": "todo-20260219-050",
  "title": "精炼整理知乎文章:关于 AI Agent 的内容",
  "status": "pending",
  "priority": "P0",
  "assignee": "ai",
  ...
}

配置

默认配置在 skill.json 中:

{
  "todos_json_path": "/Users/bytedance/CS-Notes/.trae/todos/todos.json",
  "workspace": "/Users/bytedance/CS-Notes"
}

可以通过 --config 参数指定自定义配置文件。

在推进todo指令中使用

当用户说"推进todo"时,AI 应该:

  1. 先调用这个 skill 获取按优先级排序的任务列表
  2. 从列表中选择最高优先级且适合 AI 执行的任务
  3. 优先执行 Assignee: AI 且 Feedback Required: false 的任务
  4. 按优先级从高到低执行

重要原则

  • P0 优先:笔记整理任务固定为 P0,必须最高优先级处理
  • in-progress 优先:正在进行的任务比待处理任务优先级高
  • 跳过需要确认的任务:Feedback Required: true 的任务需要用户确认后再执行

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

ai-hotspots

FreeSummary

Gather recent AI products, papers, tools, and viewpoints into a Chinese and English HTML daily report. Select up to ten supported items, check original sources where possible, and summarize shared trends with practical next actions.

  • Reviewing recent AI developments each morning
  • Tracking research and tools for AI agents
  • Choosing what to read or try next
huangruiteng/CS-Notes4KUpdated Oct 20, 2026

Retrieve an arxiv paper's full text from its HTML version using an ID or URL. Extract readable text with section structure, optionally save it to a file, and prepare it for reading, notes, or technical analysis.

  • Reading a paper from an arxiv ID or URL
  • Extracting full text for research notes
  • Saving long papers for section-by-section reading
huangruiteng/CS-Notes4KUpdated Oct 20, 2026

ask-echo

FreeSummary

Search the web or find images through the Ask-Echo API from 火山引擎. Retrieve result details, request an AI-generated summary, and narrow searches by time range or selected websites.

  • Finding web pages about a specific topic
  • Getting an AI-generated summary of search results
  • Searching for images
huangruiteng/CS-Notes4KUpdated Oct 20, 2026

bluebubbles

FreeSummary

Build or update the BlueBubbles channel plugin for Clawdbot. The skill explains code locations, existing helper functions, message delivery, connection checks, and webhook handling, which receives incoming messages and attachments through HTTP notifications.

  • Building or updating the BlueBubbles channel plugin
  • Implementing message delivery and connection checks
  • Handling incoming messages and attachments through webhooks
huangruiteng/CS-Notes4KUpdated Oct 20, 2026

cli-creator

FreeSummary

Turn API documentation, SDKs, or existing scripts into reusable command-line tools for Codex. Build focused read and write commands, stable JSON output, authentication checks, and a companion skill explaining how future sessions should use the tool.

  • Turning an API into reusable commands
  • Making an internal script usable across projects
  • Adding JSON output and authentication checks
huangruiteng/CS-Notes4KUpdated Oct 20, 2026

Improve existing code through up to two optimization rounds, measuring execution time and memory use against a baseline. Verify that results remain correct, save the optimized code, and document changes, measured gains, and trade-offs in a report.

  • Improving the performance of existing code
  • Comparing execution time and memory use with a baseline
  • Checking that optimized code produces correct results
huangruiteng/CS-Notes4KUpdated Oct 20, 2026

See all skills by huangruiteng

Report a problem with this skill