Recap

From mikeprasad/aria-knowledge · View interactive version

Recap is an AI agent skill from the GitHub repository mikeprasad/aria-knowledge. Read-only orientation: render a scannable What/Where/Status table for this session, the current arc, or recent git commit/push/pull context. Trigger on /recap, catch me up, what just happened, where am I, recap the session, or recap the last commit. Summarizes only; never writes or validates.

How to use this skill

Skill file

/recap — Read-Only Orientation

Render a compact What / Where / Status table of recent work to situate the user at a glance. Read-only: no disk writes, no logs, no verdicts. The orient-side counterpart to /handoff (which packages state for the next reader) — recap re-orients the current reader. Distinct from /retrospect, which validates with per-fix verdicts; /recap only summarizes, and may offer to escalate to /retrospect but never runs verdict work itself.

Step 0: Resolve Mode

Parse the first argument (case-insensitive):

Mode Resolution

Session mode (default)

Synthesize what happened in THIS conversation — files created/modified, decisions made, current state — from conversation context, not git (same source as /handoff Step 2). Headline frame: "this session · {N} changes".

Arc mode (`arc`)

Read the project's PROGRESS.md (nearest one from cwd). The arc boundary = the most recent dated/## arc heading; everything from that heading forward (plus this session's work) is "the arc". State the inferred boundary in the headline (e.g. "arc since PROGRESS 2026-06-21 entry") so the user sees what was treated as the arc. If no PROGRESS.md, fall back to session mode and say so.

Commit mode (`commit [<hash>]`)

git show <hash|HEAD> --stat for the subject + changed files. Headline: "commit {short-sha} · {subject} · {N} files".

Push mode (`push`)

git log @{push}..HEAD --stat (commits I sent up). If no upstream is configured, fall back to git log -10 and say so. Headline: "last push · {N} commits · {M} files".

Pull mode (`pull`)

Commits that came down to me on the last pull. Resolve the range:

  1. Try git log ORIG_HEAD..HEAD --stat (git sets ORIG_HEAD before a pull/merge).
  2. If ORIG_HEAD is unset OR the range is empty (it was overwritten by an intervening merge/rebase/reset), scan git reflog for the most recent pull/merge entry and use that entry's pre-state as the range start.
  3. Always print the resolved range (e.g. "last pull · ORIG_HEAD..HEAD · 5 commits from origin/main") so the user can verify what "last pull" meant.

push vs pull: push = what I sent up (@{push}..HEAD, my commits); pull = what came down to me (ORIG_HEAD..HEAD, others' commits I merged). Opposite directions.

Project mode (`project [<name>|all]`)

Where the modes above orient you temporally (this session, this repo's git), project mode orients you laterally — the current state of one project, or of the whole portfolio. A terminal-table analogue of the aria-atlas dashboard. The second argument selects breadth (resolved in Step 0).

Roster resolution (named + roster sub-modes). Read ~/.claude/aria-knowledge.local.md and parse the projects_list: frontmatter key — comma-separated tag:path entries; expand a leading ~ in any path. This is the same roster /aria-assist reads; be read-only on projects_list — never write it. If projects_list is empty/absent:

Resolve the project path per breadth:

Per-project read (tolerant — a missing/malformed file degrades to a blank/omitted row, never throws):

Output — single project (nearest / named). Full orientation, keeping the standard What / Where / Status table. Each substantive item carries an indented ↳ context sub-row with a short sentence (so "T0 completed" reads with what T0 was). Repo rows are absent entirely when the project is not a git repo. Headline: project <tag-or-path> · <lastEvent or '—'> · last touched <date>. Always print the resolved project path so the user can verify which project was read.

Recap — project cs · handoff · last touched 2026-06-25

| What | Where | Status |
|------|-------|--------|
| Current state: handoff — next-session opener embedded | SESSION.md | ready |
| Latest arc: native Space comment-replies | PROGRESS.md 2026-06-24 | in-progress |
|   ↳ Space comment-replies: threaded replies under Space posts, native SwiftUI | | |
| Last commit: feat: tap-through routing for Space notifs | a1b2c3d | done |
|   ↳ routed notification taps to the correct Space/post detail view | | |
| Working tree: 2 files modified, uncommitted | git status | open |
| Open: RenderPreview gate for comment-reply cell | PROGRESS open items | open |

Output — all projects (roster). Terse rows + one short in-flight fragment, recency-sorted (most-recent SESSION.md/PROGRESS.md mtime first). Cap visible rows (~8–12); summarize the tail as a +N more (older) row. Headline shows the total count only (recency-sort, no activity-tier thresholds).

Recap — all projects · 18 total

| Project | State   | In flight                    | Touched |
|---------|---------|------------------------------|---------|
| cs      | handoff | native Space comment-replies | 06-25   |
| aria    | in-prog | recap project mode           | 06-25   |
| df      | wrapup  | df-editor row affordance     | 06-24   |
| …       | …       | …                            | …       |
| +12 more (older)        |         |                              |         |

Output — one consistent shape (all modes)

Emit a headline frame line, then the table:

Recap — {headline frame}

| What | Where | Status |
|------|-------|--------|
| {high-level item} | {file / area / skill} | {done / in-progress / open} |
| … | … | … |

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.