一键导入
run-todos
Implement [ready]-tagged TODO items with commits. Use after /list-todos has clarified requirements and marked items as ready.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Implement [ready]-tagged TODO items with commits. Use after /list-todos has clarified requirements and marked items as ready.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add a properly formatted TODO item to TODOS.md. Use when you need to capture a new task, bug, or feature request during development.
Generate feature plan with codebase-aware context. Use when starting a new feature in an existing codebase to skip full spec workflow.
Have OpenAI Codex review the current branch with documentation research. Use for second-opinion code reviews or when you want cross-AI verification.
Configure verification commands for this project. Use when setting up a new project or when verification-config.json is missing or incomplete.
Analyze and prioritize TODO items from TODOS.md. Use when planning work or deciding what to implement next.
Update documentation after commits. Syncs README, AGENTS.md, CHANGELOG, and docs/ with code changes. Use after commits or to analyze working tree changes.
| name | run-todos |
| description | Implement [ready]-tagged TODO items with commits. Use after /list-todos has clarified requirements and marked items as ready. |
| allowed-tools | Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion, Task |
Implement TODO items that have been marked as [ready] in TODOS.md.
Copy this checklist and track progress:
Run TODOs Progress:
- [ ] Step 1: Directory guard check
- [ ] Step 2: Find [ready] items
- [ ] Step 3: User selection
- [ ] Step 4: Git workflow setup
- [ ] Step 5: Implementation loop (per item)
- [ ] Step 6: Update TODOS.md with completion
- [ ] Step 7: Generate summary report
Before starting, confirm TODOS.md exists in the current working directory.
cd into their project directory.Before starting: If context is below 40% remaining, run /compact first. This ensures the full command instructions remain in context throughout execution.
[ready] tag- [x]) or have — DONEIf no [ready] items found:
NO READY ITEMS
==============
No items tagged [ready] found in TODOS.md.
To mark items as ready:
1. Run /list-todos
2. Go through Q&A to clarify requirements
3. Confirm readiness when asked
Or manually add [ready] tag to items you want to implement.
Show the list of [ready] items and let user select:
READY ITEMS
===========
Found {N} items tagged [ready]:
1. {item title 1}
2. {item title 2}
3. {item title 3}
Which items would you like to implement?
Use AskUserQuestion:
Question: "Which items would you like to implement?"
Header: "Selection"
Options:
- Label: "All items"
Description: "Implement all {N} ready items in sequence (Recommended)"
- Label: "Select specific items"
Description: "Choose which items to implement"
- Label: "Cancel"
Description: "Exit without implementing"
If "Select specific items", use AskUserQuestion with multiSelect:
Question: "Select items to implement:"
Header: "Items"
Options:
- Label: "1. {item 1 title}"
Description: "{priority if present}"
- Label: "2. {item 2 title}"
Description: "{priority if present}"
... (up to 4 items per question, use multiple questions if more)
multiSelect: true
If "Cancel", exit the command.
Before creating a branch:
CURRENT_BRANCH=$(git branch --show-current)
UNPUSHED=$(git rev-list --count @{upstream}..HEAD 2>/dev/null || echo "no-upstream")
If UNPUSHED > 0, use AskUserQuestion:
Question: "You have {UNPUSHED} unpushed commit(s) on `{CURRENT_BRANCH}`. Push before creating todo branch?"
Header: "Unpushed"
Options:
- Label: "Yes, push first"
Description: "Push current commits before starting (Recommended)"
- Label: "No, continue anyway"
Description: "Create branch from unpushed state"
# Commit any dirty files first
git add -A && git diff --cached --quiet || git commit -m "wip: uncommitted changes before todo implementation"
# Create todo implementation branch
git checkout -b todo-impl-$(date +%Y-%m-%d)
Verify branch creation: Run git branch --show-current and confirm it matches
todo-impl-{date}. If the checkout failed (e.g., branch already exists), append
a suffix: todo-impl-{date}-2.
For each selected item:
IMPLEMENTING: {item title}
===========================
{Full item text from TODOS.md}
{If clarifications exist:}
Clarifications:
- {Q1}: {A1}
- {Q2}: {A2}
If the item description is vague or missing key details, use AskUserQuestion to clarify before implementing.
Implement the TODO item following project conventions:
If the item has acceptance criteria or testable requirements:
After successful implementation:
- [ ] → - [x]— DONE ({short_commit_hash})Before:
- [ ] **[P1 / Medium]** Add user auth endpoint [ready]
After:
- [x] **[P1 / Medium]** Add user auth endpoint [ready] — DONE (a1b2c3d)
Use the Edit tool to make this update.
git add -A
git commit -m "todo: {item title (shortened if needed)}"
Verify commit succeeded: Check exit code of git commit. If it fails (e.g.,
pre-commit hook rejection), fix the issue and create a new commit — do NOT use
--amend.
Get the commit hash for the TODOS.md update:
COMMIT_HASH=$(git rev-parse --short HEAD)
If implementation fails (tests don't pass, errors occur), use AskUserQuestion:
Question: "Implementation of '{item title}' failed. What would you like to do?"
Header: "Failed"
Options:
- Label: "Skip this item"
Description: "Continue with the next item (Recommended if blocked)"
- Label: "Retry"
Description: "Try implementing again with a different approach"
- Label: "Abort session"
Description: "Stop and leave remaining items for later"
After all items are processed (or aborted):
RUN-TODOS COMPLETE
==================
Branch: todo-impl-{date}
Completed: {N} items
{For each completed item:}
✓ {item title} ({commit_hash})
{If any skipped:}
Skipped: {N} items
{For each skipped item:}
✗ {item title} — {reason}
{If aborted early:}
Remaining: {N} items not attempted
TODOS.md updated with completion status.
Next: Review changes, then run:
git push origin todo-impl-{date}