todo.move_to_reorg
Move tasks out of ai_task_queue.md's TO REORG section into the right H1 stage and H2 topic, using an optional Priority tag, after user confirmation
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- description
- Move tasks out of ai_task_queue.md's TO REORG section into the right H1 stage and H2 topic, using an optional Priority tag, after user confirmation
03 SKILL.md 正文
Goal
- Find every H3 task sitting under
# TO REORGinai_task_queue.md - For each task, determine its target H1 stage (from an optional
- Priority: <Stage>line in the body, defaulting to# BACKLOGwhen absent) and its target H2 topic (from the# ALL TOPICSlist) - Present the full set of proposed moves to the user and get explicit confirmation before changing the file
- Move each confirmed task under
## <Topic> (<Stage>)in its target H1 section, stripping the now-consumedPriority:line - Remove the
# TO REORGheader once it has no tasks left under it
References
.claude/skills/todo.rules.md: defines the H1 stage / H2 topic / H3 task organization, the## <Topic> (<Stage>)header convention, and the# ALL TOPICSmaster list
Workflow
Load the Conventions
- Read
.claude/skills/todo.rules.md - Read
ai_task_queue.md's# ALL TOPICSsection; record the ordered list of## <Topic>headers (ignore// <group>comment lines, they are visual grouping, not topics) - Record the H1 stage headers that exist in the file (e.g.
# IN PROGRESS,# BACKLOG - HIGH PRIORITY,# BACKLOG,# ICEBOX); these are the only valid move targets
Find the Tasks to Reorg
- In
ai_task_queue.md, find every H3 header under# TO REORG - For each one, capture the full task block: the header line through everything up to (but not including) the next H1/H2/H3 header
Determine the Target H1 Stage
- Look for a line matching
- Priority: <Stage>anywhere in the task body- Match
<Stage>case-insensitively against the file's H1 stage headers (e.gIcebox-># ICEBOX,High Priority-># BACKLOG - HIGH PRIORITY,Backlog-># BACKLOG,In Progress-># IN PROGRESS) - If
<Stage>doesn't clearly match any existing H1, do not guess: list the task and ask the user which H1 stage to use
- Match
- If no
- Priority:line is present, propose# BACKLOGas the default target stage; this is only a proposal and can be overridden at the confirmation step
Determine the Target H2 Topic
- Match the task's content against the
# ALL TOPICSlist, the same waytodo.move_doneinfers a topic - If no ALL TOPICS entry is a plausible match, do not guess: list the task and ask
the user whether to use the closest existing topic or add a new one to
# ALL TOPICS
Propose the Moves
-
Before changing anything, print one line per task in the form:
### <Title> -> ## <Topic> (<Stage>) -
Group the list by target
<Stage>so the user can scan it stage by stage -
Flag, next to the line, any task whose stage came from the default (no
Priority:tag found) so the user knows it's a guess, not a tag-driven placement -
Stop and wait for explicit user confirmation of this list (as a whole, or with corrections) before making any edit to
ai_task_queue.md
Execute the Moves
- Only after the user confirms, for each approved task in source order:
- Remove the
- Priority: <Stage>line (and the blank line it leaves behind) from the task body; this tag only exists to route the task out of# TO REORGand isn't part of the normal task format - If the H3 header carries no
[ ],[x], or[.]marker, rewrite it to### [ ] <Title>; leave an existing marker unchanged - Cut the task block from
# TO REORG, closing the resulting blank line gap - Append the task block under
## <Topic> (<Stage>)in the confirmed H1 section- If that H2 doesn't exist yet under the target H1, create it at the end of the section
- Keep multiple tasks for the same topic together under one header
- Remove the
Clean Up
- After all confirmed tasks are moved, if
# TO REORGhas no task content left, remove the# TO REORGheader entirely - If some tasks were left unresolved (ambiguous stage or topic), keep
# TO REORGwith only those tasks remaining
Ask User
- Any task whose
Priority:value doesn't match an existing H1 stage - Any task whose topic can't be confidently matched to
# ALL TOPICS - The full proposed move list, before any file edit happens
- Do not guess on an ambiguous case: list it and ask
Report
- List every executed move as
<Title>: TO REORG -> ## <Topic> (<Stage>) - List every task left in
# TO REORGunresolved, and why - State whether the
# TO REORGheader was removed or kept
Verification
- [ ] No file edit happened before the user confirmed the proposed move list
- [ ] Every moved task sits under a
## <Topic> (<Stage>)header whose bare topic also appears in# ALL TOPICS - [ ] Every moved task's H1 section matches its confirmed target stage
- [ ] No
- Priority:line remains in any moved task - [ ] Every H3 task header carries a
[ ],[x], or[.]marker after the move - [ ] Task content (title, body) is unchanged aside from the removed
Priority:line and its position - [ ]
# TO REORGis removed if empty, or left with only unresolved tasks - [ ]
# ALL TOPICSis unchanged except for topics explicitly added during this pass
04 同仓库更多 Skills
tutorial_in_60_mins.propagate_docker_changes
Sync tutorial and class-project Docker files to match project_template
tutorial_in_60_mins.merge_markdown
Merge the content of a markdown file into a Jupyter notebook
tutorial_in_60_mins.format
Format a directory to follow the "Learn X in 60 Minutes" tutorial conventions
tutorial_in_60_mins.create
Create a tutorial directory for the Learn X in 60 Minutes conventions
todo.reorg_in_progress
Reorganize ai_task_queue.md so in-progress tasks, not-started tasks, and mislabeled topic headers sit under the right H1 stage
todo.reorg_headers
Reorganize ai_task_queue.md .md so every H2 topic matches ALL TOPICS and every H3 task sits under the right topic, keeping its H1 stage