Agent Skills: Catch Up on Branch Changes

Review branch changes since fork point from main/master. Use when resuming work on a branch or onboarding to existing changes. Triggers on "catch up", "catchup", "what changed on this branch", "summarize branch changes", "review branch".

UncategorizedID: buvis/home/catchup

Install this agent skill to your local

pnpm dlx add-skill https://github.com/buvis/home/tree/HEAD/.claude/skills/catchup

Skill Files

Browse the full folder contents for catchup.

Download Skill

Loading file tree…

.claude/skills/catchup/SKILL.md

Skill Metadata

Name
catchup
Description
Review branch changes since fork point from main/master. Use when resuming work on a branch or onboarding to existing changes. Triggers on "catch up", "catchup", "what changed on this branch", "summarize branch changes", "review branch".

Catch Up on Branch Changes

Review changes made on current branch since it forked from base.

Workflow

1. Run branch diff script

~/.claude/skills/catchup/scripts/branch-diff.sh

This outputs:

  • Branch name and base branch
  • Changed files list
  • Diff stats (insertions/deletions)
  • Commit history

2. Analyze changes

Prioritize reading (in order):

  1. Config files (package.json, tsconfig, etc.)
  2. Schema/model changes
  3. Core logic files (most insertions)
  4. Test files

3. Summarize

Provide high-level summary:

  • Purpose: What this branch accomplishes
  • Scope: Key files/areas modified
  • Impact: What parts of system affected
  • Patterns: Any architectural changes
  • Review focus: Suggested areas to examine closely

4. Restore tasks

Invoke /restore-tasks to recover any tasks from previous sessions on this branch.

Manual Commands

If script unavailable:

# Get current branch
git branch --show-current

# Detect base (main or master)
git rev-parse --verify origin/main >/dev/null 2>&1 && echo "main" || echo "master"

# Fetch latest
git fetch origin main

# Find fork point
git merge-base origin/main HEAD

# Changed files
git diff $(git merge-base origin/main HEAD)..HEAD --name-only

# Diff stats
git diff $(git merge-base origin/main HEAD)..HEAD --stat

# Commit log
git log $(git merge-base origin/main HEAD)..HEAD --oneline

Error Handling

| Situation | Action | |-----------|--------| | On main/master | Report "Already on base branch, nothing to compare" | | No remote | Use local main/master as base | | Detached HEAD | Report current commit, ask user for base branch |