Clôture de session

VérifiéSûr

Permet de clôturer une session Claude Code en mettant à jour les fichiers de mémoire : session history, note de passage (PROJECT.md) et HISTORY.md. Inclut aussi une vérification des changements Git non commités et propose de les valider. Utile pour assurer la continuité entre les sessions.

Spar Skills Guide Bot
ProductiviteIntermédiaire
15002/06/2026
Claude Code
#session-management#handoff#documentation#git#workflow

Recommandé pour

Notre avis

Permet de clôturer proprement une session Claude Code en mettant à jour les fichiers mémoire et de suivi.

Points forts

  • Assure une continuité entre les sessions en conservant le contexte dans des fichiers dédiés.
  • Structure la documentation du travail accompli et des prochaines étapes.
  • Intègre la gestion des commits Git pour éviter la perte de travail.

Limites

  • Conçu spécifiquement pour Claude Code, non compatible avec d'autres outils sans adaptation.
  • Nécessite une exécution manuelle en fin de session.
  • Peut être verbeux pour des sessions très courtes.
Quand l'utiliser

À utiliser à la fin de chaque session de travail avec Claude Code pour garantir une reprise fluide.

Quand l'éviter

Évitez pour des modifications mineures ou des sessions exploratoires sans résultat concret.

Analyse de sécurité

Sûr
Score qualité92/100

The skill only reads and writes local project files for session documentation and suggests optional git commits without dangerous flags; no external network calls, destructive commands, or data exfiltration.

Aucun point d'attention détecté

Exemples

End session with commit
Sign off this session: update handoff notes and commit changes with a summary of what we did.
Quick handoff update
Close session and update PROJECT.md handoff with status and next steps.
Session wrap-up
End session: update session history, handoff, and HISTORY.md. Then show git status and offer to commit.

name: signoff description: End session - update session history, handoff note, and HISTORY.md if needed allowed-tools: Read, Write, Edit, Glob

Sign Off / End Session

Properly close out a Claude Code session by updating all memory files.

Instructions

Step 1: Gather Session Context

  1. Read the current session file from .claude/memory/sessions/session-history-{DATE}.md
  2. Read .claude/PROJECT.md to see current handoff state (or CLAUDE.md if no PROJECT.md exists)
  3. Read .claude/memory/HISTORY.md to see format and recent entries
  4. Review conversation to identify what was accomplished this session

Step 2: Update Session History File

Update today's session file (/app/.claude/memory/sessions/session-history-{DATE}.md) with:

  • Summary of work completed
  • Any issues encountered
  • Decisions made and rationale
  • Any incomplete work or next steps

Step 3: Update PROJECT.md Handoff

Update the "Current Session Handoff" section in .claude/PROJECT.md with:

  • Today's date
  • Brief status summary
  • What was done this session (bullet points)
  • Any running servers or temporary state to be aware of
  • Outstanding work / next steps

Step 4: Update HISTORY.md

One entry per day - HISTORY.md should have a single dated entry for each day, updated as sessions progress. Don't create separate entries per session.

Check if today's entry exists:

  • If yes: Update it with new accomplishments from this session
  • If no: Create a new dated entry

Include significant work:

  • Features completed or major progress
  • Bugs fixed
  • Architectural changes
  • New tools, skills, or documentation created

Skip only for truly minor sessions (typo fixes, failed exploration, no real progress).

Format: Summary sections with bullet points, status table if relevant, link to detailed session notes.

Step 5: Report to User

Provide a brief summary:

  • What was accomplished
  • What's documented where
  • Any next steps or outstanding items
  • Confirm they're ready to close the session

Step 6: Check and Commit Git Changes

Usually the project should have one root-level repository, but there may be multiple. For each repo with uncommitted changes:

  • Show the user what changed
  • Offer to commit with a brief message summarizing the session's work
  • Keep commit messages to one line when possible

Notes

  • Keep handoff notes concise but complete enough for a fresh Claude instance to pick up
  • Session history files can be more detailed - that's where the "how and why" lives
  • Always check both repos before signing off - uncommitted work can be lost between sessions
  • Follow git safety rules: no --amend, --force, or history rewriting inside the sandbox
Skills similaires