Clean up merged branches, close issues, and extract compound learning insights
Clean up merged branches and close issues after PRs, then automatically extract compound engineering insights to prevent future issues and improve workflows.
/plugin marketplace add psd401/psd-claude-coding-system/plugin install psd-claude-coding-system@psd-claude-coding-systemclaude-sonnet-4-5You've just merged a PR to dev. Now complete the post-merge cleanup workflow.
First, determine what branch you're on and find the associated merged PR and issue:
# Get current branch name
git branch --show-current
# Find merged PR for this branch
gh pr list --state merged --head $(git branch --show-current) --limit 1
# Get full PR details to find issue number
gh pr view <PR_NUMBER> --json number,title,body
Perform standard cleanup operations:
# Switch to dev and pull latest
git checkout dev
git pull origin dev
# Delete local feature branch
git branch -d <BRANCH_NAME>
# Delete remote feature branch
git push origin --delete <BRANCH_NAME>
Close the GitHub issue with a summary of what was completed:
# View issue to understand what was done
gh issue view <ISSUE_NUMBER>
# Close issue with comment summarizing the work
gh issue close <ISSUE_NUMBER> --comment "Completed in PR #<PR_NUMBER>.
<Brief 1-2 sentence summary of what was implemented/fixed>
Changes merged to dev."
After you complete the cleanup, the telemetry system will:
meta/telemetry.json in the compound_learnings[] arrayThis analysis looks for: