任务交互式执行
auto_task.execute_interactively
以"执行 -> 评审 -> 提交"的循环方式执行一系列任务。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-02
- Stars
- ★ 155
- Forks
- 170
01 前言 Front Matter
- model
- haiku
- description
- Execute a sequence of tasks in a loop "execute -> review -> commit"
03 SKILL.md 正文
Goal
- Execute an ordered list of well-specified, sequential tasks
<FILE>specified by the user by alternating agent execution, human review, and commit in a branch - Create the GH issue, branch, and PR for
<FILE>before starting the task loop: everyauto_taskmaps to one GH issue implemented in one branch/PR (see.claude/skills/auto_task.rules.md) - Follow
.claude/skills/auto_task.rules.mdfor how tasks are queued, specified, and named before they reach this skill
When to Use This Skill
- Follow
.claude/skills/auto_task.rules.mdsection "Ask for Clarification Before Executing an Unclear Plan" when a task's spec is unclear or incomplete
Conventions
- Follow
.claude/skills/auto_task.rules.mdfor queue, spec, naming, and coding/testing conventions
Constraints
- Do create the GH issue, branch, and (draft) PR for
<FILE>up front: this is part of this skill's job, not the user's - Do not commit any code change for a task: committing is user's decision
- Do not merge any PR: merging is the user's decision
Workflow
Confirm the Task List
- Read
<FILE>and follow.claude/skills/auto_task.rules.mdsection "Confirm the Task List Before Executing" for the task list format and the problem/solution check - Make sure each task is clear and create a plan in 5 markdown bullets in
<FILE>under each task - If the order or a dependency is unclear, follow
.claude/skills/auto_task.rules.mdsection "Ask for Clarification Before Executing an Unclear Plan" before starting
Create the Issue and the Branch
-
Follow
.claude/skills/auto_task.rules.mdsection "One GitHub Issue Is the Unit of Work": one GH issue covers the whole task list in<FILE> -
Create the issue and the branch named after it (
<RepoPrefix>Task<IssueNum>_<Description>) in one shot withgit_create_issue_and_branch.py: it is more general than the rawinvoke gh_issue_create/invoke git_branch_createtasks since it also branches submodules (e.g.,helpers_root) symmetrically> git_create_issue_and_branch.py \ --gh_issue_title "<TITLE>" --gh_issue_body "<Description of the task list>" \ --no_create_pr- Pass
--gh_issue_id <NUM>instead of--gh_issue_titleto reuse an existing issue rather than creating a new one --no_create_pr: a PR needs at least one commit ahead ofmaster, so do not open it yet here; open it after the first task's changes are committed (see "Wait for User to Confirm" below)
- Pass
-
git add(do not commit)<FILE>on the new branch so its plan is tracked from the start, per@.claude/task_instructions.md
Loop Over the Tasks
Execute Each Task
- Execute each task following the instructions in
@.claude/task_instructions.md - Keep
<FILE>updated per.claude/skills/auto_task.rules.mdsection "Track Task Status"
Verify Each Task
- If the N-th task requires writing code, test the code both locally and in the CI
following the procedures here
.claude/skills/github.get_pr_to_pass_ci_tests/SKILL.md.claude/skills/github.get_pr_to_pass_local_tests/SKILL.md
Wait for User to Confirm
-
After each task is complete, wait for the user to confirm, validate, review the changes and then commit
-
Push the commit; if the branch has no PR yet (first task), open the draft PR now that there is a commit to diff against
master-
If the task spans more than one repo (see
.claude/skills/auto_task.rules.md"Multi-Repo Issues, Branches, and PRs"), open the draft PR in every affected repo, then refresh the issue's companion PR links:> git_create_issue_and_branch.py --gh_issue_id <NUM> --submodules \ --update_pr_links
-
-
Once the user confirms that the N-th task is complete, move to the N+1 following the same procedure as per
Loop over the Tasks
Verification
- [ ] One GH issue and one branch/PR were created for
<FILE>before the task loop started, named per.claude/skills/auto_task.rules.md - [ ] Every task's status in
<FILE>reflects its actual progress ([ ],[.], or[x]) - [ ] The tests touched by each task pass locally and in CI before that task is marked done
- [ ] No task started before its spec was clarified with the user
- [ ] No commit was made without the user's confirmation
04 同仓库更多 Skills
Docker 文件同步与模板对齐
tutorial_in_60_mins.propagate_docker_changes
同步教程和课程项目的 Docker 文件,使其与 project_template 保持一致。
Markdown 合并至 Jupyter Notebook
tutorial_in_60_mins.merge_markdown
将 Markdown 文件的内容合并到 Jupyter Notebook 中。
60 分钟教程格式规范化
tutorial_in_60_mins.format
格式化目录,使其遵循「Learn X in 60 Minutes」(60 分钟学会 X)教程约定。
60 分钟教程目录创建
tutorial_in_60_mins.create
按照「Learn X in 60 Minutes」(60 分钟学会 X)约定创建教程目录。
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