From git-workflows
End-of-session cleanup after PR merge: refresh repo, run quick retrospective, clean gone branches, and generate a follow-up session prompt. Combines /refresh-repo, /retrospecting quick, and /clean_gone into a single post-merge workflow, then triages remaining work into a next-session prompt and GitHub issues.
npx claudepluginhub jacobpevans/claude-code-plugins --plugin git-workflowsThis skill uses the workspace's default tool permissions.
Run Steps 1 and 2 **in parallel** (they are independent). Step 3 starts as soon as
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Run Steps 1 and 2 in parallel (they are independent). Step 3 starts as soon as Step 1 completes (depends on its remote prune). Step 4 runs after all prior steps finish. Provide a summary of actions taken.
Invoke /refresh-repo to:
[gone] remote branches)Invoke /retrospecting quick to capture a brief session retrospective:
Requires: claude-retrospective plugin (external). If not installed, skip this step and note it was skipped.
Invoke /clean_gone to remove any local branches whose remote tracking branch has been deleted:
[gone]Requires: commit-commands plugin (external). If not installed, skip this step and note it was skipped.
After the retrospective completes (or is skipped), generate a follow-up prompt for the next session.
Scan the conversation history in reverse chronological order, stopping when no new items appear for ~10 consecutive messages.
Most unfinished work surfaces near the end of a session.
Scan simultaneously for both categories:
Unfinished work (4a):
Session issues (4b):
Split the gathered items into two buckets:
gh issue list --state open for duplicatesPresent the results in this format:
Follow-Up Session Prompt
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Recommended prompt for next session:
──────────────────────────────
<A ready-to-paste prompt covering the 1–3 quick-win tasks identified above. Be specific: reference file paths, function names, error messages, etc.>
──────────────────────────────
Recommended GitHub Issues:
──────────────────────────────
1. <Title> — <one-line summary> [new | update #123]
2. <Title> — <one-line summary> [new | update #456]
...
──────────────────────────────
Session Issues Log:
──────────────────────────────
- <error/warning/issue encountered, with context>
- ...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
If no follow-up items are found, state that explicitly — do not fabricate work.
Report what was completed:
Wrap-Up Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Refresh: done or skipped
Retrospective: done or skipped
Branch cleanup: done or skipped
Follow-up prompt: done or skipped
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━