Skip to content
Back to skills

Close Session

ASecurity

Use when the person asks whether a session can be closed ("can I close this?", "anything left?", "are we done?"). Checks the repo, branches, pull requests, worktrees and ledgers, and answers with what is still open.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentsgoshellgit

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add danielvogler/agent-harness-config --skill close-session --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Close Session?

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

Security grade badge for Close Session
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/danielvogler-close-session/badge)](https://www.skillsdirectory.com/skills/danielvogler-close-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: close-session
description: Use when the person asks whether a session can be closed ("can I close this?", "anything left?", "are we done?"). Checks the repo, branches, pull requests, worktrees and ledgers, and answers with what is still open.
---

# Can this session be closed?

Answer from evidence, not from memory of the conversation. Run the checks, then reply.

## Checks

Run each in every repo this session touched, including worktrees and copies.

1. **Uncommitted work.** `git status --short`. Name each file, and say whether it is
   this session's work or was there before.
2. **Unpushed commits.** `git log --oneline @{u}..` on every branch this session
   created or committed to. No upstream at all counts as unpushed.
3. **Pull requests.** `gh pr list --author @me --state open` for this repo, and
   `gh pr view` for any this session opened: open, merged, or failing checks.
4. **Worktrees and branches.** `git worktree list`. A worktree whose branch is merged
   can go; give the exact `git worktree remove` and `git branch -d` commands.
5. **Running work.** Background shells, subagents, loops or scheduled wake-ups this
   session started. Closing the session stops them.
6. **Ledgers.** Rows this session added to `.agent/*.md` that are now settled, and
   commits that still belong in `.agent/DEFERRED_VERIFICATION.md`.
7. **Only-here knowledge.** Decisions or facts that live only in this conversation.
   Write them to their owner (a ledger, AGENTS.md, memory) or offer a handoff.

## Reply

Lead with the verdict in one sentence: "Yes, you can close it" or "Not yet: two things
are open". Then list only what is open, each with the exact command or the decision it
needs. Nothing open means no list.

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.