agentsclimarketplace

Load branch changes

Skill ivklgn/ai-kit/skills/load-branch-changes

Load current git branch changes (diff, commits, changed files) into session context. Use when the user invokes /load-branch-changes to review, understand, or focus on the current branch's changes compared to the base branch.From its SKILL.md

Install
npx -y skills add ivklgn/ai-kit --skill load-branch-changes

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.6 KB, as published. Nobody here has run it

Load Branch Changes

Load the current branch's changes into context and set them as the working focus for the session.

Step 1: Detect Base Branch

BASE=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
if [ -z "$BASE" ]; then
  BASE=$(git rev-parse --verify main 2>/dev/null && echo main || echo master)
fi
echo "$BASE"

Step 2: Collect Branch Information

Run all three commands using the detected $BASE:

Changed files:

git diff --name-only $BASE...HEAD

Commit history:

git log $BASE..HEAD --pretty=format:"%h %s"

Full diff with stats:

git diff $BASE...HEAD --patch-with-stat

Step 3: Present Results

Display output in three labeled sections:

  1. Changed Files — file list
  2. Commits — commit log
  3. Diff — full patch with stats

If no changes found, report that the branch has no changes relative to the base branch and stop.

Step 4: Set Session Context

After presenting the results, treat these branch changes as the primary working context for the rest of the session. When the user references "the changes", "the diff", "these files", or similar — they mean the branch changes loaded here. Prioritize changed files and diff when answering questions, suggesting reviews, or proposing edits.

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.