agentleFS
gh33kgh33k/session-plugin/skills/end/SKILL.md

session:end

Skill2 starsChanged 10 months agoMITView on GitHub

End a session with task closure and state update. Captures work done, closes completed tasks, updates project state, writes continuation for next session. Use `/session:end quick` for fast close without review.

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:

    Write minimal continuation to .context/continuation.md:

    line 22
  2. Distinctive:

    If uncommitted changes, ask: "Commit before ending?"

    line 48
  3. Distinctive:

    Ask: "New tasks or issues discovered?"

    line 63
  4. Distinctive:

    If yes → See references/discovered-work.md

    line 65
  5. Distinctive:

    Recent Decisions: Add any made this session (date, decision, rationale)

    line 71
  6. Distinctive:

    Blockers: Add/remove as needed

    line 72

≈ “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

session:end

Close session, capture work, update state for next session.

Quick End (/session:end quick)

Fast close, minimal interaction:

git status --short 2>/dev/null
bd list --status=in_progress --json 2>/dev/null | jq -r '.[] | .id' | head -5

Write minimal continuation to .context/continuation.md:

# Continue
Last: Quick end - no summary
In progress: {task IDs from above}
Ready: {bd ready --json --limit=3 | jq -r '.[].id'}
Suggested: /session:start build

Output:

Session closed (quick).
Uncommitted: {file count from git status}
In progress: {task IDs}

Done.

Full End (/session:end)

1. Check Work Done

git status --short 2>/dev/null

If uncommitted changes, ask: "Commit before ending?"

2. Task Review (if beads active)

bd list --status=in_progress --json 2>/dev/null

For each task, ask: "Complete? (yes/no/partial)"

  • yes → bd close <id> --reason "completed"
  • partial → Note what remains, leave open
  • no → Leave for next session

3. Discovered Work

Ask: "New tasks or issues discovered?"

If yes → See references/discovered-work.md

4. Update State

Update .project/state.md:

  • Active Focus: Next priority
  • Recent Decisions: Add any made this session (date, decision, rationale)
  • Blockers: Add/remove as needed

5. Update Session File

Find current: ls -t .context/sessions/*.md | head -1

Append:

## Summary
Completed: {what was done}
Closed: {task IDs}
Created: {new task IDs}
Carry forward: {next priorities}
Decisions: {key decisions made}

6. Write Continuation

Write .context/continuation.md:

# Continue

Last: {1-2 sentence summary of session work}
Focus: {from updated state.md Active Focus}
Blockers: {count} {brief list if any}

In progress: {task IDs, comma-separated}
Ready: {top 3 task IDs from bd ready}

Suggested: /session:start {type}

Context: {key files or areas touched}

7. Final Output

Session ended.

Completed: {count} tasks
Created: {count} tasks
Focus: {next focus area}

Next: {top ready task or suggestion}

Files:
- Session: .context/sessions/{file}
- Continue: .context/continuation.md

Output Quality Checklist

Before closing, ensure:

  • All in-progress tasks addressed (closed, updated, or noted)
  • State.md reflects current focus
  • Continuation has enough context for cold start
  • Session file captures decisions for future reference

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.