import-todos
Import TODOs
Discover TODO/FIXME comments in the codebase and convert selected ones into task files.
Instructions
The user may optionally provide flags in $ARGUMENTS (e.g. --marker TODO, --dir ./src, --include "*.go").
-
Discover TODOs: Run
taskmd todos list --format json $ARGUMENTSvia Bash to find all TODO/FIXME/HACK/XXX/NOTE/BUG/OPTIMIZE comments in the codebase- If the command fails, check that
taskmdis installed and thetodossubcommand is available (requires taskmd v0.12+)
- If the command fails, check that
-
Handle empty results: If no TODOs are found (empty JSON array
[]or no output), inform the user:"No TODO/FIXME comments found in the codebase. Try widening your search with
--diror removing--markerfilters."- Stop here — do not proceed further
-
Check for duplicates: Run
taskmd list --format jsonto get existing task titles. For each TODO, check if its text closely matches an existing task title (case-insensitive substring match). Flag any potential duplicates. -
Present the list: Display the TODOs as a numbered list in this format: