Skip to content
Back to skills

Close Off

ASecurity

Use only when the user explicitly asks to close off the session: confirm completion, record learnings, and clean up what the session started. Covers close off, close out, end-of-session cleanup, and wrap up.

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 9, 2026
ai-agentsshell

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add lawzava/megapowers --skill close-off --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Close Off?

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

Security grade badge for Close Off
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lawzava-close-off/badge)](https://www.skillsdirectory.com/skills/lawzava-close-off)

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: close-off
description: "Use only when the user explicitly asks to close off the session: confirm completion, record learnings, and clean up what the session started. Covers close off, close out, end-of-session cleanup, and wrap up."
---

# Close Off

The user invokes this skill to end the session. Never archive, delete, or close
the current session. Report readiness only.

## 1. Confirm the task is complete

Apply `verify-and-finish` to the session's task.
If in-scope work remains, do it, then run `verify-and-finish` again. An item you
left deferred or skipped that is inside the user's request is in-scope work.
Recheck its premise with one command. Then do it, or ask the user with the
question tool, or in the reply if it is unavailable. Never report ready while
it is open. If something blocks, report the exact blocker and what it needs,
skip steps 2 to 4, and never say the session is ready.

## 2. Record the learnings

Write durable lessons this session taught into the project's learning surface
(instruction files, learning log, or native memory), using the narrowest target
and direct observations rather than unverified history (following
`writing-agent-instructions` evidence rules). Invoking `close-off` grants scoped
approval for those lesson entries only (not commits, pushes, or standalone
memory rewrites). Revalidate changeable facts. If no durable lesson or surface
exists, skip this step and say so.

## 3. Clean up what this session created

Remove only items this session created and recorded at creation (PID, ID, or
path). Before signalling a PID, confirm it is still the process this session started. Targets:

- background processes, shells, local servers, and daemons;
- subagents, orchestrator sessions, and agent workspaces it started;
- temporary worktrees that are clean, whose commits are reachable from a
  branch, that are not the current directory, and that no live session,
  subagent, or process uses as its working directory; never their branches;
- scratch files under `$TMPDIR` (skip when it is unset).

If you cannot establish that no one uses a worktree as a working directory,
leave it and say why. Read back each removal, and read session and workspace
state back from the harness. Report an item as removed only after readback
confirms it; a failed or missing readback means left, not removed. Never stop or delete anything this session did not create, anything holding
uncommitted work, or anything instructions say to ask about first. List each
with its reason.

## 4. Close

Report: completion evidence, lessons written and where (or skipped), items
removed, items left with reasons. End the reply with exactly this line
and nothing after it:

It's ready for archiving.

Files in this skill

  • SKILL.md2.2 KB
  • agents/openai.yaml43 B

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.