본문으로 건너뛰기
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 的任务需要用户确认后再执行

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

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천2026년 10월 19일 업데이트

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천2026년 10월 19일 업데이트

ask-echo

무료

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huangruiteng/CS-Notes4천2026년 10월 19일 업데이트

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huangruiteng/CS-Notes4천2026년 10월 19일 업데이트

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천2026년 10월 19일 업데이트

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천2026년 10월 19일 업데이트

huangruiteng의 스킬 모두 보기

이 스킬의 문제 신고