skills/codebase-litter-audit/SKILL.md
Find unfinished code litter
npx skillsauth add laststance/skills codebase-litter-auditInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When running this skill in Codex, translate Claude Code-only primitives before acting: AskUserQuestion -> chat/request_user_input, TodoWrite -> update_plan, Task/TaskCreate/TeamCreate/SendMessage -> spawn_agent/send_input/wait_agent when available and allowed, and EnterPlanMode/ExitPlanMode -> a concise chat plan plus explicit approval.
Resolve Read/Write/Edit/Bash/WebSearch/WebFetch to Codex file/shell/web tools, and map ~/.claude/... paths to ~/.agents/... or ~/.codex/... unless the task explicitly targets Claude Code.
When running this skill in Cursor Agent, translate Claude Code-only primitives before acting: AskUserQuestion -> AskQuestion; TodoWrite -> Cursor TodoWrite or an equivalent checklist; Task/TaskCreate/TeamCreate/SendMessage/multi-agent flows -> Cursor Task (subagents), parallel Tasks, or run_in_background when allowed (TeamCreate/SendMessage may have no exact match); EnterPlanMode/ExitPlanMode -> Plan mode (SwitchMode / CreatePlan) plus explicit approval.
Resolve Read/Write/Edit/StrReplace/Bash/web/search/MCP via Cursor Composer or Agent equivalents. MCP names written as mcp__server__tool typically map to call_mcp_tool with configured server identifiers. Map ~/.claude/... to ~/.cursor/skills/, .cursor/skills/, and .cursor/rules/ unless the task explicitly targets Claude Code.
Find incomplete or misleading work that is still reachable, visible, or confusing even when dead-code scanners report nothing. Treat the scanner as a lead generator, then verify each finding by reading neighboring code, tests, docs, and issue tracker context.
Establish scope.
git status --short and note whether the worktree is dirty.gh issue list when GitHub is configured).Collect candidate signals.
python3 ~/.codex/skills/codebase-litter-audit/scripts/scan_litter.py . --markdown
--include src --include e2e.rg for domain words the scanner cannot infer, such as feature names, issue IDs, or product terminology.Verify candidates manually.
Report with evidence.
High, Medium, or Low.Use references/signal-catalog.md when deciding whether a candidate is worth reporting.
Strong signals:
TODO, FIXME, not implemented, stub, temporary, or WIP attached to reachable product code.eslint-disable, ts-ignore, @ts-expect-error, or broad ignores with no issue link or expiry.Weak signals:
.git hook samples.## Codebase Litter Audit
### Findings
- **Medium: <short title>**
Evidence: [file.ts](/abs/path/file.ts:12)
Why it matters: <reachable/visible/confusing behavior>
Smallest cleanup: <implement/remove/document/issue>
### Probably Benign
- <candidate that looked suspicious but was superseded or test-only>
### Suggested Issues
- <one issue per actionable cleanup, with labels if the tracker supports them>
scripts/scan_litter.py: candidate scanner that emits Markdown or JSON.references/signal-catalog.md: classification guide for deciding what is real litter versus normal code.testing
Cited research briefs
development
Daily coding habit prompts JP
development
React core deep-dive JP
data-ai
Copy last agent reply