end-session

Consolidate repository state, docs, and memory before ending a development session.

1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/spinlockdevelopment/dev-setup --skill end-session-spinlockdevelopment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: end-session
Source: https://github.com/spinlockdevelopment/dev-setup/tree/main/plugins/spindev-core/skills/end-session
Command: npx skills add https://github.com/spinlockdevelopment/dev-setup --skill end-session-spinlockdevelopment

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the manual, error-prone checklist at the end of a development session by consolidating repository state, project documentation, persistent memory, and TODOs so that clearing conversational context does not lose important work or context.

Core Features & Use Cases

  • Docs & Memory Sync: Ensures CLAUDE.md, referenced docs, and persistent memory entries are created, updated, or pruned to reflect the session's outcomes.
  • Git & PR Hygiene: Inspects git status and worktrees, reconciles with origin to avoid orphaned commits from squash merges, proposes commits or guarded PRs with auto-merge when appropriate.
  • Quality Gates & Reporting: Runs local tests/typechecks/lints, updates .gitignore, performs secret/scratch sweeps, and appends a concise entry to SESSION-SUMMARIES.md so future sessions can resume quickly.

Quick Start

Invoke /end-session or say wrap up this session to run the automated wrap-up that syncs docs, updates memory, runs quality gates, and prepares a PR if appropriate.

Frequently Asked Questions about end-session

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I wrap up a git worktree session and prep for clearing context?

Wrap up a git worktree session by syncing docs and persistent memory, running local tests and lints, reconciling with origin, and appending a summary to SESSION-SUMMARIES.md before clearing context.

What is the best way to sync project docs and memory before clearing conversation context?

Sync project docs and memory by creating, updating, or pruning CLAUDE.md, referenced documentation, and persistent memory entries to ensure no important work or context is lost when clearing conversation context.

How do I prevent orphaned commits after a squash merge when reconciling git worktrees?

Prevent orphaned commits after a squash merge by inspecting git status and worktrees, then reconciling local branches with the origin remote to ensure repository state is aligned before pushing.

Can I automatically run local quality gates and secret sweeps before creating a PR?

Yes, local quality gates and secret sweeps run automatically during the session wrap-up, executing tests, typechecks, and lints while updating .gitignore to prepare the repository for a guarded PR push.

Does the end-of-session workflow require explicit confirmation for destructive git operations?

Yes, the end-of-session workflow requires explicit user confirmation for guarded PR pushes and other destructive operations to prevent accidental data loss during repository reconciliation.

What should I do if my local testing or typechecking fails during session wrap-up?

If local testing or typechecking fails during session wrap-up, the quality gates will report the errors, preventing the guarded PR push until the codebase issues are resolved and local checks pass.