agentleFS
puritysbpuritysb/AgentDeck/.agents/skills/session-end/SKILL.md

session-end

Skill256 starsChanged 2 months agoMITView on GitHub

Use when the user asks to end, wrap up, clear, hand off, or prepare continuity for a Codex/AgentDeck session. Summarizes current work, captures next-step memory, updates durable project notes only when needed, and writes a concise handoff for the next session.

12 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill at the end of a work session, before /clear, /new, switching tasks, or handing work to another Codex/Claude session.

    line 8
  2. Very specific:

    Read AGENTS.md and the top of DEVELOPMENT_LOG.md (a generated aggregate — the entries behind it live in docs/devlog/entries/).

    line 16
  3. Distinctive:

    If files changed, inspect only relevant diffs needed to summarize the work.

    line 24
  4. Distinctive:

    Update durable docs only when warranted:

    line 31
  5. Distinctive:

    Do not write secrets, credentials, tokens, private device passcodes, or raw prompt transcripts into durable docs.

    line 34
  6. Distinctive:

    If no durable doc update is warranted, say so explicitly in the final handoff.

    line 35
  7. Distinctive:

    Keep it short enough to paste into a new Codex prompt.

    line 52
  8. Very specific:

    Use Codex /compact when the active thread should continue with a compressed context.

    line 56
  9. Very specific:

    Use /new or /clear after the handoff when the next task should start fresh.

    line 57

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

Use this skill at the end of a work session, before /clear, /new, switching tasks, or handing work to another Codex/Claude session.

Purpose

Produce a concise handoff that lets the next session continue without rereading the whole transcript. Separate temporary handoff notes from durable project knowledge.

Workflow

  1. Read AGENTS.md and the top of DEVELOPMENT_LOG.md (a generated aggregate — the entries behind it live in docs/devlog/entries/).
  2. Inspect the current work state:
git status --short
git diff --stat
  1. If files changed, inspect only relevant diffs needed to summarize the work. Do not revert unrelated changes.
  2. Summarize:
    • goal and current outcome
    • files changed and why
    • verification run and results
    • unresolved risks or blockers
    • exact next action for the next session
  3. Update durable docs only when warranted:
    • Development log: for meaningful fixes, architectural decisions, hardware findings, or known pitfalls, create docs/devlog/entries/YYYY-MM-DD-<slug>.md (first line # YYYY-MM-DD — title, sections as ###, links relative to the repo root), then run pnpm devlog:build. When committing is within the task scope, include the entry and its regenerated aggregates together. Never edit DEVELOPMENT_LOG.md or docs/devlog/YYYY-MM.md by hand.
    • AGENTS.md: update only for project-wide architecture, invariants, setup, workflow changes, or persistent agent behavior expectations.
  4. Do not write secrets, credentials, tokens, private device passcodes, or raw prompt transcripts into durable docs.
  5. If no durable doc update is warranted, say so explicitly in the final handoff.

Handoff Format

Return this shape:

**Session Handoff**
- Goal:
- Current state:
- Changed files:
- Verification:
- Open issues:
- Next action:
- Durable docs updated:

Keep it short enough to paste into a new Codex prompt. Include file paths for changed files, but avoid dumping large diffs.

Notes

  • Use Codex /compact when the active thread should continue with a compressed context.
  • Use /new or /clear after the handoff when the next task should start fresh.
  • Follow AGENTS.md Agent working agreements for memory ownership and freshness. Store personal recurring preferences and dated retrieval hints in local memory; required AgentDeck rules belong in checked-in docs. Link to the canonical rule rather than copying its body, and do not turn an old approval or release condition into a permanent gate.

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.