Command Palette

Search for a command to run...

Back to skills
skill № 88308

Scan Todos

Sweep source comments (not tracker items) for TODO/FIXME/HACK/XXX markers and resolve or file each one. Use to find TODO/tech-debt comments, clean up markers…

FreeNo executable scripts
melodic-softwareby melodic-software★ 34 GitHub stars

Install Scan Todos in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Scan TODOs

Variables

Arguments: $ARGUMENTS, parsed as the flags below.

Shared tracker context

The seam, operation routing, label taxonomy, canonical-role remapping, recurring schedule, and memory-tier write rule that every work-items skill relies on live in ${CLAUDE_PLUGIN_ROOT}/reference/tracker-seam.md (and the references it links). Read it at the start of an invocation. Item creation goes through the seam via the /work-items:track add path; the core inlines no provider commands.

Purpose

Resolve or file each actionable comment marker. To catch new markers as they land, prefer a commit-time hygiene gate (linter or git hook) in the consuming repo.

Flags

  • --path <dir>: limit the scan to one directory (default: repo root).
  • --work: after presenting groups, auto-select the smallest group and start resolving.
  • --repo, --repos-from, --owner, --fleet, --skip, or the same request in words: scan several repositories. With none of them, the scan covers the current repository as below.

Several repositories

The target forms resolve, count, fan out and merge as ${CLAUDE_PLUGIN_ROOT}/reference/target-scope.md "Target forms", "Resolving repositories", "Fan-out" and "Merging findings" say. Each repository's subagent runs Scan and Group only, with <project root> set to its own root and --path applied inside it, and returns its groups. Outside the session's own checkout, Detection greps origin/HEAD (git -C <root> grep -nE '<pattern>' origin/HEAD -- ...) and drops the origin/HEAD: prefix from each hit. The parent keys groups by repository and parent folder, presents one table of them all by count, and takes the selection; --work picks the smallest group across every repository. The selected group's markers are resolved under "Writes stay per repository", in a worktree of that group's repository, and each significant marker is filed with /work-items:track add --repo <owner/name> so it lands in that repository's tracker.

Detection

If the consuming repo has its own comment-hygiene tooling (a shared pattern library, a lint lane), detect with it. Otherwise scan tracked files directly:

# -C roots the scan at the repo top — a bare git grep from a subdirectory searches only that subtree.
# With --path <dir>, thread it in as a root-relative pathspec: ... -- '<dir>'
# Thread the consuming repo's documented exclusion paths in the same way, as ':!<path>' pathspecs after --.
git -C "<project root>" grep -nE '\b(TODO|FIXME|HACK|XXX)\b' | tr -d '\r'

<project root> is the literal path tracker-seam.md "Project root" resolves, in its own Bash call before this snippet.

  • Actionable (in scope): bare TODO/FIXME/HACK/XXX markers describing work to do; internal tracker provenance comments (e.g. item #N breadcrumbs left in code)
  • Not actionable (skip): external upstream citations (org/repo#issue), structured task-list grammar in working-notes files (e.g. [TODO] phase tags), test fixtures that assert on the literal marker text, and the consuming repo's documented exclusion paths

Next

/work-items:triage for the raw items it filed.

Workflow

  1. Scan using the detection command above (or the repo's own tooling). Avoid per-file grep loops over large trees, one git grep pass scales; per-file spawning is unusable on Windows.

  2. Group by parent folder. Count items per group.

  3. Present summary table sorted by count (smallest first).

  4. User selects a group (by #) or use --work to auto-select the smallest.

  5. For each marker, read 10 lines of context before and after, then classify:

  • Resolve now: small fix; do the work, remove the marker
  • File a work item + remove marker: significant work; create it by invoking /work-items:track add via the Skill tool following the shared self-observation contract (${CLAUDE_PLUGIN_ROOT}/reference/dogfood-filing.md: dedupe → categorize → fixed shape → needs-triage; per-user ai_disclaimer: ${user_config.ai_disclaimer}), remove the inline marker (do not leave TODO as a stand-in for the item). In a run the user invoked, their group choice or --work is the filing authorization (../track/actions/add.md "Authorization gate")
  • Remove (already done): work completed; delete the comment
  • False positive: structured grammar or external upstream citation misclassified; fix the exclusion if systemic, otherwise note it in the PR

Never "Keep (intentional)" for actionable TODO/FIXME/HACK/XXX in merged production code.

  1. After processing a group, present a results table: file, line, action, detail.

  2. Verify: run the consuming repo's build/test/lint commands if any source file changed.

Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the Scan Todos skill do?

Sweep source comments (not tracker items) for TODO/FIXME/HACK/XXX markers and resolve or file each one. Use to find TODO/tech-debt comments, clean up markers, or resolve TODO/FIXME/HACK ('scan TODOs', 'scan for FIXME', 'sweep the codebase for markers'). Not for new durable work (use tracker) or tracker items: /work-items:track.

How do I install the Scan Todos skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the Scan Todos skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare Scan Todos with