What problem does it solve? Closing a development Case involves many error-prone steps: merging the PR safely, verifying completion criteria, promoting Design documents, cleaning up worktrees and branches, and capturing learnings. This Skill automates that entire close-out workflow so nothing is skipped or done out of order. ## Core Features & Use Cases - PR Merge & Conflict Handling: Performs squash merge to main with mergeable UNKNOWN polling, ahead-commit detection, and Level 1 rebase conflict resolution. - QG-4 Final Acceptance Gate: Evaluates and updates Issue completion checkboxes, runs docs verification, distribution-boundary gates, and independent traceability re-checks before merge. - Epic Wave Close: Batch-merges and closes all child Issues of the current Epic Wave, updates the Epic status table as single writer, and determines final Wave completion. - Capture & Cleanup: Separates intake/learning captures from the PR body, deletes worktrees and branches, persists .agentdev/ state, and supports idempotent resume from durable state. - Use Case: After a PR passes review, invoke the case-close command to merge the PR, verify all completion conditions, promote draft Designs to accepted, close the Issue, and record learnings in one controlled flow. ## Quick Start Run the /agentdev/case-close command with the Issue number to merge its PR and complete the Case.