---
name: pulsum
description: Pull the latest changes for the current git repository and summarize everything that changed since the last pull, including what changed, who changed it, and why they likely did it. Use when the user says "pulsum", "pull and summarize", "catch me up", "what changed since I last pulled", or "what did everyone do".
title: pulsum
canonical_url: https://skilld.dev/gh/r44vc0rp/skills/pulsum
last_updated: 2026-10-06T21:46:07.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install r44vc0rp/skills/pulsum`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/pulsum`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/r44vc0rp/skills/pulsum) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/pulsum`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/pulsum --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/pulsum --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Pulsum: Pull and Summarize

Pull the current branch's latest upstream changes. Then explain the incoming
changes as a short briefing: what changed, who did it, and why they most likely
did it.

## 1. Check the repository before pulling

Run these commands from the repository the user is working in:

```sh
git rev-parse --show-toplevel
git status --short --branch
git rev-parse --abbrev-ref --symbolic-full-name @{u}
```

- If the directory is not a git repository, stop and say so.
- If the branch has no upstream or HEAD is detached, ask which branch to pull.
  Do not guess.
- If there are uncommitted changes, do not stash, reset, or discard them. A
  fast-forward pull still works when the incoming files do not overlap the
  local edits. If they do overlap, report the conflicting files and ask how to
  proceed.

## 2. Record the starting point, then pull

```sh
BEFORE=$(git rev-parse HEAD)
git fetch --prune
git pull --ff-only
AFTER=$(git rev-parse HEAD)
```

- Use `--ff-only`. If the branch has diverged, stop and report how many
  commits are only local and how many are only upstream
  (`git rev-list --left-right --count HEAD...@{u}`). Ask whether to merge or
  rebase. Never pick one silently.
- If `BEFORE` equals `AFTER`, the pull brought nothing new. Use the previous
  pull as the starting point instead: find the most recent `pull` or `merge`
  entry with
  `git reflog show --date=iso --format='%h %gd %gs' HEAD | grep -E 'pull|merge' | head -5`.
  Then use the commit before it (`HEAD@{n+1}`) as `BEFORE`, and tell the user
  which pull you are summarizing and its date. If there is no earlier pull,
  say the branch is up to date and stop.
- For a shallow clone, run `git fetch --deepen=<n>` only if history is missing
  for the range.

## 3. Gather what changed

Use the range `$BEFORE..$AFTER`:

```sh
git log --no-merges --reverse --format='%h%x09%an%x09%ad%x09%s' --date=short $BEFORE..$AFTER
git shortlog -sn --no-merges $BEFORE..$AFTER
git diff --stat $BEFORE $AFTER
git diff --name-status $BEFORE $AFTER
```

Then look at the changes themselves:

- Read each commit with `git show --stat <sha>` and the relevant parts of
  `git show <sha>`. For large ranges, skim the diffs and read in full the
  files that matter most, such as core logic, public APIs, schemas, and
  configuration.
- Look up pull request context on GitHub when `gh` is available:
  `gh api repos/{owner}/{repo}/commits/<sha>/pulls --jq '.[] | {number, title, body, user: .user.login}'`.
  Fetch each pull request only once. Linked issues, PR descriptions, and review
  comments are the best evidence for why a change was made.
- Group commits that belong together, such as all commits from one PR or one
  feature, instead of describing each commit separately.
- Ignore pure noise unless it matters, such as lockfile churn, formatting-only
  commits, or generated files. Mention it in one line.

## 4. Infer why

For each group of changes, explain the most likely reason. Draw on, in order:

1. Pull request titles, descriptions, and linked issues
2. Commit messages
3. The code itself: new tests that describe a bug, added error handling,
   removed features, TODOs that were resolved, and changed defaults
4. Timing and sequence, such as a fix shortly after a feature, or a revert

Clearly separate stated reasons from guesses. Write "PR #123 says…" for stated
reasons and "Likely…" or "Probably…" for inferences. Do not invent motives that
the evidence does not support. Say "Reason unclear" instead.

## 5. Flag what affects the user

Call out anything the user must act on locally:

- New or changed dependencies, which need an install
- Database migrations or schema changes
- New or renamed environment variables, configuration, or secrets
- Breaking API changes, removed functions, or renamed files the user's local
  work may reference
- Changed build, test, or tooling commands
- Overlap with the user's uncommitted changes or local commits

## 6. Report

Use this shape. Keep it scannable and lead with the summary.

```md
**Pulled <n> commits from <m> people into `<branch>`** (<short BEFORE>..<short AFTER>, <date range>)

<2–3 sentences on the overall picture: the main themes of this batch.>

## What changed
- **<Theme or feature>**: <what changed>. <Why, stated or inferred>. (<people>, PR #<n>)
- …

## Who did what
- **<Name>** (<n> commits): <one line on their focus>
- …

## Action needed
- <Install deps, run migrations, set new env vars, and so on; or "None">

## Worth a look
- <Risky changes, surprising removals, reverts, or anything unclear>
```

- Order themes by impact, not by commit order.
- Link PRs and commits when the remote is on GitHub.
- For more than about 30 commits, keep "What changed" to the top 5 themes and
  put the rest in a single "Also" line.
- Omit empty sections, except "Action needed", where you write "None".
