Skip to content
Back to skills

End Session

ASecurity

End a long-work session as you say - verify, prepare the next session's note, then git and any action you named (push, merge). Single tasks: /keel:end-task.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 11, 2026
ai-agentsgoshellbashnodegit

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add mvbsoft/keel --skill end-session --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of End Session?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for End Session
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mvbsoft-end-session/badge)](https://www.skillsdirectory.com/skills/mvbsoft-end-session)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: end-session
description: End a long-work session as you say - verify, prepare the next session's note, then git and any action you named (push, merge). Single tasks: /keel:end-task.
disable-model-invocation: true
argument-hint: "[what to do, e.g. we continue tomorrow, prepare | push and merge into main]"
allowed-tools: Bash(node "${CLAUDE_PLUGIN_ROOT}/scripts/check-config.js" *), PowerShell(node "${CLAUDE_PLUGIN_ROOT}/scripts/check-config.js" *)
---

# keel: end-session

- `<keel>` (the plugin folder): `${CLAUDE_PLUGIN_ROOT}`
- `<project>` (the project folder): `${CLAUDE_PROJECT_DIR}`; a keel script's `project: <folder>` line (this session works in a worktree of it) replaces it from then on
- `<sid>` (this session's id): `${CLAUDE_SESSION_ID}`
- Talk to the user in: the language in keel's session-start line (this project's own, else the machine's: ${user_config.conversation_language}; a language the user explicitly asks for in this session wins, for this session only)
- The user's instruction (arguments, free text): `$ARGUMENTS`

Current state of this project:

!`node "${CLAUDE_PLUGIN_ROOT}/scripts/check-config.js" "${CLAUDE_PROJECT_DIR}" --profile`

1. The state above is exactly the two lines `keel-config: ok` and `profile: ok`, with no other line
   → go on without reading preflight.md. Any other line (such as `git: refused`), or no state above → read `<keel>/skills/_shared/preflight.md` and
   act on it. These rules hold for this whole command. Run every keel script (`node` with a file in
   keel's `scripts` folder) as its own plain command with full paths, never joined with `;`, `&&`,
   pipes or redirections. In Bash write a path that starts with `\\` as `//server/share/...`. Read
   keel's own files with Read, Grep and Glob, not the shell. Before each action say in one short
   line what it will do. An instruction you cannot read one way only: ask, never guess. Steps that
   need nothing from each other's output may go in one message as separate calls, where the command
   says so. A keel script refused by a project hook: follow preflight.md's rule for it.
2. Run `node "<keel>/scripts/notes.js" "<project>" check --session <sid>`. `active task:` is not `none`,
   or this conversation ran `/keel:start-task` → say "This conversation works on a task: end it with
   /keel:end-task." and stop. A `lane conflict:` line → show it, ask which lane leads that key and
   stop. The line of work is the note's goal and plan, plus what this session
   worked on and this conversation. Task files are not part of this lane.
3. **What to do**, from the instruction:
   - none → verification, prepare the next session, then "Next time: ..." for the user to agree or correct;
   - prepare only ("we continue tomorrow, prepare") → gates only, then prepare;
   - an action ("push", "merge into main", "open a PR") → verification, prepare, then the action;
   - the line is finished (the user says so) → the note gets `status: done`;
   - a level word (gates, basic, standard, maximum, none (no verification); quick means basic) standing alone or
     after "level" → that level.
   Ambiguous → ask, never guess.
4. Verification: read `<keel>/skills/_shared/verify.md` and follow it (gates only: its steps 1, 2 and
   12). Prepare only: gates only, no question. Otherwise, without a level in the instruction the user
   chooses it (verify.md step 3; a level from a brief, the note or memory is only
   advice): ask it as your next message and end your turn; never fall back to
   gates only on your own. When `session start:` shows commits since, step 1 uses `--base <that commit>`: verify this
   session's work, committed or not.
5. Prepare: read `<keel>/skills/_shared/handoff.md` and write the note (update, do not rewrite; new
   items for the future go into **Later**), memory and session log; with `git.state_in_git` before
   step 6, otherwise after it.
6. Git: read `<keel>/skills/_shared/git.md` and follow it: **finish** when the line is finished, else
   **handoff**, with the actions from the instruction (merging and red verification: as git.md says).
   Planned tickets first: a passed full verification (not gates only, not red) → for each
   `<f>/<t>` in the note's `keys:` whose Plan items are all ✅,
   `node "<keel>/scripts/plans.js" "<project>" status <f> <t> done`, then
   `node "<keel>/scripts/plans.js" "<project>" reviewed <f> <t>` (`status: <t> done`; a
   `plans: status refused (...)` → warn with its reason). git.md's `save` then adds
   `--tickets "<those f/t>"` (comma-separated, quoted), so their ticket files go into the commit; a
   `plan: every ticket is done or abandoned: plans.js state <f> done` line → ask "Mark the plan <f>
   done?" (yes → `plans.js state <f> done`, then git-end-of-feature.md after the push). Gates only or
   red → no `plans.js status` call. git stops before the commit holds them (`save` stopped with
   `commit` not in its `done:` line, or never ran) → `plans.js status <f> <t> in-progress` for each (a
   plan marked done goes back to `in-progress` with them (`plan: in-progress`)); a stop after the commit (`commit` in `done:`: sync, push) → no undo: the commit holds them, say the
   push is left. Manual git → one line: "The ticket files <paths> are marked done: commit them with
   the code." (not for tickets under `.keel/local/`: they are outside git); with the plan marked done
   also "Feature <f> is complete; /keel:tasks offers its end once you have committed and pushed."
7. Costs: read `<keel>/skills/_shared/usage-sync.md` and start its sync agent (steps 1-3) with session id
   `${CLAUDE_SESSION_ID}` and the level and findings from step 4; its step 4 runs in step 8, right
   before the report.
8. Run usage-sync.md step 4 (the cost report). Then, in one message as two calls: run
   `node "<keel>/scripts/cleanup.js" "<project>" reminder` (its line goes into the report only when
   it names `/keel:cleanup`) and read `<keel>/skills/_shared/final-report.md`.
9. Report: follow final-report.md. An answer to "Agree, or change
   it?" that changes the plan → update the note (in git: commit it as git.md says, manual mode: say so).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.