Skip to content
Back to skills

Closeweek

ASecurity

Weekly review — summary of accomplishments, learnings (insight-oriented), detected patterns, capitalization of recurring patterns in {USER_NAME}.md, revisit of the "À surveiller" (to watch) watchlist, and next-week outlook. Creates a note in Weekly/. Triggered when the user says "closeweek", "bilan de la semaine", "on boucle la semaine" or via `/closeweek [YYYY-WXX]`.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
businessgobashsqldockerapi

Works with

  • claude code
  • cli
  • api

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add Zoomma1/get-your-life-together --skill closeweek --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Closeweek?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Closeweek
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zoomma1-closeweek/badge)](https://www.skillsdirectory.com/skills/zoomma1-closeweek)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: closeweek
description: Weekly review — summary of accomplishments, learnings (insight-oriented), detected patterns, capitalization of recurring patterns in {USER_NAME}.md, revisit of the "À surveiller" (to watch) watchlist, and next-week outlook. Creates a note in Weekly/. Triggered when the user says "closeweek", "bilan de la semaine", "on boucle la semaine" or via `/closeweek [YYYY-WXX]`.
narrative_critical: true
---

> **⚠️ narrative-critical — Skill protected against aggressive optimization**
>
> This skill produces **qualitative narrative output**. Its effectiveness is measured by the **richness of the output produced**, not by structural compactness.
>
> **For `/evaluateskills`**: in case of mutation, **mandatory Sonnet dry-run even if delta < 2**. Do NOT apply `[LEAN]` / `[STRUCTURE]` in a way that strips the narrative instructions (grouping, context, highlights, open questions, tone, storytelling). Preserving qualitative content takes precedence over reducing line count.

# Skill: Close Week

The goal of this review is not to narrate the week but to detect patterns before they become drifts — prioritize what is actionable or revealing.

## ⚠️ Mandatory verbose feedback during execution

Announce **each step executed** as the run progresses — {USER_NAME} must see what is happening live, not wait for a black box:

```
→ Étape 1/9 : déterminer mode d'exécution (final / draft)
→ Étape 2/9 : collecter le matériau (daily notes, sessions, orthographe)
   ✓ 6 daily notes lues
   ✓ 4 sessions trouvées
   ⚠ Étape 2.4 orthographe : skip — Postgres injoignable
→ Étape 3/9 : analyser les durées réelles
   ✓ 18 tickets avec ⏱→✅ extraits
   ✓ ticket-durations.md mis à jour
→ Étape 4/9 : rédiger la note
   ⚠ Section "Bloquages & Patterns" omise — aucun pattern détecté
→ Étape 5/9 : capitalisation patterns → {USER_NAME}.md
   ⚠ Skip — aucun pattern récurrent qualifié
→ Étape 6/9 : revisite watchlist "À surveiller"
   ✓ 2 patterns watchlist relus — 1 confirmé, 1 en suspens
→ Étape 7/9 : tracker + relecture légère CLAUDE.md
→ Étape 8/9 : créer la note dans Weekly/
→ Étape 9/9 : recap chat
```

**Rule**: every sub-step skipped silently (empty orthography collection, optional sections omitted, edge cases) must have an **explicit line** stating why. A step that doesn't show up → we must see why, not guess it.

## Triggering & Reminder

**Direct invocation (spoken)**:
- {USER_NAME} says a trigger: "closeweek", "bilan de la semaine", "on boucle la semaine", "c'est quoi le bilan"
- Claude Code detects it and launches the skill automatically

**Manual invocation (command)**:
- `/closeweek` alone → processes the current ISO week (the calendar week containing today)
- `/closeweek 2026-W14` → processes a specific week (e.g. a past week for catch-up)

**Automatic reminder**:
- During `/today`: check `command-tracker.md` → if more than 7 days since the last `/closeweek`, display the message "Last closeweek: W##, N days ago. Relaunch?" (do NOT trigger closeweek automatically, just notify {USER_NAME})

---

## Step 1 — Determine the execution mode

**Compute the target week**: use the YYYY-WXX argument passed or default to the current ISO week. Derive Monday (D0) and Sunday (D6) to delimit the files to consult.

**Decide the flow based on the situation**:

| Condition | Action |
| -------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Argument is earlier than the current week (e.g. we are in W14, argument W12) | **Final mode**: create/overwrite `YYYY-WXX.md` |
| Current week (today ∈ W) AND today = Sunday | **Final mode**: create/overwrite `YYYY-WXX.md` |
| Current week (today ∈ W) AND today ≠ Sunday | **Draft mode**: create `YYYY-WXX-draft.md` with the header "*(Partial review — to be finalized on Sunday)*". Continue normally after creation. |
| Note `YYYY-WXX.md` already exists (final mode) | Display existing content. Offer {USER_NAME}: `[A] add missing elements`, `[R] fully replace`, `[C] create new version (YYYY-WXX-v2.md)`. Wait for answer. |
| Missing weeks detected (between last closeweek and target) | Display list in ascending order. Offer: `[T] process the missing weeks first` or `[S] skip and process the target week`. Wait for answer. |

**If missing weeks are validated with `[T]`**: process the oldest first (call closeweek recursively on each), then return to the target week.

---

## Step 2 — Collect the material

**Sequential reader** (in this order):

1. Read the last closeweek prior to the target in `{VAULT_PATH}\{DAILY_NOTES_FOLDER}\Weekly\` → extract open threads and recurring learnings
2. Read the daily notes of the week in `{VAULT_PATH}\{DAILY_NOTES_FOLDER}\` (files `YYYY-MM-DD.md` within the target Monday-Sunday range)
   - Extract from each note's frontmatter: `energy`, `score`, `ressenti` (if present) → store for the Energy section (Step 4)
   - **Count the week's Telegram entries** → `telegram_count`. Count the classification blocks `#### HH:MM — <type> / ...` under `### 📱 Telegram` (one block = one logged exchange; do not count raw message lines, a burst of 3 messages within a minute remains one exchange). Also store the breakdown by `<type>` (`idea` / `task` / `update` / `dump` / other). This counter is a **sensor for the extinction of the oral channel**, not a target to hit — see Step 4, Energy section.
3. Read the week's sessions in `{VAULT_PATH}\{CLAUDE_CODE_FOLDER}\Sessions\` (files `YYYY-MM-DD.md` within the target Monday-Sunday range)
   - ⚠️ **A session's timestamp is not the time of work** — it carries the time of the `/recapsession` or `/clear` that wrote it. Never infer a schedule pattern from it (evening overflow, nighttime resumption, weekly rhythm) without cross-checking against the declared state (Telegram, daily note, feeling). *(Full detail in `closeday/SKILL.md` Step 1; the "evening overflow" pattern was disproven on 27/07 on exactly this trap.)*

**Edge case: 0 daily notes found**
- Display: "0 daily notes found for W##. Proceed?"
- Offer: `[P] proceed from sessions only` or `[A] cancel review`. Wait for answer.
- If `[P]`: display "Light review (sources: sessions only)". Continue with Step 3 (duration analysis) then Step 4 (writing).

**Rank the material by observable impact**:

| Level | Definition | Action |
|--------|-----------|--------|
| **1** | Structural decision (changes orientation/organization/direction) | Always include |
| **2** | New pattern/workflow/habit detected | Always include |
| **3** | One-off achievement (contextual insight) | Include if relevant |
| **4** | Routine (no notable surprise) | Can be omitted |

**Open threads** and **recurring** learnings come to the top of the review.

**Guard against structuring projects — count the nights before ranking**: a thread that produces **2+ consecutive evening/night sessions** delivering ordered phases (Phase 0 → 1 → 2 → 3) is not a minor nighttime sub-event. It is a **structuring project**. Explicitly count the consecutive evening/night sessions on the same thread during collection; if **≥ 2 nights** → qualify the thread as a structuring project and surface it in **🔗 Connecting theme** + **💡 Learnings** (Step 4), not leave it as a flat bullet under **✅ Done**. A project built over several nights has a meaning to draw out, not just a deliverable to list.

**Guard on the {USER_NAME} side — cold re-read if validated late after a physical crash**: a closeweek validated at **22h+ after a physical crash** (fatigue, end of day crushed) = skimming, risk of missing the project qualification or a pattern. In that case, do not anchor into `{USER_NAME}.md` (Step 5) right away — propose that {USER_NAME} **re-read cold the next day** before any anchoring.

**Edge case: Empty week (no level 1-2 content)**
- Write a short, minimalist review (3-4 items). Include the line: "Stable week — few events or routines consolidated."

**If many sessions (3+ per day)**: synthesize by day or by project (e.g. "Monday: Project A setup + tests", "Wednesday: Project B + meeting"). Do not enumerate every session.

### Spelling collection

In parallel with reading the main material — result stored for Step 9.

**1. Postgres sessions** — fetch the week's sessions:
```bash
psql postgresql://claude:claude@docker-host:5432/claude_sessions \
  -t -A -F'|||' \
  -c "SELECT date, title, raw_md FROM sessions WHERE date BETWEEN '[lundi YYYY-MM-DD]' AND '[dimanche YYYY-MM-DD]' ORDER BY date, time"
```
If 0 results → ignore, continue.

**2. Daily note reflections** — extract the `## 💡 Idées & Réflexions` sections from the daily notes already read this week (the exact title from {USER_NAME}'s template). Concatenate into a single text block.

**3. Haiku agents in parallel** — launch 1 agent per session `raw_md` + 1 agent for the aggregated Reflections block. Exact prompt:
> "Identifie les fautes d'orthographe, accords incorrects ou tournures fautives en français dans ce texte. Retourne uniquement une liste JSON : [{\"erreur\": \"...\", \"correction\": \"...\", \"regle\": \"...\"}]. Maximum 5 items. Si aucune faute détectée → retourne []."

**4. Aggregate** — merge all JSON outputs, count occurrences of each error, keep the 2-3 most frequent → variable `ortho_items`.
If `ortho_items` is empty → omit silently in Step 9.

### Long-term recurrence detection (optional, silent failure)

For each **level 1-2 pattern** identified in the material (Detected patterns, Blockers):
```bash
uv run ~/.claude/semantic_search.py "<pattern en 3-5 mots>" --top-k 3 --since <lundi-4semaines>
```
If similarity ≥ 0.45 on **earlier** sessions prior to the target week → inter-week recurring pattern:
1. **Age**: date of first occurrence found
2. **What followed**: re-run `--type accompli --since <date première occurrence>` to see the follow-ups
3. **Store** in variable `pattern_recurrents`: list of `{pattern, première_date, suite}`

If Postgres/Ollama is inaccessible → `pattern_recurrents = []`, non-blocking, display: `⚠️ Recurrence detection unavailable (Postgres/Ollama down) — patterns sourced from previous closeweek only.`

---

## Step 3 — Analyze the actual durations

**Why**: since the `/workon` patch of 2026-05-03, each ticket carries `⏱ HH:mm→HH:mm ✅` in the daily note. These observed durations calibrate future estimates in `/today` (which reads `ticket-durations.md` at each plan generation). Without this step, `/today` stays on rough guesses (45min by default).

**Source**: the daily notes of the week already read in Step 2.2. Do not reload — reuse the content in memory.

### 3.1 — Extract the durations

For each daily note of the week, parse the checked lines with start and end timestamps:

- **Pattern**: `- [x] ... ⏱ (\d{2}:\d{2})→(\d{2}:\d{2}) ✅`
- **Cross-midnight**: if end < start (e.g. `⏱ 23:45→00:30`) → add 24h to the end before subtracting. Duration = 45min, not -23h15.
- **Duration**: `(end - start)` in minutes.

Ignore lines without the `→` arrow (old formats `⏱ HH:mm` alone or `✅ HH:mm` separated) — no extractable duration, do not attempt to infer it.

### 3.2 — Classify by type

For each extracted ticket, determine its type from the `[[NomTicket]]` link and the context of the line:

| Type | Detection signals |
|------|---------------------|
| **CC maintenance** | Ticket in `99 - Claude Code/Claude Code Kanban.md` — hook patch, config, lessons, cleanup |
| **CC skill** | Ticket in `99 - Claude Code/Claude Code Kanban.md` — creation or overhaul of a skill |
| **[project-A]** | Ticket in `04 - Projects/[Project-Name]/` |
| **[example-project]** | Ticket in `04 - Projects/[example-project]/` or slug starts with `example-project-` |
| **GYLT** | Ticket in `04 - Projects/Get Your Life Together/` or slug starts with `gylt-` |
| **Personal practical** | Section `### 🎯 Perso` outside dev projects (admin, groceries, tidying) |
| **Hobby** | Section `### 🎨 Hobby` |
| **Vault maintenance** | Section `### 🔄 Maintenance vault` (vault commands `/harvest`, `/link`, etc.) |

If a ticket clearly matches no category → type `Other`. Do not invent a subtype.

### 3.3 — Compute stats by type

For each type represented this week:
- **Ticket count**: number of entries
- **Mean**: sum of durations / ticket count
- **Median**: sort ascending + central value (or the average of the 2 central values if the count is even)
- **Min / Max**: extremes observed this week

Format durations as `Xmin` if < 60min, otherwise `XhYmin` (e.g. `1h20`, `45min`, `2h`).

### 3.4 — Update `ticket-durations.md`

Path: `{VAULT_PATH}/{CLAUDE_CODE_FOLDER}/ticket-durations.md`

**If the file does not exist** → create it with the header and initial table.

**If the file exists** → do not overwrite. Merge:
1. Read the existing table (historical types)
2. For each type present this week: recompute the **cumulative** stats (history + new tickets) — `ticket-durations.md` keeps individual tickets at the end of the file, re-read them to recompute.
3. For types not touched this week: keep as they are
4. Append the section "Tickets individuels (semaine WXX)" at the end of the file (raw history, never purged)

**Format**:
```markdown
# Durées réelles tickets

*Mis à jour le YYYY-MM-DD (closeweek W##)*

Données calibrées à partir des tickets `⏱→✅` des daily notes depuis 2026-05-03.

| Type | Nb tickets | Moyenne | Médiane | Min | Max |
|------|-----------|---------|---------|-----|-----|
| CC maintenance | 12 | 28min | 25min | 10min | 45min |
| CC skill | 5 | 52min | 45min | 30min | 1h20 |
| Perso pratique | 4 | 1h45 | 1h45 | 1h30 | 2h |
| ...

## Tickets individuels

### Semaine W18 (2026-04-27 → 2026-05-03)
- 2026-04-28 — [[ticket-x]] — 32min — CC maintenance
- ...

### Semaine W19 (2026-05-04 → 2026-05-10)
- ...
```

### 3.5 — Edge cases

- **No ticket with `⏱→✅` this week**: do not touch `ticket-durations.md`. Log in verbose feedback: `⚠ No timestamped ticket this week — skip ticket-durations.md update`
- **Type with < 3 tickets cumulatively**: keep the row in the table, but it is `/today` that will detect the insufficiency (signal "insufficient data for [type]" on the `/today` side, not here)
- **`ticket-durations.md` corrupted (parse failure)**: do not overwrite. Log `⚠ ticket-durations.md unreadable — skip update. Rebuild manually.` Continue the rest of the closeweek.

---

## Step 4 — Write the note

**Template**:

```markdown
# Semaine WXX — YYYY
*Du [lundi JJ/MM] au [dimanche JJ/MM]*
*[Bilan partiel — à finaliser dimanche]* ← ajouter si mode draft

## Continuité depuis la semaine précédente
[Threads non clos, apprentissages récurrents issus W-1]
← Omettre cette section si aucun fil à poursuivre

## ✅ Réalisé
- ...

## 💡 Apprentissages
*Formuler en "X révèle que...", "X signifie que..." — pas de récap factuel brut.*
- ...

## 🔁 Bloquages & Patterns
*Ce qui a fonctionné, ce qui a bloqué, patterns émergents.*
- Fonctionnement : ...
- Blocage : ...
- Pattern détecté : ...
  *Si pattern récurrent (variable `pattern_recurrents`) :*
  `→ Récurrent depuis YYYY-MM-DD — suite observée : [ce qui en a découlé, 1 phrase]`
← Omettre entièrement si aucun blocage/pattern cette semaine

## 🔗 Thème connecteur
*Meta-pattern reliant réalisations/blocages en 1 phrase.*
← Omettre si absent

## 🔋 Énergie de la semaine
| Jour | Énergie | Score | Ressenti |
|------|---------|-------|---------|
| Lun | [X]/5 | [X]/5 | *[ressenti]* |
| Mar | ... | ... | ... |
| Mer | ... | ... | ... |
| Jeu | ... | ... | ... |
| Ven | ... | ... | ... |
| Sam | ... | ... | ... |
| Dim | ... | ... | ... |
← Omettre les jours sans daily note. Omettre la colonne Score ou Ressenti si aucune daily note de la semaine ne contient ce champ.

**📱 Canal oral — [telegram_count] entrées cette semaine** *(répartition : idea X · task X · update X · dump X)*
← Une ligne, toujours présente dès qu'au moins une daily note a été lue. Reporter aussi le compte des **2 semaines précédentes** s'il figure dans leurs notes Weekly, sous la forme `W28 8 · W29 5 · W30 2`.

**Pourquoi ce compteur existe** : Telegram est le seul canal du vault qui capte de l'**oral** — ce qu'on a dit à {USER_NAME}, un retour de réunion, un ressenti à chaud. Tout le reste du vault capte ce qu'il **produit**. Le mode d'échec d'une habitude de capture orale est le **silence**, et un silence ressemble exactement à une semaine calme : l'habitude `#ecriture` est morte début juillet 2026 (13 cochées en juin, 0 en juillet) sans qu'aucun closeday, closeweek ou portrait ne le voie. Le compteur rend l'extinction visible en semaines au lieu de mois.

**Lecture — ne pas transformer en objectif** :
- Un chiffre bas sur une semaine **off, en congés, ou sans réunion** n'est pas un signal. Le canal suit la charge sociale, pas une quantité cible.
- **Signal à remonter en `🔁 Bloquages & Patterns`** : décroissance monotone sur **3 semaines consécutives** avec ≥ 3 jours de `work_hours > 5` chacune, **ou** un `telegram_count = 0` sur une semaine ouvrée pleine.
- Ne jamais proposer de « rattraper » les entrées manquantes ni créer un ticket de relance automatique. Le geste appartient à {USER_NAME} (arbitrage du 27/07 : *« le travail à faire c'est sur moi-même »*) — le rôle du closeweek s'arrête à ne pas mentir sur le résultat.

## ➡️ Semaine suivante
- ...
← Omettre si vide

← Omettre entièrement si niveau 0
```

**Writing rules**:
- Optional sections (Continuity, Blockers & Patterns, Connecting theme, Next week): omit **silently** if empty — never leave a section title empty
- Insight > recap: each point must imply something for what follows
- Little content (< 3 items total): short review + explain why (e.g. "Stable week — few events")

---

## Step 5 — Capitalize patterns → {USER_NAME}.md

**Goal**: anchor the recurring patterns detected this week in `01 - Me/{USER_NAME}.md §Patterns observés` — without waiting for the monthly review.

**Eligibility criterion**: a pattern is proposed for anchoring if **at least one** of these conditions is true:
- Present in `pattern_recurrents` (Step 2 variable — inter-week semantic recurrence with similarity ≥ 0.45)
- Mentioned in ≥ 2 distinct daily notes of the week (close formulations even if not identical)
- Linked to an open thread resumed from W-1 or W-2 (continuity observed over 3 weeks)

**If no pattern qualifies** → skip silently, verbose line: `⚠ Skip — no qualifying recurring pattern`. Go to Step 6.

⚠️ **External cause filter — to run BEFORE proposing an anchor.** A pattern qualified by the criteria above is an **observed regularity**, not yet a trait of {USER_NAME}. For each one, ask: *what external cause would produce exactly this series?* — season, a third party's vacation, client load, hardware unavailability, time of year.
- If a plausible external cause exists → **do not anchor**. Reformulate the pattern naming the cause, and set its **re-test condition** ("if the gap holds once the clients are back, only then is it a signal").
- If you looked for it and did not find it → write that in the anchoring proposal, so that {USER_NAME} knows the check took place.

This is where the stakes are highest: `{USER_NAME}.md` is read by all planning skills. An anchored situational regularity becomes a character trait that subsequent reviews will confirm **by construction**. *(Case: 2026-08-10, "fifth day in a row where the team tooling carries the review in front of the Run" — refuted by {USER_NAME} in one sentence: "lots of clients are on vacation". It was August. Cf. `/closeday` Step 2.1, same guard on the daily side.)*

**If patterns qualify**:

1. Read `{VAULT_PATH}\{PERSONAL_FOLDER}\{USER_NAME}.md` — locate the most recent `### Patterns observés` section (by date).
2. Present to {USER_NAME}:

```
Patterns récurrents qualifiés cette semaine :

1. [Pattern court — 1 phrase]
   Occurrences : [daily YYYY-MM-DD, daily YYYY-MM-DD, pattern_recurrents depuis YYYY-MM-DD]
   Proposition d'ancrage dans {USER_NAME}.md §Patterns observés (mois courant) :
   → "[Formulation proposée, 2-3 phrases avec sources datées]"

2. [Pattern 2 — ...]
```

3. Wait for {USER_NAME}'s validation for each pattern. Accept: "1", "all", "1 and 3", "yes", "ok". Refuse: "no", "skip", silence/timeout (45s) → skip this pattern.
4. For each validated pattern:
   - If section `### Patterns observés ([mois courant])` exists → add the bullet under this section
   - Otherwise → create the section `### Patterns observés (closeweek W## — YYYY-MM)` at the top of the Patterns area (before the existing monthly sections)
   - Bullet format: `- **[Pattern court]** — [Description, 2-3 phrases with dated sources]. Pattern à surveiller : [optional — falsification condition or next check]`
5. **Always pair-programming**: no writing without explicit validation. Global refusal ("no", "skip all") → write nothing, verbose line `⚠ Proposed patterns refused — no anchoring in {USER_NAME}.md`.

**If {USER_NAME}.md is missing/unreadable** → display `⚠ {USER_NAME}.md inaccessible — pattern capitalization postponed`, do not block the rest of the skill.

---

## Step 6 — Revisit the "À surveiller" watchlist

**Goal**: revisit the patterns marked `À surveiller` in `{USER_NAME}.md` — confirm, refute, or leave pending. Prevents the watchlist from growing without ever being settled.

**Source**: `{VAULT_PATH}\{PERSONAL_FOLDER}\{USER_NAME}.md`

**Detection**: grep bullets containing one of these formulations:
- `Pattern à surveiller`
- `À surveiller :`
- `à surveiller —`
- `À surveiller post-`
- `À surveiller au retour`

(Case-insensitive. Catch variants while staying strict on the word "surveiller".)

> ⛔ **Filter struck-through Markdown BEFORE counting.** A pattern already settled stays written in `{USER_NAME}.md` in struck-through form (`~~…~~`) — that is its historical trace, not an active item. A naive `grep` on "surveiller" counts them all, and the watchlist presented to {USER_NAME} swells with lines **already dead**, which he must settle again one by one.
> The move: exclude any line whose carrying segment is wrapped in `~~`, or use an instrument that distinguishes **active / refuted / confirmed** through the syntax of the watchlist — never by the mere presence of the keyword.
> ⚠️ The failure mode is silent and reassuring: an inflated count *looks like* a living watchlist.
> *(Case: 2026-08-31, closeweek W35 — **9 patterns announced as active, 3 real**. Bug caught mid-execution.)*

**If watchlist empty** → skip silently, verbose line: `⚠ Skip — watchlist empty`. Go to Step 7.

**If watchlist not empty**:

1. For each pattern in the watchlist, present to {USER_NAME}:

```
Watchlist patterns "À surveiller" — relecture W## :

1. [Pattern court extrait du bullet]
   Source : {USER_NAME}.md §[section] (ancré YYYY-MM-DD ou estimation depuis le contexte du bullet)
   Question : confirmé / infirmé / encore en suspens / déjà tranché ailleurs ?

2. [...]
```

2. Wait for an answer per pattern. Accept: "1 confirmed", "2 pending", "1 refuted, 2 settled", "all pending". Refuse: silence/timeout (60s) → treat all unanswered as "pending".

3. Depending on the answer:
   - **Confirmed** → propose editing the bullet: remove the "À surveiller" mention and add `Confirmé YYYY-MM-DD (closeweek W##)`. Wait for OK before editing.
   - **Refuted** → propose 2 options: `[R] remove the bullet entirely` or `[A] archive the pattern with the mention "Infirmé YYYY-MM-DD (closeweek W##) — [short reason]"`. Wait for choice before editing.
   - **Pending** → do nothing. The bullet stays as is, and will be re-proposed at the next closeweek.
   - **Settled elsewhere** → ask where (other essay, ADR, [[wiki link]]), propose removing the "À surveiller" mention + adding `Tranché dans [[lien]] YYYY-MM-DD`. Wait for OK.

4. **Strict pair-programming**: each edit to {USER_NAME}.md waits for explicit validation. Refusal → keep as is, note in the verbose `⚠ Pattern N: edit refused`.

**If {USER_NAME}.md is missing/unreadable** → display `⚠ {USER_NAME}.md inaccessible — watchlist not revisited`, do not block.

---

## Step 7 — Tracker + light CLAUDE.md review

**Action 1: Update command-tracker.md BEFORE creating the note**

Read `{VAULT_PATH}\{CLAUDE_CODE_FOLDER}\command-tracker.md`. Add or update the line:
```
/closeweek [YYYY-WXX] → exécuté [YYYY-MM-DD HH:MM]
```

**Action 2: Light review of the global CLAUDE.md** *(advisory, weekly)*

Quickly re-read `~/.claude/CLAUDE.md` (= `99 - Claude Code/CLAUDE.md`) + `99 - Claude Code/vault-context.md`. Spot any rule that is **obsolete, redundant, or misplaced** according to the routing rule: stays in CLAUDE.md = always active in all contexts; otherwise → hook (event), skill (invocation), or project context.

- Nothing to report → verbose line `✓ CLAUDE.md reviewed — nothing to flag`.
- Drift spotted → report it to {USER_NAME} in Step 9 (recap), **change nothing** (pair-programming). For a deep pass, suggest {USER_NAME} create a one-off ticket (reference: `passe-claude-md-inspiration-karpathy-maintenance-reguliere`, archived).
- **Deep pass: triggered by event, not by cadence**: drift confirmed by this review, or a major model update. No `claude-md-pass` line in `command-tracker.md` (removed on 2026-10-20: the 90-day cadence did not describe actual practice, cf. `creer-skill-claude-md-pass`).

**Action 3: `lessons.md` distillation nudge** *(advisory, weekly)*

`lessons.md` is injected **at every prompt** by the `lessons-loader` hook; it is a buffer, not an archive. Count the lessons: `grep -c '^- \*\*' "99 - Claude Code/lessons.md"`. If **> 20 lessons** (re-bloat threshold) → report to {USER_NAME} in Step 9 (recap): *"`lessons.md` = N lessons, above the threshold. Run `/lessons-distill` to route the stabilized lessons to their home (SKILL.md / CLAUDE.md / ADR / Knowledge / prune)."* **Do not run the distillation during closeweek** (heavy pass) — just the nudge. Under the threshold → verbose line `✓ lessons.md under the threshold (N lessons) — no nudge`. See [[passe-distillation-lessons-md-graduer-foyer]].

Implicit confirmation: if reading + writing succeed, continue to Step 8.

---

## Step 8 — Create the note

**Final path**: `{VAULT_PATH}\{DAILY_NOTES_FOLDER}\Weekly\YYYY-WXX.md` or `YYYY-WXX-draft.md` depending on the mode (Step 1)

**Generate the note** with the content written (Step 4).

**Success signal to {USER_NAME}**:
- Display the direct link to the created note
- Message: "Week W## review created" (or "draft created — to finalize on Sunday")

---

## Step 9 — Chat recap

After creating the note, display directly in the chat (not in the note):

**1. Narrative recap of the week** — 3-5 lines max, oriented toward meaning and movement, not a task list. Include the connecting theme if present.

**2. Next-week priorities table** — format:

| Priority | Topic |
|----------|-------|
| 🔴 Urgent/blocking | ... |
| 🟠 Important | ... |
| 🟡 To advance if possible | ... |

Source the priorities from the `➡️ Semaine suivante` section of the note + open threads detected in Step 2.

**4. Spelling** (if `ortho_items` is not empty):

```
### ✍️ Orthographe — cette semaine
- "erreur observée" → correction (règle en 1 phrase)
```

Maximum 3 items. Neutral, factual tone. Omit silently if `ortho_items` is empty.

**Rule**: the chat recap is always displayed, even in draft mode.

---

## Draft → final conversion

**Sunday after 23:59** (or {USER_NAME}'s review earlier):

Run `/closeweek 2026-W14` on the same week. The system detects the existing draft (Step 1, condition 4). {USER_NAME} chooses `[R] fully replace` → the new writing replaces the draft.

Alternatively, {USER_NAME} can relaunch on Wednesday and choose `[A] add missing` to enrich the draft, then relaunch on Sunday with `[R]`.

---

## Absolute rules

- **{USER_NAME}.md capitalization**: this skill proposes the anchoring of recurring patterns (Step 5) and the revisit of the watchlist (Step 6). The monthly review (`/closemonth`) remains responsible for deep consolidation (patterns ≥ 3 occurrences, section overhaul). Weekly capitalizes as it goes, monthly synthesizes.
- No writing to `01 - Me/{USER_NAME}.md` without explicit validation from {USER_NAME} — always present the proposal before editing
- Process one week at a time if several weeks are overdue — propose the order (Step 1, condition 5)
- Insight > recap: value = what the week implies, not what it contains

---

## Edge cases — Resolution

| Scenario | Response |
|----------|----------|
| Launched Monday–Saturday of the current week | Draft mode (Step 1). Note `YYYY-WXX-draft.md` created. Signal: "To finalize on Sunday: `/closeweek` or `/closeweek YYYY-WXX` → `[R]`". |
| 0 daily notes for the week | Step 2: display the `[P]/[A]` choice. If `[P]`: message "Light review (sessions only)". Continue. |
| ISO calendar spanning 2 months (e.g. W13 = Mar–Apr) | Use ISO W13, mention the date range in the header (e.g. "Du 24/03 au 30/03"). |
| Existing draft for the target week | Step 1, condition 4: offer `[A]/[R]/[C]`. Wait for answer before continuing. |
| command-tracker.md missing/broken | Infer from file creation dates: list all `YYYY-WXX.md` in `Weekly/`, extract MAX(modification date), deduce the current W. Display "Tracker missing — reconstruction based on files. Continue?" Wait for confirmation. |
| ISO calculation error (invalid dates) | Display: "Cannot compute ISO week for [argument]. Check the YYYY-WXX format or the date argument. Retry?" Wait for a new argument. |
| No level 1-2 content (empty week) | Write a short minimalist review (3-4 items) + the line "Stable week — few events or routines consolidated." |

---

## Pair-programming

- No autonomous action: every decision (final/draft mode, handling of missing weeks, 0-daily-notes procedure) waits for explicit validation from {USER_NAME}
- Tracker before note: the `command-tracker.md` update happens first (Step 7), before note creation (Step 8)
- Proposed choices are clear and contextualized: never "Continue?" without an explicit option

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in business →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.