---
description: 'Cleans branches safely: switches to the default branch, prunes merged and squash-merged branches, syncs to remote, sweeps stale specs, rotates `.ai-engineering/runtime/` per retention policy. Trigger for ''tidy up'', ''tidy branches'', ''sync to main'', ''delete old branches'', ''start fresh'', ''rotate runtime''. Auto-invoked by /ai-pr after merge. Not for committing changes; use /ai-commit instead. Not for code-level dead-code removal; use /ai-simplify instead.'
mirror_family: opencode-commands
generated_by: ai-eng sync
canonical_source: .claude/skills/ai-branch-cleanup/SKILL.md
edit_policy: generated-do-not-edit
---

Use the `ai-branch-cleanup` skill to handle this request. OpenCode will lazy-load the canonical skill body via the `skill` tool; arguments below are forwarded verbatim.

$ARGUMENTS
