AGENT SKILL

catchup

Fast 30s session bootstrap briefing. Use when resuming work after any break, at the start of a fresh session, or when unsure of current project state. Reports git status, recent commits, environment state, memory-index staleness, pending tasks, and red flags. NOT for deep code exploration or planning - it only reports state, it does not change it.

License 许可
MIT
所属仓库
SamyakJhaveri/loam
最近更新
2026-11-15
Stars
★ 0
Forks
0

01 前言 Front Matter

name
catchup
description
Fast 30s session bootstrap briefing. Use when resuming work after any break, at the start of a fresh session, or when unsure of current project state. Reports git status, recent commits, environment state, memory-index staleness, pending tasks, and red flags. NOT for deep code exploration or planning - it only reports state, it does not change it.

03 SKILL.md 正文

Session Catchup Briefing

Read the state before changing it. Report it; do not act on it. Run everything fresh - never answer from cached or remembered state. An optional numeric argument sets how many recent commits to show (default 10).

Gather

  1. Git: git status, git log --oneline -<N>, and git diff --stat HEAD~<N> (fall back to the first commit if history is short).
  2. Environment: active tmux sessions (tmux list-sessions), python/venv presence if the project uses one.
  3. Memory: list the project's auto-memory directory under ~/.claude/projects/<encoded-cwd>/memory/ by modification time.
  4. Tasks: check the task list for anything left in progress by a previous session.
  5. Handoff and state: read HANDOFF.md, and STATE.md if the project keeps one, at the repo root. HANDOFF.md uses seven headings, in order: Goal; Files touched; Commands run (each with its exit code); Tried and failed; Open assumptions; Next single action; Written at (the output of git rev-parse HEAD). The verify command that proves the work sits under Commands run. Note each file's modification time and its status words so freshness can be checked against git (see Red flags).
  6. Loam pin: only when .copier-answers.yml exists at the repo root (the project was seeded from Loam). Read its _commit. It is a red flag when _commit does not match ^v[0-9]+\.[0-9]+\.[0-9]+$ (a bare SHA, or a git describe string such as v2.1.0-39-g0d0cb03, is not a release tag), or when it is not the newest tag. Find the newest tag with git -c http.lowSpeedLimit=1 -c http.lowSpeedTime=5 ls-remote --tags https://github.com/samyakjhaveri/loam sorted by version, ignore lines ending in ^{} (the gh: shorthand is Copier-only and fails in git; the low-speed bound aborts the fetch after about 5 seconds when offline, without timeout). When it fails (offline), compare against VERSION in the template checkout (strip the leading v before comparing) only if _src_path points to a reachable local Loam checkout; otherwise print pin check skipped: offline.

Red flags - put these at the TOP of the briefing

  • Uncommitted changes or a detached HEAD.
  • A merge or rebase in progress.
  • Active tmux sessions that may be running long jobs.
  • Memory files untouched for 14+ days.
  • In-progress tasks from a previous session.
  • A stale HANDOFF.md or STATE.md. Flag either file when any of these hold:
    • its modification time is older than the last commit: git log -1 --format=%ct versus the file's mtime (stat -f %m <file> on macOS, stat -c %Y <file> on Linux);
    • its status words contradict git: it says "uncommitted" or "dirty" while git status --porcelain is empty; or "clean" or "committed" while git status --porcelain is non-empty; or "pushed" while git status -sb shows the branch ahead of its upstream; or its "Written at" hash is not git rev-parse HEAD. Report the drift; the repository state overrides the handoff, never the reverse.
  • Loam pin drift: print Loam pin <commit> is not the latest release <tag>; run uvx copier update --trust when the pin is behind the newest tag, or Loam pin <commit> is not a release tag when _commit is not a vX.Y.Z tag.

Briefing format

Keep it to one screen. State only - the user decides what to do with it.

=== CATCHUP BRIEFING ===
[red flags, if any]
Branch / status / last commit
Recent commits (N)
Changed files since HEAD~N (diffstat)
Environment: tmux / venv / python
Memory: file count, most recent, stale list
Handoff / State: next single action + verify command (or: none; or: STALE - hash / mtime / status words disagree with git)
Loam pin: _commit + verdict (latest / not the latest / not a release tag / offline) - or: not a Loam project
Open tasks (or: none)
=== END BRIEFING ===

04 同仓库更多 Skills

SamyakJhaveri
SamyakJhaveri/loam

verify-loam

Prove a Loam change in a real rendered project: copier-render this checkout, then drive headless and interactive Claude Code sessions, stubbed Codex runs and copier updates in the render and capture hook, memory, deny-rule, update and check evidence. Use before shipping any seed, hook, settings or copier.yml change.

★ 0
SamyakJhaveri
SamyakJhaveri/loam

hypothesis-tree

Persistent hypothesis tree for multi-step, multi-session investigations. Use when a "why does X fail" question branches into sub-hypotheses that must survive across sessions, or when falsifiable claims need tracking with dated, linked evidence. Maintains one markdown file with add, update, review, and prune subcommands, each gated on verifying the cited evidence file exists and supports the claim. NOT for a single-session bug hunt, a one-command question, or general note-taking.

★ 0
SamyakJhaveri
SamyakJhaveri/loam

fable-prompting

Which Claude Fable 5.2 guide sections you can act on from a session, and which Claude Code already injects. Use before writing a Fable session prompt or brief.

★ 0
SamyakJhaveri
SamyakJhaveri/loam

catchup

Read-only session bootstrap briefing of git state, commits, handoff, tasks and red flags. Use when resuming work, starting a fresh session, or unsure of project state.

★ 0
SamyakJhaveri
SamyakJhaveri/loam

writing-for-agents

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

★ 0
SamyakJhaveri
SamyakJhaveri/loam

wizard

Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.

★ 0