Two-mode capitalize: default pre-wipe flush, --ritual adds the 3-question end-of-session reflection (now deduped, unlike legacy /close). New STEP 2B reconciles .claude/tasks/TODO.md — PASS A done-detection (only on an unambiguous task<->commit map), PASS B explicit-only capture with an anti-noise filter (never track commit/deploy/push/release/tag) and BDR routing for orientation directives. STEP 3 gate gains a separate TODO block; journal/handoff report TODO ops. /close becomes a thin alias for /capitalize --ritual (zero duplicated logic). Built via superpowers:writing-skills TDD: RED baseline (no skill) folded a push/tag parasite into the TODO, invented a subtask, and wrote with no gate; GREEN re-run on the same fixture stops at the gate, drops both dups (footer shows existing IDs), logs one learning, checks only the cleanly-done task, ignores the parasite, and routes the GraphQL directive to BDR. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X3e8LaH2vymmxyh36h3jFU
38 lines
1.5 KiB
Markdown
38 lines
1.5 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.
|
|
|
|
→ Use the Skill tool to launch `capitalize` with argument `--ritual`.
|