← Retour
C

cloture

active
Routine déterministe de fin de session: mémoire, todo, lastdiscussion

skill procédurale

Procédure
# Session close

Run in order, without skipping a step.

Step 1: Read first:
  Re-read lastdiscussion.md (previous state)
  Re-read todo.md (in-progress tickets / backlog / recently done)
  Re-read CONTEXT.md if present
  Scan the session: decisions, actions, non-obvious facts

Step 2: Rewrite lastdiscussion.md fully:
  Fixed sections (no invention):
    Current state       : 1-2 lines
    Decisions made      : list with a short reason
    What was done       : concrete actions
    Technical notes     : pitfalls, hidden dependencies
    Immediate next steps: 1-3 lines max

Step 3: Update todo.md:
  Check off finished tickets [ ] → [x]
  Move to 'Recently done' with a date
  Cap 'Recently done' at 10 items

Step 4: Persistent memory:
  Identify non-obvious facts (user, feedback, project, reference)
  Write to ~/.claude/projects/.../memory/
  Update MEMORY.md

Step 5: Propose if relevant:
  New terms to add to CONTEXT.md
  Load-bearing decisions → ADR in docs/adr/

Never touch git: the commit stays manual.
Déclencheurs
close / let's close / we're wrapping upclose the sessionend of a working discussion
Métriques

invocations

latency p50

latency p95

tokens in

tokens out

error rate