claude/skills/close/SKILL.md
Bastien Chanot e8807a7333 feat(gitflow): chore branch type + aiguillage for standalone memory/doc skills
Standalone /capitalize /close /prune-memory /reconcile no longer lean on the .claude/** hook exemption when run on main/develop: the aiguillage branches them to chore/* off develop before writing. New chore type (base develop, finish->develop) added to the lib; hook unchanged (chore/* non-protected). Closes the leak where standalone memory work (memory IS the work, no code branch to follow) landed direct on a protected base. 64/64 gitflow-test green, shellcheck clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RNaYKPEkjH1jbgoX1TwKMX
2026-07-01 13:25:36 +02:00

41 lines
1.6 KiB
Markdown

---
name: close
description: |
End-of-session ritual — flush what was decided, learned, and blocked into
`.claude/memory/`, reconcile `.claude/tasks/TODO.md`, and log a journal line.
Alias for `/capitalize --ritual`: same dedup + TODO-reconcile + approval-gate
pipeline, plus the explicit 3-question reflection. NOT registry curation
(that is /prune-memory).
Triggers: "close", "end session", "ferme la session", "session close",
"checkpoint memory", "what did we learn", "retro rapide", "fin de journée".
argument-hint: (none — runs capitalize in ritual mode on the current conversation)
allowed-tools:
- Read
- Edit
- Write
- Bash
- Grep
- Glob
- AskUserQuestion
---
# /close — Session-close ritual (alias)
`/close` is an alias for **`/capitalize --ritual`**. All logic lives in the
**capitalize** skill — nothing is duplicated here.
Invoke the `capitalize` skill now and run it in **ritual mode**: the full
pipeline (STEP 0 precheck → STEP 1 auto-scan → STEP 2 dedup → STEP 2B TODO
reconcile → STEP 3 approval gate → STEP 4 write → STEP 5 journal → STEP 6
handoff), PLUS STEP 1B's explicit 3-question reflection (what did you decide /
learn / block).
Ritual answers are deduped like any other candidate — a dup is dropped and its
existing ID shown, not re-logged. This is the upgrade over the legacy `/close`,
which wrote ritual answers fresh with no dedup.
The gitflow aiguillage (branch to `chore/*` on a protected base before writing)
runs inside `capitalize` — not duplicated here.
→ Use the Skill tool to launch `capitalize` with argument `--ritual`.