This skill replaces the deprecated Codex prompt workflow with a deterministic script.
Archive the three active root planning files into one timestamped local folder:
.plannings/<yyyyMMdd-HHmmss>-<feature-slug>/
Use the bundled script instead of reimplementing the move logic.
In the commands below,
<skill-dir>is this skill's base directory, announced when the skill loads. Substitute the literal path; it is not an environment variable. The script self-locates, so only the path to it must resolve.
Run
From the project root:
python "<skill-dir>/scripts/archive_planning.py" "$ARGUMENTS"
If $ARGUMENTS is empty, omit it:
python "<skill-dir>/scripts/archive_planning.py"
The script treats the current working directory as the project root.
Behavior contract
- Require all three root files before doing anything:
task_plan.mdfindings.mdprogress.md
- If any file is missing, stop, print every missing file, do not create
.plannings/, and do not move anything. - If a feature name argument is provided, use it for the archive slug.
- If no feature name is provided, infer it in this order:
- first line of
task_plan.mdmatching# 任务计划:xxxor# 任务计划: xxx - first valid content line under
## 目标intask_plan.md - first valid content line under
## 需求infindings.md - current project root directory name
- first line of
- Move the three files into the archive directory. Do not copy them and do not leave root copies behind on success.
- Keep the operation scoped to those three files only; never archive nested planning files or unrelated notes.
Output
Success prints the archive directory and moved file list. Failure prints the missing files plus a no-op guarantee.