Goal
- Given a list of TODOs in a file from the user, create a plan to fix them
Workflow
Understand Each TODO
- Each TODO is in the form
```text
<FILE>:<LINE_NUM>:<TODO description>
```
- E.g.,
```
./helpers/hmarkdown_coloring.py:235:def colorize_bullet_points_in_slide(...
```
- Read each TODO and understand the problem
- If it's a bug:
- Find the root cause
- Run experiments to verify the issue and its root cause
- Devise a plan to fix the problem and a plan to verify the fix
Write the Fix Plan
- Create a plan
tasks.mdusing the template
.claude/templates/auto_task.template.md
- Fill in the template's
* Repo:checklist per
.claude/skills/auto_task.rules.md section "Multi-Repo Issues, Branches,
and PRs" (how to tell which repo a <FILE> belongs to, and how to handle
TODOs spanning more than one repo)
- Say in the plan file how it was generated, with this comment at the top:
```markdown
<!-- Generated by .claude/skills/auto_task.create_specs_from_todos/SKILL.md -->
```
- Write the comments as bullet points per
.claude/skills/markdown.rules.mdand
.claude/skills/text.rules.md, with minimal text
- Do not change the code, only propose the fixes
Follow the Conventions
- Follow
.claude/skills/auto_task.rules.mdsection "Follow the Coding and
Testing Rules"
- Refer to
.claude/skills/coding.*/SKILL.mdand
.claude/skills/testing.*/SKILL.md for the repo's best practices
- For bugs, add unit tests that fail before the fix and pass after it
(red/green approach)
- For renaming, check the entire code base so everything is updated
- Follow
.claude/skills/coding.rename/SKILL.md - For a change of function signature, update all the calling instances
Rank the Issues
- Order the issues by increasing complexity, starting with the fixes of high
confidence
Verification
- [ ]
tasks.mdcontains one issue block per input TODO - [ ] Every issue block has type, reason, proposed fix, confidence, complexity, and
verification plan filled in
- [ ] Issues are ordered by increasing complexity, starting from the highest
confidence fixes
- [ ] No code was changed, only the plan file was written
- [ ] The plan file says that it was generated by
.claude/skills/auto_task.create_specs_from_todos/SKILL.md