agentleFS
bharvey88bharvey88/claude-code-setup/skills/close/SKILL.md

close

Skill1 starsChanged 40 days agoMITView on GitHub

Use when Brandon says "/close", "close out the session", "wrap up", "end of session", or work is winding down and memory, skills, and repo state need squaring away before stopping. Not for closing files, windows, PRs, or GitHub issues.

26 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use open, reconcile and 7 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.
  • BlockSkill

    open

    Open markdown documents in Penpal for collaborative review. Use when you want a human to review a document, plan, or research artifact.

    Also in 5 projects that use this

  • howellsSkill

    reconcile

    Audit a project against current plugin conventions and offer to update structure.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    validate

    Run the full CI validation workflow locally before submitting a PR. Use this as a final check to ensure all Azure DevOps CI pipeline steps will pass.

    Also in 4 projects that use this

  • AnthropicSkill

    start

    Set up your bio-research environment and explore available tools. Use when first getting oriented with the plugin, checking which literature, drug-discovery, or visualization MCP servers are connected, or surveying available analysis skills before starting a new project.

    Also in 6 projects that use this

  • BlockSkill

    plan

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

    Also in 8 projects that use this

  • OpenAISkill

    bootstrap

    Project bootstrapping orchestrator for repos that depend on Vercel-linked resources (databases, auth, and managed integrations). Use when setting up or repairing a repository so linking, environment provisioning, env pulls, and first-run db/dev commands happen in the correct safe order.

    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 21 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. Very specific:

    REQUIRED SUB-SKILL: run update-skills for corrections and workflow changes from this session.

    line 22
  2. Distinctive:

    Write memory files only for durable facts the repo itself doesn't record.

    line 26
  3. Distinctive:

    Before reporting, check: no unpushed work Brandon hasn't explicitly decided to hold, no community issue closed without its thank-you …

    line 31
  4. Distinctive:

    Follow-ups worth their own session.

    line 50

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

Session Close

Land what the session learned, verify what it claims, and end with an honest debrief. Phases 1-3 are tool work with brief status notes; phase 4 is the only substantial output.

Phase 1: Inventory from evidence

Reconstruct what the session touched, grounded in tools, not recall:

  • Per repo touched: git status --short, and git log --oneline @{u}.. for unpushed commits. Local work Brandon reviewed is not live until pushed; say so explicitly if anything is unpushed.
  • For repos that auto-deploy on push (wiki, classes, blog): gh run list --limit 3 to confirm the deploy actually went green. Pushed but red is not shipped.
  • List actions that were denied, blocked, or promised-but-skipped this session. These get reported in phase 4, never silently dropped.
  • If a touched repo has a HANDOFF.md, update it before closing: dated state, decisions, next steps, then commit and push it. This is separate from any code commit the session already made; do it even if there is nothing else to commit. Game Day firmware: replace the LATEST section of gameday-notes/firmware-HANDOFF.md and move the old one to the top of firmware-LOG.md, so the file every session loads stays small.
  • Never commit handoffs or session notes to a public repo. Check gh repo view --json visibility before pushing any HANDOFF, spec, plan or review. Public repos keep notes in their designated private place (Game Day firmware: the private gameday-notes repo, loaded via a gitignored CLAUDE.local.md), even if the public repo's own CLAUDE.md says otherwise. Brandon, 2026-09-26: "i dont want handoffs in the repo ever again this is a public repo".

Phase 2: Memory and skill hygiene

  • REQUIRED SUB-SKILL: run update-skills for corrections and workflow changes from this session.
  • Sync the public skills mirror. After update-skills settles the edits, refresh bharvey88/claude-code-setup (clone at C:\Users\bharv\development\claude-code-setup on Windows, ~/development/claude-code-setup on the Mac; clone it if absent). Pull the mirror first and compare it with the live skills before syncing: a machine whose live skills lag the mirror (the Mac sat two months behind until 2026-09-23) would overwrite newer mirror text with its stale copies. Install anything newer from the mirror into the live skills, then run the sync. Run bash sync-skills.sh from the repo root: it copies any drifted SKILL.md in and auto-scrubs known maintainer/coworker names to roles (the name map lives in the script). If it warns that an unmapped name slipped through, add that name to the script's map or hand-scrub it before committing; Brandon's own name, handles, and bot names stay. Then git diff -- skills/, commit + push to main (no Claude footer, ID-prefixed noreply email). It's a full sweep of all skills, so it also catches drift from earlier sessions where the sync was skipped. Nothing changed after scrub = skip cleanly, no commit. Judge sync state from the script's own output, never from a raw diff of live vs mirror: the scrub is permanent, so scrubbed lines always read as drift and always will. IN SYNC from the script is the only reliable signal.
  • The mirror is more than SKILL.md. A clean sync-skills.sh run does not mean the repo is current. README.md and INVENTORY.md are hand-maintained and go stale from things the script never touches: plugins enabled or disabled, skills added or removed, settings changes. Check them whenever the session changed the setup, not just when it changed a skill.
  • Shared setup syncs itself. Global CLAUDE.md, shared skills and memory live in gameday-notes/claude/, and claude/sync.sh runs every 5 minutes on the PC, the Mac and claude-vm, committing this machine's edits and installing everyone else's. To send a change out now, run bash ~/development/gameday-notes/claude/sync.sh. Personal or legal notes go in ~/.claude/personal/ (loaded from ~/.claude/CLAUDE.machine.md), never in the shared memory folder. A new skill is shared only once it is copied into claude/skills/.
  • Write memory files only for durable facts the repo itself doesn't record. A zero-note close is a valid close: never write a memory so the summary has content.
  • Fix stale memories now: anything renamed, moved, finished, or contradicted this session gets its memory file and its MEMORY.md line updated (or deleted) before stopping. Don't leave a known-wrong note for the next session to trip on.

Phase 3: Nothing pending

Before reporting, check: no unpushed work Brandon hasn't explicitly decided to hold, no community issue closed without its thank-you comment, no blocked action missing from the report, no stale MEMORY.md line left standing. Fix what a tool call can fix now.

Phase 4: The close report

The final message, in this shape:

Summary: two or three sentences on what the session set out to do and what shipped.

State: per repo, pushed/live vs. local-only, plus every blocked or skipped action.

Memory/skills: one line per file written, edited, or deleted. "None needed" is a fine answer.

Quiz (only when the session changed behavior; skip for read-only sessions): before the debrief, ask two or three short questions whose answers would change what Brandon does next. "Which of these is live and which is local-only?" "What breaks if that deploy goes red overnight?" A wrong or hesitant answer means the handoff didn't land: fix the explanation now, don't just log it and move on.

Debrief, answered against evidence, not optimism:

  • The biggest thing Brandon might be missing right now.
  • Confidence (high/medium/low) and the single check that would raise it most.
  • What's most likely to break later, and how it would show up.
  • Follow-ups worth their own session.

Anything reported as a current problem carries the date range its evidence covers. "74 hook errors" is not a finding; "73 errors, all between 2026-06-15 and 06-17, none since" is, and the two point at opposite actions. Stale evidence presented as live is the specific failure this phase exists to catch.

A confident-sounding non-answer is worse than "I don't know." If the honest answer is uncomfortable, say it plainly.

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.