agentleFS
ngscheurichngscheurich/skills/recap/SKILL.md

recap

Skill1 starsChanged 3 months agoMITView on GitHub

Generate a commit-by-commit recap of unpushed work or a chosen commit range, then wait for annotation. Use when the user asks to walk through, narrate, explain, or review their unpushed work, recent commits, or a chosen range of commits. Not for explaining how the system works from the source — that is the `tour` skill.

44 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use glossary, orchestrate and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Microsoft AzureSkill

    glossary

    Short glossary of domain terms used by the team.

    Also in 3 projects that use this

  • varun29ankuSSkill

    orchestrate

    This skill should be used when the user asks to 'orchestrate a task', 'break down work into parallel agents', 'coordinate subtasks', 'run agents in parallel', or mentions 'multi-agent'. Decomposes complex tasks into tracked subtasks, dispatches parallel subagents, and coordinates until completion.

    Also in 4 projects that use this

  • sunnyclinches44Skill

    explain

    Explains code using real-world analogies and ASCII diagrams

    Also in 3 projects that use this

  • Microsoft AzureSkill

    build

    Build the TypeSpec Rust emitter from source. Run this after cloning the repo, after pulling changes, or when TypeScript source files have been modified.

    Also in 3 projects that use this

  • nicolasestremSkill

    brainstorm

    Structured idea generation and solution exploration with systematic analysis.

    Also in 3 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 38 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Don't assume a fixed reader profile.

    line 13
  2. Very specific:

    If the branch has an upstream (git rev-parse --abbrev-ref @{u} succeeds), it is @{u}..HEAD — commits not yet on the remote-tracking branch.

    line 28
  3. Distinctive:

    Do not run git fetch unless asked.

    line 53
  4. Distinctive:

    When a selector yields non-contiguous commits, still narrate them oldest-first and say in the preamble that they're a filtered set, not a …

    line 54

“Common” is measured: kept by at least 6 in 10 of the 38 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Recap a set of commits

Generate a commit-by-commit Markdown recap of a range of local commits — by default everything un-pushed, or a range the invoker chooses (see step 1) in .scratch/recaps/ — covering overall structure, notable code, and decisions with justification, then wait for annotation.

Audience

Don't assume a fixed reader profile. Decide the depth of explanation from these rules, in order:

  1. The audience: arg, if the invoker passed one (e.g. audience: backend engineer new to both). An explicit arg wins outright.
  2. Otherwise, your memory of the user's skillset — the languages they're fluent in, and the specific idioms you've already explained to them in past recaps and tours. Explain a construct the first time it appears for this user; once memory records it as known, reference it plainly and don't explain it again. This is what stops the same idioms (closures, generics, error-handling idioms, …) being explained run after run as the user's fluency grows — step 5 of the Steps list keeps the record current.
  3. If you have neither an arg nor a relevant memory, treat every language as unfamiliar: explain any genuinely non-obvious construct whatever its language, and state in the preamble that the audience was unspecified.

Steps

  1. Determine which commits to cover. The result is a list of shas — a contiguous range or, for a selector, a possibly non-contiguous set.
    • If the invoker named the commits (e.g. a select: arg), use that. Forms:
      • A git range expression, used verbatim: HEAD~3..HEAD, main..HEAD, abc123..def456.
      • A bare integer N — the last N commits (HEAD~N..HEAD).
      • A single revision — that commit alone (<rev>^..<rev>).
      • A natural-language selector — translate it to git log filters, scoped to the unpushed range by default (widen if the phrasing reaches further back, ask if the scope is unclear). E.g. select: commits with a Co-Authored-By trailer → git log --grep='Co-Authored-By:' --format=%H @{u}..HEAD. Other filters: --author, --since/--until, a trailing -- <pathspec>.
    • Otherwise, default to the unpushed range.
      • If the branch has an upstream (git rev-parse --abbrev-ref @{u} succeeds), it is @{u}..HEAD — commits not yet on the remote-tracking branch.
      • Otherwise fall back to the trunk: try origin/main..HEAD, then main..HEAD.
    • List the resolved commits to confirm — git log --oneline <range>, or the filter command for a selector. If empty, stop and say so: for the default, that nothing is unpushed; for a named set, that it matched nothing (bounds reversed, already merged, or no commit matches).
  2. Read each commit, oldest first. For every SHA run git show --stat <sha> for the message and file list, then git show <sha> for the diff. When a hunk needs context, open the file with the read tools rather than guessing.
  3. Write the recap to a file: name=$(git branch --show-current | tr / -); out=".scratch/recaps/${name:-$(git rev-parse --short HEAD)}-recap.md" (the fallback covers a detached HEAD, where the branch name is empty). Resolve naming conflicts by appending a -<number> to the filename. Follow the structure below and cover the commits in order so the narrative builds.
  4. Wait for review then respond to the annotations the user sends back.
  5. Record what you explained (only when the audience came from audience rule 2 or 3 — not from an audience: arg, which frames a one-off reader and says nothing about the user). Append every idiom you explained for the first time this run to the user's skillset memory, so the next recap or tour references it plainly instead of explaining it again. If an annotation shows the user already knew something you explained, record that too. This is how the record gets built from real evidence rather than a guess.

recap structure

  • Top-level heading (#) — a single descriptive H1 that names the work, not a generic "recap." Prefer the theme of the branch, e.g. # Auth server scaffold over the branch slug. Follow it with a one-line preamble: branch, the commits covered (range or selector), and the audience it's written for.
  • Summary — before any commit sections, a short prose overview (a paragraph or a few bullets) of what the work in the range accomplishes as a whole and how the commits relate. The reader should grasp the shape of the change here without scrolling further.
  • One ## section per commit, in order. The header must name the commit unambiguously: ## 1. <subject> (`<short-sha>`).
    • What it does — the change in one to three sentences.
    • Structure — files touched and how they fit together; reference code as path:line.
    • Notable code — quote the genuinely interesting hunks and explain the constructs the reader wouldn't already know. Skip boilerplate, generated, and formatting-only diffs.
    • Decisions — bullet each non-obvious choice with its justification ("chose X over Y because …"). Mine the commit body for rationale before inventing your own.
  • Closing — themes, follow-ups, or risks that span more than one commit.

Notes

  • Do not run git fetch unless asked; the range reflects the last fetch.
  • When a selector yields non-contiguous commits, still narrate them oldest-first and say in the preamble that they're a filtered set, not a continuous range.
  • Highlight, don't dump — a recap is curated narration, not a re-printed diff.
  • .scratch/ is a working directory for artifacts that aren't part of the project's own documentation. Create it if absent, and add it to the project's ignore file if it isn't already covered.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.