AI Tools

Productivity skills for Claude Code and Cursor — Git workflows, code review, and session wrap-up. Each entry opens its skill in the ai-tools repository.

Try two workflows

Short, keyboard-friendly playgrounds for cleanup and relocating uncommitted work. Readable at a glance — interaction is optional.

Cleanup Local Branches

/cleanup-local-branches

Audit merged or abandoned branches, keep the active ones, and delete the rest — without touching remote history.

Sample local branches. 3 marked for deletion — adjust, then run cleanup.

Move Diff

/move-diff

Relocate an uncommitted working tree onto a different branch when the work landed on the wrong one.

Move onto

Uncommitted on feature/login

  • app/login/page.tsx (modified)
  • components/LoginForm.tsx (added)
  • lib/auth.ts (modified)

3 uncommitted changes on feature/login. Choose a branch and move them.

Walk through complex skills

Concise, optimized walkthroughs for peer review and rebase-after-squash — playable frames with a full transcript, pause by default when you prefer reduced motion.

Peer Review

/loop /peer-review

Cross-provider review → triage → fix → commit, then push when clean. Pair with /loop to converge.

Diagram of a peer-review loop: pick reviewer, review, triage findings, fix, then push when clean.

Pick the other provider as reviewer

$ /loop /peer-review
→ last commit by Codex → Claude reviews
→ last commit by Claude → Codex reviews

Full transcript
  1. 1. Pick the other provider as reviewer

    $ /loop /peer-review
    → last commit by Codex → Claude reviews
    → last commit by Claude → Codex reviews
  2. 2. Review the branch diff independently

    Round 1 · high effort
    Scope: origin/main...HEAD
    Findings: P1×1  P2×2  P3×0
  3. 3. Triage and apply mechanical fixes

    Apply P1/P2 that are local and clear
    Commit: fix: address peer-review round 1
    Leave judgment calls for the human
  4. 4. Converge, then push and notify the PR

    Round 2 · VERDICT: clean
    git push && gh pr comment
    “Reviewed clean in 2 rounds”
Open skill on GitHub

Rebase After Squash

/rebase-after-squash

When a parent branch was squash-merged, replay only your new commits with rebase --onto — not a plain rebase onto main.

Git graph showing a squash-merged parent and rebase --onto replaying only the unique commits.

Parent was squash-merged into main

main:   A─B─C──────S
parent:      P1─P2─P3  (inside S)
yours:              X1─X2 ← HEAD

Full transcript
  1. 1. Parent was squash-merged into main

    main:   A─B─C──────S
    parent:      P1─P2─P3  (inside S)
    yours:              X1─X2 ← HEAD
  2. 2. Plain rebase replays the squashed commits

    $ git rebase main
    Replaying P1… conflict (already in S)
    Replaying P2… conflict (already in S)
  3. 3. The skill helper finds a reliable OLD_BASE

    # skills/rebase-after-squash/scripts/find-rebase-base.sh
    → prints ONTO=… OLD_BASE=<P3> NEW_COMMITS=2
    Patch-id match, or gh PR tip if ambiguous
  4. 4. rebase --onto replays only what is new

    # using ONTO + OLD_BASE from the helper
    git rebase --onto <ONTO> <OLD_BASE> HEAD
    main: A─B─C─S─X1′─X2′  ·  no self-conflicts
Open skill on GitHub