360 Secure SkillHub
360 安全技能中心

Tasks.md Sprint Sync

读取 PLAN.md 中标记为 IN PROGRESS 的阶段及其 Work 条目,定位 TASKS.md 对应项目节,报告计划工作项与进行中任务的漂移;apply 模式会改写 TASKS.md 的 Current phase 并替换 In progress 列表。由 Bash 调用 Python 内联脚本执行,支持 report/apply 两种模式。

daniellummis
daniellummis
热度 52.03
最近更新 2026-05-11 17:28:58
分类:效率依赖:代码执行 / 读写文件应用场景:任务管理 / 工作流 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add tasks-md-sprint-sync
Metadata
name
tasks-md-sprint-sync
description
Sync TASKS.md current phase and in-progress checklist from the active PLAN.md phase to keep sprint execution aligned.
version
1.0.0
metadata
{"openclaw":{"requires":{"bins":["bash","python3"]}}}

Tasks.md Sprint Sync

Use this skill to keep a project's TASKS.md section aligned with whatever phase is marked IN PROGRESS in that project's PLAN.md.

What this skill does

  • Reads the active phase from PLAN.md (phase with **Status: IN PROGRESS**)
  • Extracts bullets from that phase's ### Work section
  • Finds the target project section in TASKS.md
  • Reports drift between plan work items and ### In progress tasks
  • Optionally updates TASKS.md to match plan phase + work items

Inputs

Required:

  • PROJECT_NAME (the exact heading in TASKS.md, e.g. ClawHub Skills)

Optional:

  • PLAN_FILE (default: PLAN.md)
  • TASKS_FILE (default: TASKS.md)
  • SYNC_MODE (report or apply, default: report)

Run

Dry-run drift report:

PROJECT_NAME="ClawHub Skills" \
PLAN_FILE=projects/clawhub-skills/PLAN.md \
TASKS_FILE=TASKS.md \
bash skills/tasks-md-sprint-sync/scripts/sync-tasks-phase.sh

Apply sync to TASKS.md:

PROJECT_NAME="ClawHub Skills" \
PLAN_FILE=projects/clawhub-skills/PLAN.md \
TASKS_FILE=TASKS.md \
SYNC_MODE=apply \
bash skills/tasks-md-sprint-sync/scripts/sync-tasks-phase.sh

Run against included fixtures:

PROJECT_NAME="Demo Project" \
PLAN_FILE=skills/tasks-md-sprint-sync/fixtures/PLAN.sample.md \
TASKS_FILE=skills/tasks-md-sprint-sync/fixtures/TASKS.sample.md \
SYNC_MODE=apply \
bash skills/tasks-md-sprint-sync/scripts/sync-tasks-phase.sh

Output contract

  • Exit 0 when report/apply completes
  • Exit 1 on invalid inputs, missing sections, or no active phase
  • In report mode: prints missing/extra task drift, no file changes
  • In apply mode: updates Current phase + replaces In progress list for the target project section