src/skills/runtime/plan-files/SKILL.md
This skill should be used when the task is complex enough to benefit from task-local planning files, but should not introduce a new plan mode, supervisor, or memory layer.
npx skillsauth add 42atom/msgcode plan-filesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
本 skill 是 file-first planning 说明书,不是系统模式开关。
plan、memory、/task 的边界在以下场景读取并使用本 skill:
默认原则:能不落盘就不落盘;要落盘时,先用最少文件。
plan 不是 memoryplan:当前任务的临时工作记忆,任务结束后价值快速下降memory:跨任务长期保留的信息,如用户偏好、长期约束、固定环境事实不要把长期偏好、长期规则、稳定背景写进 plan 文件。
plan 不是 /taskplan-files:告诉你怎么用文件规划任务/task 与 TaskSupervisor:负责长任务状态、续跑、取消、恢复不要因为用了 plan 文件,就再发明新的监督器。
plan 不是交付物先问自己:
如果答案都是否,直接做,不要建 plan 文件。
首选只创建一份计划文件,而不是默认三文件。
推荐最小结构:
# <任务标题>
## Goal
- 这次任务最终要达成什么
## Non-Goals
- 明确哪些不做,防止扩 scope
## Deliverable
- 最终交付是什么;如果不需要单独文件,也写清楚
## Acceptance Criteria
- 验收标准
## Phases
- [ ] Phase 1: ...
- [ ] Phase 2: ...
- [ ] Phase 3: ...
## Open Questions
- 当前还不确定的点
## Evidence
- 关键日志、命令、文件路径、测试结果
## Status
- 当前阶段 / 下一步
notes当研究结果、日志、比较项太长,会污染上下文时,再单独建 notes 文件。
不要机械地为每个任务都创建单独交付文件。
如果当前项目已经有 issues/、docs/plan/ 这类协议,优先遵守仓库协议,不另起炉灶。
例如在 msgcode 仓库:
issues/tkNNNN.<state>.<board>.<slug>[.prio].mddocs/plan/plNNNN.<state>.<board>.<slug>[.prio].md优先使用:
AIDOCS/tasks/tkNNNN.<state>.<board>.<slug>[.prio].mdAIDOCS/notes/rsNNNN.<state>.<board>.<slug>.md保持文件可读、可追踪,不要创建过深目录树。
如果只有 read_file + bash:
read_file 先看已有协议或已有 plan 文件bash 创建或更新文件plan 文件不负责“监督”,只负责让完成条件清楚。
完成任务时,至少检查:
Deliverable 是否已经存在或已经直接回复给用户Acceptance Criteria 是否满足Open Questions 是否已关闭,或已明确告知用户Evidence 是否足够支撑结论复杂长任务如需额外续跑/恢复,再使用现有 /task,不要再加 plan 层。
planning 是任务内文件工作记忆,不是新的系统模式。
data-ai
This skill should be used when the model needs detailed image understanding beyond the system preview summary, and needs a provider-neutral capability index.
development
# todo skill 触发:任务记录、查看待办、标记完成。 优先入口:`~/.config/msgcode/skills/todo/main.sh` 默认 workspace:当前目录 `$PWD`(可被 `--workspace` 覆盖)。 常用: - `bash ~/.config/msgcode/skills/todo/main.sh add "补充测试报告" --json` - `bash ~/.config/msgcode/skills/todo/main.sh list --json` - `bash ~/.config/msgcode/skills/todo/main.sh done <taskId> --json`
development
# thread skill 触发:查看/切换会话线程,读取线程消息。 优先入口:`msgcode thread ...` 常用: - `msgcode thread list --json` - `msgcode thread active --json` - `msgcode thread messages <thread-id> --limit 20 --json` - `msgcode thread switch <thread-id> --json`
development
This skill should be used when the model needs to create, inspect, enable, disable, or remove recurring schedules in msgcode, or when diagnosing schedule state in the current workspace.