agentleFS
0n1-Studios0n1-Studios/sitrep/SKILL.md

sitrep

Skill1 starsChanged 51 days agoMITView on GitHub

Situation report across every git repo in a workspace — scans for uncommitted changes, unpushed commits on any branch, stashes, parked feature branches, and forgotten git worktrees (anything pending a decision), then cross-references project docs for planned roadmap items and renders it all as a self-contained HTML infographic (branch graphs, dirty-tree meters, stash flags). Use whenever the user asks for a sitrep, status report, "what's pending", "where did I leave off", "state of my projects", "anything uncommitted?", "what's left on the roadmap", or wants a morning/weekly overview of the whole workspace — even if they only vaguely ask what needs attention.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use wayfinder.

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.
  • GoogleSkill

    wayfinder

    Plan a huge chunk of work — more than one agent session can hold — as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the bundled script (fast, read-only):

    line 24
  2. Distinctive:

    Treat these as pending decisions, in rough priority order:

    line 64
  3. Distinctive:

    If the workspace has a project-tracker MCP connected, it's a richer live source — use it as a supplement, never a requirement.

    line 128

“Common” is measured: kept by at least 6 in 10 of the 13 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

Sitrep

Produce a decision-oriented situation report for a whole workspace of repos: what work is sitting uncommitted or unpushed (and what to do about it), plus what's planned-but-not-started according to project docs.

The goal is not a data dump — it's to answer two questions the user actually has:

  1. What did I leave hanging, and what decision does each item need? (commit / push / PR / discard / finish)
  2. What's next on each project's roadmap?

Setup

The scan defaults to ~/Development as the workspace root. If the user's repos live elsewhere, pass the root as an argument, or edit ROOT at the top of scripts/git_scan.sh. Same for SKIP_DIRS — the directories to ignore.

Step 1 — Git scan

Run the bundled script (fast, read-only):

~/.claude/skills/sitrep/scripts/git_scan.sh              # defaults to ~/Development
~/.claude/skills/sitrep/scripts/git_scan.sh ~/src        # or point it anywhere

It prints a summary table for every repo plus a TOTAL row, then detail blocks for repos with pending work. Its scope is every top-level directory with a .git, minus SKIP_DIRS. Linked worktrees are reached through their repo's git worktree list wherever they live — inside the repo, where agent tools often create them, beside it, or in a temp dir — and are never swept as repos of their own. No fetch, no network, and GIT_OPTIONAL_LOCKS=0, so it never takes index.lock in a worktree another session is committing in.

Summary columns. DIRTY / UNTRK / STASH are the main checkout. AHEAD / BEHIND are the checked-out branch against its upstream. UNPUSHED is the number to trust: commits on no remote across every local branch and detached worktree HEAD (every commit, when there is no remote). A repo can be clean and synced on main while its side branches hold dozens of local-only commits; that repo still gets a detail block. WT is its linked worktrees, WT-DIRTY their git status entries combined, and WT-FLAGS counts tmp (worktrees in a temp dir the OS clears on reboot) and prunable (checkout gone). The TOTAL row feeds the header stat blocks.

Detail blocks, per repo with pending work:

  • [changes] — the main checkout's status entries, with the time of the newest edit.
  • [unpushed commits] — the UNPUSHED count and its newest 10 subjects.
  • [stashes]
  • [branches] — every branch that holds unpushed commits or is checked out: * here, + in a linked worktree (→ its path). Each shows its sync state against its own upstream (synced, ahead n, behind n, gone, no upstream) and its unpushed count. The rest collapse into one … n more, every commit on a remote line, so deleting those loses nothing. Per-branch counts overlap when one branch is built on another; UNPUSHED is the deduplicated total.
  • [worktrees] — one line per linked worktree: its branch or detached@sha, then n dirty · newest <time> or clean, then its path and flags. The flags are AT-RISK: temp dir; PRUNABLE: directory gone or .git link gone (the directory is still there but no longer a checkout, so git tracks nothing in it); n commit(s) on no branch or remote (only this detached HEAD holds them); and locked: <reason> (often the agent session that created it, which may still be running).

