Loading...
Loading...
Automate lifecycle checks for migration code (TODO(migration)). Detect expired or insufficiently documented migration code and output results in report format. It is used for checking remaining TODO(migration) entries in the codebase, cleaning up expired migration code, and taking inventory of technical debt. This is a mechanism to prevent leaving "to be deleted later" code unattended.
npx skill4agent add yusuketsunoda/ppt-trans migration-sweepTODO(migration)/migration-sweep# Search for TODO(migration) across the entire repo
grep -rn "TODO(migration)" --include="*.ts" --include="*.tsx" --include="*.py" src/ tests/ e2e/ python_backend/ 2>/dev/null || echo "No matches"| Field | Pattern | Required |
|---|---|---|
| Issue ID | | YES |
| Expiration Date | | YES |
| Deletion Condition | Free description (lines following the TODO comment) | YES |
| Status | Condition | Severity |
|---|---|---|
| EXPIRED | | P0 (Immediate action required) |
| MISSING_META | Any of Issue ID / expiration date / deletion condition is missing | P0 (Information completion required) |
| WARNING | Within 30 days before expiration date | P1 (Plan required) |
| OK | More than 30 days before expiration date | Info only |
## Migration Sweep Report (YYYY-MM-DD)
### P0: Immediate Action Required (X entries)
| File:Line | Status | Expiration Date | Issue | Content |
|------------|------|------|-------|------|
| `src/foo.ts:42` | EXPIRED | 2026-01-15 | #123 | Remove old admin check |
| `src/bar.ts:88` | MISSING_META | - | - | TODO(migration) but no metadata |
### P1: Planned Action (X entries)
| File:Line | Expiration Date | Days Remaining | Issue | Content |
|------------|------|--------|-------|------|
| `src/baz.ts:15` | 2026-03-15 | 21 days | #456 | Deprecate legacy API |
### OK (X entries)
(Can be omitted)
### Summary
- Total: X entries
- P0 (Immediate Action Required): X entries
- P1 (Planned Action): X entries
- OK: X entries// TODO(migration)[ISSUE-XXX][expires=YYYY-MM-DD]:
// <Describe deletion conditions>// TODO(migration)[ISSUE-1234][expires=2026-05-31]:
// Remove after role-based admin check is fully deployed
// and logs show 0 hits for 14 days.src/tests/e2e/python_backend/.claude/rules/dead-code-cleanup.mdCLAUDE.md