close-out-session
Skill1 starsChanged 7 months agoMITView on GitHub
Close out the current working session by summarizing progress, capturing uncommitted changes, writing a continuation prompt, updating READMEs, and committing. Use when the user says "close out", "wrap up", "save my context", "create a handoff", or wants to end a session with a clean handoff for the next one.
In this repository18 other files it gives its agents.
- code-reviewSkill
- comprehension-artifactSkill
- continue-workflowSkill
- enforce-integration-testSkill
- extract-engineering-styleSkill
- full-path-githubSkill
- generate-skill-docSkill
- gh-pr-createSkill
- grill-meSkill
- improve-codebase-architectureSkill
- playwright-capture-flowSkill
- prd-to-issuesSkill
- scaffold-docs-folderSkill
- scaffold-workspaceSkill
- setup-nvim-tmuxSkill
- spec-to-issueSkill
- structured-backlogSkill
- tdd-pocockSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 10 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
If the location is ambiguous (e.g., work spanned multiple initiatives), ask the user where the continuation prompt should be saved.
- Very specific: line 45
Always start with CONTINUATION_PROMPT-- (the continue-workflow skill globs for this prefix)
- Distinctive: line 46
Use lowercase, hyphen-separated words
- Distinctive: line 47
Keep under ~80 chars total
- Very specific: line 48
Delete any existing CONTINUATION_PROMPT*.md files in the same directory before writing (the old version is preserved in git history)
- Distinctive: line 54
Run these commands to capture the current state:
- Distinctive: line 63
If in a project workspace, also check the worktree:
- Distinctive: line 82
Read the existing README for the initiative/project to understand:
- Very specific: line 89
Remove any existing CONTINUATION_PROMPT*.md files in the target directory, then write the new file using the descriptive filename …
- Distinctive: line 91
Use this template, filling in every section from the state gathered in Step 2:
- Distinctive: line 159
Key Decisions: Only include decisions that someone might reasonably want to revisit.
- Distinctive: line 163
Read the initiative/project README and update:
- Distinctive: line 181
If in a project workspace, only commit to the workspace repo (workbench changes).
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Close Out Session
Generate a continuation prompt and update documentation so the next session (or a different agent) can pick up exactly where this one left off.
When to Use
- User says "close out", "wrap up", "let's stop here", "save context", "create a handoff"
- User is about to switch to a different task or end for the day
- Session is getting long and context might be lost
Step 1: Determine Context
Figure out what kind of workspace you're in by examining the current working directory and project structure:
| Context | Signal | Continuation Prompt Directory |
| Project workspace initiative | Inside <project>_workspace/ with a workbench/ folder | <project>_workspace/workbench/<initiative>/ |
| Documentation repo project | Inside a git repo with a master index file (*-INDEX.md) | <docs_repo>/<project>/ |
| Documentation repo subfolder | Inside a docs repo subfolder | <docs_repo>/<project>/<subfolder>/ |
If the location is ambiguous (e.g., work spanned multiple initiatives), ask the user where the continuation prompt should be saved.
For project workspaces, identify the specific initiative by checking which workbench subfolder has been actively worked on (most recently modified files, or ask the user).
Filename Convention
Continuation prompts use descriptive filenames so you can tell what a session was about without opening the file:
CONTINUATION_PROMPT--<slug-describing-state-and-next-step>.mdThe slug should capture what was done and what's next in a few hyphenated words. Examples:
CONTINUATION_PROMPT--schema-migrated-api-endpoints-next.mdCONTINUATION_PROMPT--speed-tests-done-plumb-concurrency-flag.mdCONTINUATION_PROMPT--draft-rfc-ready-for-review.md
Rules:
- Always start with
CONTINUATION_PROMPT--(thecontinue-workflowskill globs for this prefix) - Use lowercase, hyphen-separated words
- Keep under ~80 chars total
- Delete any existing
CONTINUATION_PROMPT*.mdfiles in the same directory before writing (the old version is preserved in git history)
Step 2: Gather Session State
From git
Run these commands to capture the current state:
# Workspace repo status (tracks workbench)
cd <workspace_or_docs_root>
git status --short
git log --oneline -5If in a project workspace, also check the worktree:
cd <worktree_directory>
git status --short
git diff --stat
git log --oneline -5From the conversation
Review the current conversation to extract:
- Files created or modified during this session
- Tasks completed
- Decisions made (architectural, design, workflow)
- Work still in progress or blocked
- Open questions or TODOs discussed
From the file system
Read the existing README for the initiative/project to understand:
- What status fields exist and need updating
- The current folder structure (to update if new files were added)
- The document index (to add new entries)
Step 3: Write the Continuation Prompt
Remove any existing CONTINUATION_PROMPT*.md files in the target directory, then write the new file using the descriptive filename convention from Step 1.
Use this template, filling in every section from the state gathered in Step 2:
# Continuation Prompt — <Initiative/Project Name>
**Last updated:** <YYYY-MM-DD HH:MM>
**Workspace type:** <project_workspace | docs_project | docs_subfolder>
Copy everything below the line into a new Cursor CLI or Claude session to resume this work.
---
I'm continuing work on <initiative/project description — 1-2 sentences of what this is about>. This is a handoff from a previous session. Please read the following files to rebuild context, then we'll pick up where we left off.
## Context Files to Read
<Ordered list of the most important files for the next session to read. Always include:
- The README for the initiative/project
- Any active plan or spec documents
- Recently modified files that contain important state
- Relevant skill files (e.g., project-specific setup skills)
Use absolute paths so they work regardless of where the next session starts.>
1. `<absolute_path>` — <why to read this file>
2. `<absolute_path>` — <why to read this file>
## Session Summary
<2-5 bullet points of what was accomplished this session. Be specific — mention file names, decisions, and concrete outcomes.>
- <accomplishment>
- <accomplishment>
## Current State
<What's in progress, what's blocked, what's the immediate next step. Be concrete.>
## Files Modified (uncommitted)
<From git status. If everything is committed, say "All changes committed.">
| File | Status | What Changed |
|------|--------|-------------|
| `<relative_path>` | modified/new/deleted | <brief description> |
## Open TODOs / Next Steps
<Prioritized list — most important first. Each item should be actionable.>
1. **<Next immediate action>** — <details and any relevant file paths>
2. **<Following action>** — <details>
## Key Decisions Made
<Decisions from this session that the next session should NOT re-litigate.>
- **<Decision>:** <Rationale>
## Key Constraints
<Rules the next session needs to follow — PHI restrictions, commit-only-in-worktree rules, API limitations, etc.>Template Guidelines
- Context Files to Read: This is the most important section. Be generous — list 5-10 files if needed. The next session starts completely cold.
- Session Summary: Focus on outcomes, not process. "Created the transform SQL and validated against preprod" not "We talked about how to structure the transform."
- Open TODOs: Make them copy-paste actionable. Include commands to run, files to edit, questions to ask.
- Key Decisions: Only include decisions that someone might reasonably want to revisit. Don't document obvious things.
Step 4: Update the README
Read the initiative/project README and update:
- Status fields — Update any "Current Status", "Phase", or similar indicators
- Folder tree — Add any new files created during this session
- Document index — Add entries for any new documents
- Open questions / next steps — Sync with the continuation prompt's TODO list
Step 5: Commit
cd <workspace_or_docs_root>
# If you deleted an old CONTINUATION_PROMPT, stage the deletion too
git add <initiative_dir>/CONTINUATION_PROMPT*.md
git add <path_to_README.md>
# Add any other documentation files that were updated during this session
git commit -m "Close out session: <brief description of work done>"If in a project workspace, only commit to the workspace repo (workbench changes). Do NOT commit to the worktree repo as part of close-out — that's the user's responsibility.
Step 6: Tell the User
Summarize:
- Continuation prompt written to
<path> - README updated at
<path> - Changes committed to
<repo> - Uncommitted worktree changes (if any) listed for awareness
- To resume: start a new session and use
/continue-workflow, or paste the continuation prompt contents directly
Guidelines
- Be thorough in the context files list. The next session starts cold — it needs enough files to rebuild the full picture without guessing.
- Don't include conversation-specific ephemera. Focus on durable state in files, not things only discussed in chat that didn't get written down anywhere.
- Err on the side of more context, not less. A verbose continuation prompt is better than one that leaves the next session confused.
- Use absolute paths in the continuation prompt so it works regardless of where the next session starts.
- Always commit the continuation prompt. This is insurance — if the session dies after close-out, the handoff is preserved in git.
- Don't commit worktree code changes during close-out. Close-out is for documentation and context preservation only. The user decides when to commit code.
- Delete any existing
CONTINUATION_PROMPT*.mdin the target directory before writing the new one — each directory should have at most one. The old version is preserved in git history.
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
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.

