本文へ移動
cccskills
無料GitHub で公開

priority-task-reader

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

インストール方法を見る

含まれるファイル(3)

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

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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 的任务需要用户确认后再执行

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Track and synthesize current AI hotspots into a bilingual HTML daily report. Use when the user says "AI热点", asks for AI日报/AI日报 HTML/AI hot topics, or wants the best recent AI products, papers, viewpoints, and cognition-shifting items from AI/news aggregators.

日本語の概要は準備中です。原文の説明を表示しています。

huangruiteng/CS-Notes4,0022026年10月9日 更新

Fetch and extract full text from arxiv paper HTML pages. Invoke when user asks to read an arxiv paper, analyze a paper's content, or when given an arxiv ID/URL.

日本語の概要は準備中です。原文の説明を表示しています。

huangruiteng/CS-Notes4,0022026年10月9日 更新

ask-echo

無料

使用火山引擎 Ask-Echo 融合信息搜索 API 进行 web 搜索、web 搜索总结版和图片搜索。

日本語の概要は準備中です。原文の説明を表示しています。

huangruiteng/CS-Notes4,0022026年10月9日 更新

Build or update the BlueBubbles external channel plugin for Clawdbot (extension package, REST send/probe, webhook inbound).

日本語の概要は準備中です。原文の説明を表示しています。

huangruiteng/CS-Notes4,0022026年10月9日 更新

Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user wants Codex to create a command-line tool that can run from any repo, expose composable read/write commands, return stable JSON, manage auth, and pair with a companion skill.

日本語の概要は準備中です。原文の説明を表示しています。

huangruiteng/CS-Notes4,0022026年10月9日 更新

Optimize code performance through iterative improvements (max 2 rounds). Benchmark execution time and memory usage, compare against baseline implementations, and generate detailed optimization reports. Supports C++, Python, Java, Rust, and other languages.

日本語の概要は準備中です。原文の説明を表示しています。

huangruiteng/CS-Notes4,0022026年10月9日 更新

huangruiteng のスキルをすべて見る

このスキルの問題を報告する