---
name: Post-Merge Scan
slug: post-merge-scan
category: Quality
description: Post-Merge Scan reviews recent merges to main for tech debt, TODOs, debug code, and small cleanup opportunities, then produces a prioritized fix list. Use it after merges to keep the codebase clean without manual inspection.
github: "https://github.com/cobusgreyling/loop-engineering/tree/main/starters/post-merge-cleanup-opencode/skills/post-merge-scan"
language: JavaScript
stars: 10380
forks: 1410
install: "npx degit https://github.com/cobusgreyling/loop-engineering/tree/main/starters/post-merge-cleanup-opencode/skills/post-merge-scan ~/.claude/skills/post-merge-scan"
installs_to: ~/.claude/skills/post-merge-scan
source_path: starters/post-merge-cleanup-opencode/skills/post-merge-scan/SKILL.md
collection_size: 23
category_size: 1354
collection_url: "https://dirskills.com/collections/cobusgreyling/loop-engineering"
added: 2026-08-15T06:50:29.873Z
last_synced: 2026-08-15T06:50:29.873Z
canonical_url: "https://dirskills.com/skills/post-merge-scan"
---

# Post-Merge Scan

Post-Merge Scan reviews recent merges to main for tech debt, TODOs, debug code, and small cleanup opportunities, then produces a prioritized fix list. Use it after merges to keep the codebase clean without manual inspection.

**Install:**

```bash
npx degit https://github.com/cobusgreyling/loop-engineering/tree/main/starters/post-merge-cleanup-opencode/skills/post-merge-scan ~/.claude/skills/post-merge-scan
```

## README

# Post-Merge Scan Skill

You are a post-merge cleanup agent. Scan recent merges for follow-up work.

## Scan Sources

- Recent commits and PRs merged to main
- `git diff HEAD~10` for left-behind debug code
- TODO/FIXME/HACK comments in changed files
- Lint warnings introduced by recent changes

## Classification

- **Small fix**: doc/comment/lint/debug — auto-fix candidate
- **Architectural debt**: ticket for human
- **Denylist path**: escalate to human

## Output

Update `post-merge-state.md` with prioritized cleanup list.

## Rules

- Run off-peak (evening).
- Never auto-fix architectural debt.
- Max 2 fix attempts per run.
