بنقرة واحدة
ts-task-reopen
Reopen a closed task — updates status to open, moves from closed/ to open/, runs housekeep
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Reopen a closed task — updates status to open, moves from closed/ to open/, runs housekeep
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Write Bash commands that don't trigger unnecessary permission prompts. Use Read/Edit/Grep instead of head/tail/sed/awk/cat/echo; split chained commands (&&, ;, ||) into separate Bash calls; drop diagnostic suffixes like `; echo "EXIT=$?"`. The allowlist matches whole command strings — every mismatch costs the user attention.
Commit user-named files atomically via scripts/commit-pathspec.sh (which wraps `git commit -m "..." -- <files>` and writes the provenance token the pre-commit hook validates). Applies the CLAUDE.md "Pre-commit hook failures on unrelated changes" protocol when the hook fails. Never adds --no-verify silently — explicit user approval is required.
Scaffold a new epic file in docs/developers/tasks/open/ and run housekeep
Scaffold a new idea file in docs/developers/ideas/open/ and regenerate the ideas OVERVIEW.md
Set a task to active — updates status, moves to active/, runs housekeep. Also resumes paused tasks (paused/ → active/ or active/ with closed prerequisites).
Mark a task as closed — writes effort_actual, moves the file to closed/, runs housekeep, and commits
| name | ts-task-reopen |
| description | Reopen a closed task — updates status to open, moves from closed/ to open/, runs housekeep |
The user invokes this as /ts-task-reopen TASK-NNN (or a partial ID
like 47).
Steps:
/check-branch to verify the current branch is not main.docs/developers/tasks/closed/ whose
name contains the given ID. If not found (not currently closed),
report the error and stop.status: field in the frontmatter from closed to
open. Remove the closed: YYYY-MM-DD line if present.python scripts/housekeep.py --apply — this moves the file
back to open/ (via git mv) and regenerates OVERVIEW.md.Do not commit — the user commits when they start real work on the reopened task.
When that commit happens, the OVERVIEW/EPICS/KANBAN regen this
skill triggered is part of it. Housekeep regenerates those three
files as a side-effect of the status change, so under the "commit
only your own work" rule in CLAUDE.md they count as the user/agent's
own output for this transition. Stage them alongside the renamed task
file. Other in-flight sessions' regen lines may be intermixed — that
is fine; the index reflects current on-disk state.
Rename pathspec — both sides. Housekeep does
git mv closed/task-NNN.md → open/task-NNN.md. The pathspec list
passed to /commit must include both the old (closed/) and
new (open/) paths; naming only the destination commits the
addition but leaves the source-side deletion orphaned in the working
tree as a D entry. This is the bug TASK-347 fixed end-to-end.
The wrapper now accepts rename sources, but it can only commit the
deletion side if you name it.