Treat these as pending decisions, in rough priority order:

  • Worktree in a temp dir with work in it — AT-RISK plus dirt or unpushed commits. The next reboot takes it, so it outranks everything else: commit and push, or move it out of the temp dir.
  • Dirty working tree — uncommitted edits, in the main checkout or a linked worktree. The bigger and older (see the newest-edit time), the more urgent the decision. A worktree edited in the last few hours, or locked by a session, is probably live: say so rather than suggest discarding anything.
  • Unpushed commits — read UNPUSHED, not AHEAD. AHEAD only tracks the checked-out branch, and side branches and detached HEADs are where this work hides. A branch with no upstream exists only on this disk.
  • Repo parked on a non-main branch — usually a feature mid-flight; is it done, abandoned, or waiting on a PR?
  • Stashes — easily forgotten; either worth recovering or worth dropping.
  • Prunable worktrees — git worktree prune housekeeping. Check the line first: a detached HEAD with commits on no branch loses them to the prune, and a .git link gone directory may still hold files.
  • Agent-created branches (claude/*, codex/*, or whatever your tooling names them) — leftovers from agent sessions. Those in the collapsed … n more line hold nothing unpushed (the ones with upstream gone were usually merged and deleted on the remote). For any listed with unpushed commits, check git branch --no-merged main before calling them deletable.
  • No remote — every commit is one disk failure from gone; suggest adding a remote.

Step 2 — Identify what the pending work IS

A count of dirty files is not a decision. For each repo with pending work, spend one or two cheap commands to characterize it so you can recommend an action:

git -C <repo> diff --stat | tail -5        # shape of the edits
git -C <repo> log --oneline -3             # what was last happening
git -C <repo> stash show stash@{0} --stat  # what a stash contains

For a dirty worktree, run the same commands with -C <its path>. For a side branch, git -C <repo> log --oneline -3 <branch> shows what it holds.

Then classify: ready to commit (coherent, complete-looking), needs review (mixed concerns, generated assets + code together), probably discardable (build artifacts, lockfile churn, doc regen), or mid-flight feature (partial implementation). Say which and why in one line each. Don't commit, push, or discard anything yourself — this skill reports; the user decides.

Step 3 — Roadmap scan

Planned work lives in per-project docs under inconsistent names. Per repo, check for whichever of these exist (skip repos with none):

  • ROADMAP.md, TODO.md, BACKLOG.md, PLAN*.md, MIGRATION.md
  • CLAUDE.md / .claude/CLAUDE.md / AGENTS.md — often ends with "current state" or "next steps" notes
  • Any design doc the project treats as canonical (GDD.md for games, masterplan.md, docs/*.md): look for "Roadmap", "Planned", "Future", "Phase" sections

A cheap way to find them:

ls <repo>/*.md <repo>/docs/*.md 2>/dev/null

Extract only items that are planned but not visibly started — cross-reference against the git scan: a roadmap item with a matching in-flight branch belongs in the pending-decisions section ("mid-flight"), not the roadmap section. Note doc staleness when a "planned" item was clearly already shipped.

If the workspace has a project-tracker MCP connected, it's a richer live source — use it as a supplement, never a requirement; the skill must work from files alone.

Step 4 — Build the infographic

The deliverable is a single self-contained HTML infographic, not a text report. Start from ~/.claude/skills/sitrep/assets/template.html — it contains the full stylesheet, section skeleton, and a fully worked example card in comments. Copy its structure into a new file; never edit the template in place. It needs no external resources, so it renders anywhere.

Fill the four sections with these visual encodings (all classes documented in the template):

  • Needs-a-decision cards, ordered by work at risk (a 90-file dirty tree before a 1-commit doc push). Per card:
    • risk class risk-high / risk-med / risk-low → colored left stripe + chip
    • dirty-tree size → the .meter bar, width % ≈ min(100, dirty + untracked + WT-DIRTY) — big half-finished work should look big, wherever it sits. The .meter-label splits the main checkout from its worktrees (0 in main · 133 in worktrees)
    • each branch from [branches] → a .branch lane in the mini git-graph, with the right dot + status chip: cur (checked out), ahead (▲n unpushed), local (no upstream — exists only on this disk), gone (upstream deleted), or synced
    • each linked worktree with dirt or a flag → a lane with the wt dot and chip (worktree · 12 dirty), or tmp for AT-RISK (/tmp worktree · 4 dirty · gone on reboot); also list AT-RISK and prunable worktrees under Housekeeping, alert when work is at stake
    • a repo parked on a non-main branch → badge parked on the header chip
    • stashes → the dashed .stash box (dashed = orphaned work attached to no branch)
    • unpushed commits → purple .cdot dots, one per commit of UNPUSHED (all branches, not just AHEAD)
    • the one-line classification from Step 2 in .what, and the action in the .rec footer
  • Roadmap items → one .ritem per item with the project tag and source doc; use ritem midflight (dashed purple) for items that turn out to be already started on a branch.
  • Quiet repos → green .chip cloud, no detail.
  • Housekeeping → .house list; alert class for data-loss risks (no-remote repos, orphaned stashes, temp-dir worktrees holding work, prunable worktrees whose detached HEAD holds commits).

Fill the header stat blocks (repos scanned / need decision / unpushed commits / uncommitted in worktrees / stashes / clean) from the TOTAL row — UNPUSHED and WT-DIRTY for the middle two. They're the 5-second version of the whole report.

Save the file somewhere temporary (a session scratchpad if your harness has one, else /tmp), named sitrep-<YYYY-MM-DD>.html, and present it — render it inline if your harness can, otherwise open <file>. Then give a 3–6 line text summary in chat — top decisions first — that stands alone if the HTML is never opened. If everything is clean, say so prominently and let the roadmap lead the infographic.

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.