agentleFS
Khubaib7-delKhubaib7-del/agent-docs-kit/skills/docs-wrap/SKILL.md

docs-wrap

Skill0 starsChanged 5 months agoMITView on GitHub

End-of-session ritual — rewrite docs/STATE.md from this session's context, harvest unlogged decisions and landmines, re-stamp verified dates. Use when the user says wrap up, end session, save progress/handoff, or before stepping away from work.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    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:

    Follow the template shape (${CLAUDE_PLUGIN_ROOT}/templates/STATE.md):

    line 12
  2. Distinctive:

    Works right now: only what you *observed* running this session.

    line 13
  3. Distinctive:

    Landmines: every wall hit this session that a future session could re-hit — failed approaches included ("tried X, fails because Y" prevents …

    line 16
  4. Distinctive:

    Keep ≤60 lines; trim the session log to the last 3 entries.

    line 17
  5. Distinctive:

    Don't write STATE.md from the previous STATE.md — write it from the session, then check the old one for still-true items you'd otherwise …

    line 33
  6. Distinctive:

    If the session ended mid-debugging, record the current hypothesis and what's been eliminated — that's the one thing reconstruction can …

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “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

Wrap the session

You are writing the handoff while the context is still warm — the whole point is that reconstruction later is lossy. Work from what actually happened this session, not from what the docs currently claim.

Step 1 — Rewrite docs/STATE.md (not append — rewrite)

Follow the template shape (${CLAUDE_PLUGIN_ROOT}/templates/STATE.md):

  • Works right now: only what you observed running this session. Anything unverified goes to in-progress.
  • In progress: exactly where each half-done thing stopped — file, function, what's missing. "Auth is partially done" is useless; "token refresh in api/client.ts handles 401 but retry loop untested" is a handoff.
  • Next 3 actions: specific enough that a fresh session starts in minutes. First one should be the thing you'd do next if you had ten more minutes.
  • Landmines: every wall hit this session that a future session could re-hit — failed approaches included ("tried X, fails because Y" prevents a repeat better than any style rule).
  • Keep ≤60 lines; trim the session log to the last 3 entries.

Step 2 — Harvest unlogged decisions

Scan the session for choices that were made but never logged: new dependencies, changed formats, architectural calls, rejected approaches. Append each to docs/DECISIONS.md in the template format with honest provenance (Decided-by: human only if the human actually chose; agent-after-experiment if evidence was gathered; else agent-default).

Step 3 — Freshness pass on touched docs

For every doc area this session touched: if the session confirmed it accurate, re-stamp verified: <today>; if the session contradicted it, fix it now or mark the specific claim STALE: — never leave silent staleness. Check AGENTS.md is still ≤150 lines if it was edited.

Step 4 — Report the handoff

Give the user a 3-5 line summary: what state the project is in, the next action, and anything awaiting their decision. If tests/build were left red, say so plainly — a handoff that hides red state is the most expensive artifact in agent development.

Gotchas

  • Don't write STATE.md from the previous STATE.md — write it from the session, then check the old one for still-true items you'd otherwise lose.
  • Uncommitted work: note it explicitly ("changes unstaged in src/engine/") — the next session must not assume a clean tree.
  • If the session ended mid-debugging, record the current hypothesis and what's been eliminated — that's the one thing reconstruction can never recover.

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.