360 Secure SkillHub
360 安全技能中心

Tasks.md Sprint Sync

核心功能:读取PLAN.md中进行中的阶段工作项,对比TASKS.md对应项目的在办任务,可报告差异或更新TASKS.md以匹配计划。典型场景:敏捷迭代中保持任务文档与计划对齐。输入需指定项目名,可自定义文件路径、同步模式;输出依模式返回差异或更新文件,按结果返回对应退出码。

daniellummis
daniellummis
热度 52.16
最近更新 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