Generate or update the day's plan — agenda adapted to energy, calendar constraints, work/personal/hobby hours and recent feedback. Reads daily notes, sessions, project kanbans, ICS calendar and mail webhook. Trigger when the user says "today", "/today", "plan du jour", "qu'est-ce que je fais aujourd'hui", "génère mon plan", "je commence quoi", or at the start of the day. Adapts automatically to the time of day (morning = full plan, afternoon = refocused, evening = light).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Today?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/zoomma1-today)
---
name: today
description: Generate or update the day's plan — agenda adapted to energy, calendar constraints, work/personal/hobby hours and recent feedback. Reads daily notes, sessions, project kanbans, ICS calendar and mail webhook. Trigger when the user says "today", "/today", "plan du jour", "qu'est-ce que je fais aujourd'hui", "génère mon plan", "je commence quoi", or at the start of the day. Adapts automatically to the time of day (morning = full plan, afternoon = refocused, evening = light).
narrative_critical: true
---
> **⚠️ narrative-critical — Skill protected against aggressive optimization**
>
> This skill produces a **qualitative narrative** output. Its effectiveness is measured by the **richness of the output produced**, not by structural compactness.
>
> **For `/evaluateskills`**: in case of mutation, **a Sonnet dry-run is mandatory even if delta < 2**. Do NOT apply `[LEAN]` / `[STRUCTURE]` in a way that strips the narrative instructions (grouping, context, highlights, open questions, tone, narration). Preserving qualitative content takes priority over reducing line count.
**Triggers the day's plan** — Generates an agenda adapted to energy, constraints and priorities.
**Invocation**: `/today` at any time of day (before 12:00 = full plan, 12:00-17:00 = refocused plan, after 17:00 = light plan).
**Example scenario**: {USER_NAME} calls `/today` at 14:45, with a meeting at 15:30 (45 min away). The skill detects the short window, displays "⚡ Micro-session (< 0.5h)", proposes 1 light task + the WIP in progress, then asks for the next action after the meeting.
## Preamble — Initialize the variables
Before any step, initialize these control variables to avoid undefined values when read:
```
HEURE_LANCEMENT = null
FENETRE_MIN = Infinity
FENETRE_COURTE = false
CALENDAR_FAILED = false
MAIL_FAILED = false
FIRST_SESSION_TODAY = false
MAINTENANCE_OVERDUE = false
NB_EXPLO_READY = 0
EXPLO_OVERFLOW = false
STRANGER_VETO = false
DURATIONS_REF = {}
```
---
## Step 0 — Tech watch digest (conditional, non-blocking)
Check whether today's daily note already contains a `## 📰 Digest` section:
- If **yes** → skip (digest already collected)
- If **no** → show in the plan: `⚠️ No digest — run /digest in a dedicated session if you want a digest today` and continue without blocking
> **Why a dedicated session**: `/digest` + `/research-scout` spawns 9 parallel agents (~30-45 API calls). Run in the same session as `/today`, it consumes ~70% of the 5h quota. Recommended workflow: run `/digest` in the evening with `/closeday` → the digest is ready the next morning.
---
## Step 1 — Trigger time + Focus of the day
**Get the current time**: run `date +"%H:%M"` (bash). Store as `HEURE_LANCEMENT` (e.g. "09:15").
Use `HEURE_LANCEMENT` to adapt the plan:
- **Morning (before 12:00)** → full plan, normal windows
- **Afternoon (12:00–17:00)** → flag the morning's tasks as missed if they no longer make sense later, refocus on what can still be done today
- **Evening (after 17:00)** → light plan, favor short or hobby tasks, no deep work — flag *"Evening — light plan"*
Display `HEURE_LANCEMENT` in the header of the final plan (Step 5 template).
---
**Focus of the day**
If today's daily note already exists with a `## 📅 Plan du jour` section **and that section contains checkable tasks** (at least one checkbox `- [ ]` in a subsection other than `### 📅 Agenda`, e.g. `### 💼 Travail`) → use the implicit focus of the existing plan and go directly to the Step 6 tracking.
Otherwise (section absent or containing only the agenda), ask {USER_NAME}: *"Do you have a particular wish about what to work on today?"* — wait for the answer with a short timeout.
- If an answer is received → use it as a constraint and make it priority 1 of the suggestions (Step 4)
- If silence (timeout ~5s) → continue without explicit focus (fallback: propose the WIPs and let {USER_NAME} validate in Step 5)
---
## Step 2 — Read the context
Steps 2.0 to 2.12 are executed **in parallel** (no inter-step dependencies). Launch 2.0 (Calendar) and 2.12 (Mail) in the background if their sources are remote/slow. Steps 2.1–2.11 (local vault reads) wait for nothing — launch them immediately. Complete all reads before Step 2.13.
**2.0 — Calendar** — Check that `{VAULT_PATH}/{CLAUDE_CODE_FOLDER}/config/calendar-url.md` exists. If not, note "Calendar not configured" and continue without blocking. **⚠️ Casing**: the real folder is `99 - Claude Code` (capital C) — this is the value in `vault-settings.md`. macOS tolerates casing, **Linux is case-sensitive** → always use `99 - Claude Code` exactly.
**Never read ICS files with `WebFetch`.** Run the skill's script, which does all the fetching, parsing, recurrence expansion and timezone conversion:
```bash
python3 ~/.claude/skills/today/scripts/fetch-calendar.py \
"{VAULT_PATH}/{CLAUDE_CODE_FOLDER}/config/calendar-url.md" \
--start YYYY-MM-DD --days 8
```
> ⛔ **Why not `WebFetch`** — it converts the resource to markdown, **truncates** it, and has a small model answer on the remaining fragment. The [employer] ICS is **2.28 MB / 841 VEVENT**: on 04/08/2026, `WebFetch` returned **2 events instead of 37**, both outside the requested window, with no error signal whatsoever. It is not intermittent, it is deterministic and proportional to the file size. Full diagnosis: [[investiguer-webfetch-calendriers-fetch-incomplet]].
**The script guarantees** (do not redo it by hand): `RRULE` expansion, reconciliation of `RECURRENCE-ID` (moved occurrence) and `EXDATE` (cancelled occurrence), exclusion of `STATUS:CANCELLED`, conversion of all timezones — IANA, Windows Outlook names, `Z` UTC, `VALUE=DATE` — to `Europe/Paris`, deduplication, sorting.
**Privacy**: the script **never** emits `DESCRIPTION` nor URLs — URLs are tokens (ADR-004). The "title only" rule is therefore structural, there is nothing left to filter downstream.
**Output**: a block `## <source name> — N events [N VEVENT read, N recurring series]`, then one line per event in the format `DD/MM HH:MM Title` (or `DD/MM (all day) Title`).
**If `exit 0`**:
- Split the events into `EVENTS_TODAY` (current day) and `EVENTS_FUTURE` (the following 7 days).
- If `EVENTS_TODAY` is empty → do not report "empty agenda", continue normally.
- **Compute `FENETRE_MIN`**: for each fixed-time event today not yet past (event time > HEURE_LANCEMENT), `window_minutes = (event_time - HEURE_LANCEMENT)`. Keep the minimum (stays `Infinity` if no upcoming event).
- **Decode imminent messages**:
* Event within the next 3 days containing `rendu|deadline|remise|livraison|dossier|exam|soutenance` → `DEADLINE_SIGNALED = true`
* Event today or tomorrow containing `réunion|présentation|entretien|soutenance|meeting` → plan a context task "Prepare summary"
* Event containing `vacances|congés|absent|PTO` → **check whether the named person has a deadline in a ticket** (kanbans read in 2.7/2.9). A stakeholder on leave for a deadline moves the real window, not the deadline. *(Cause: 04/08/2026, `Vacances [colleague] 08→10/08` invisible while THEO-43 carried "to build with [colleague] ~10/08".)*
- **[recurring-meeting] exclusion**: the recurring event `[recurring-meeting]` does not include {USER_NAME} — exclude it from `EVENTS_TODAY` / `EVENTS_FUTURE` and never count it in the [employer] plans or windows. The script filters nothing business-related, this is where it is done.
**If `exit ≠ 0`** → `CALENDAR_FAILED = true`, `EVENTS_TODAY`/`EVENTS_FUTURE` empty, `FENETRE_MIN` set to `Infinity`. Signal to {USER_NAME} in Step 5. The script exits with an error on: unreadable config, no reachable source, **0 events across all sources** (suspicious, never interpreted as a free agenda), or a partially failed source (`exit 2`, agenda potentially incomplete).
**Never copy yesterday's agenda on failure.** Display that the calendar is unavailable. An agenda reused from yesterday reads like today's agenda and makes meetings get missed — this happened on 03 and 04/08/2026.
⚠️ **Known limitation**: a multi-day all-day event only appears on its start date (the script reads `DTSTART`, not `DTEND`).
**2.1 — Today's daily note**
Read `{VAULT_PATH}\{DAILY_NOTES_FOLDER}\YYYY-MM-DD.md` (today's date). If it does not exist → create it with this minimal template (do not write beyond the frontmatter):
```yaml
---
date: YYYY-MM-DD
energy:
work_hours:
personal_hours:
hobby_hours:
---
```
Remember the frontmatter content for Step 3 (extract energy, hours).
**2.2 — Yesterday's daily note**
Look for the section `## 🌙 Bilan du jour` in yesterday's note. If absent → flag at the top of the plan: `⚠️ Yesterday not closed — run \`/closeyesterday\` before starting`
Also look for the section `## 📅 Plan du jour` in yesterday's note. Extract all `- [ ]` lines present in the plan's subsections (Perso, Travail, Hobby — not Agenda nor Raffinement). Store as `TACHES_NON_COCHEES_J1`. If the section is absent or empty → `TACHES_NON_COCHEES_J1 = []`.
Also scan the **Tomorrow** section of the J-1 wrap-up: pull out the code/dev WIPs listed there (separate note if background/passive supervision — see Step 4.1 — active task otherwise). Do not rely only on the kanbans: a code WIP may exist only in this section.
**2.3 — Commitment scan**
Look for patterns in the daily notes (today, yesterday, the day before if available) indicating an untracked commitment:
- Patterns: lines containing `(je vais|j'ai dit|à faire|je dois|promis)` in lowercase, NOT preceded by `[x]` (checked) and NOT mentioned in a kanban in WIP/Done
- For each match → extract the full text (the line up to the `\n`)
- Classify as Perso (personal/hobby/dev mentions) or Travail (professional/work project mentions)
- Surface as a task carried over in Step 4 with source = originating note
**2.4 — Last session**
List all files in `{VAULT_PATH}\{CLAUDE_CODE_FOLDER}\Sessions\` and sort by date descending.
- If the most recent file is dated before today → set `FIRST_SESSION_TODAY = true`
- If the most recent file is dated today → read it to know the next step and the state at the end of the previous session
**2.5 — Inbox**
Read `{VAULT_PATH}\{INBOX_FOLDER}\` — list the notes present
**2.6 — Active projects**
Read `{VAULT_PATH}\{PROJECTS_FOLDER}\INDEX.md` for the active projects
**2.7 — Project kanbans**
For each active project, read its Kanban. Note the **WIP**, **Ready**, **Blocked** and **Idea** tickets.
- For each **Ready** or **Idea** ticket with an associated note (`[[TicketName]]`) → read the note
- **Dependency rule**: before suggesting a ticket, check its `### Dépendances` section — if "Bloqué par : [[X]]" and X is not Done → propose X instead
**2.8 — Hobby Kanban**
Read `{VAULT_PATH}\{HOBBIES_FOLDER}\Hobby Kanban.md` — note the **WIP** and **Ready** tickets. Ignored categories (#warhammer, #guitare, #3d, #jdr) since they live in the ticket notes, not in the kanban.
> **Rule: checked box = WIP, not done**: a `[x]` checkbox in the hobby kanban signals **partial progress** (painting in progress, step passed), **never** a finished task/figure. Never infer that a hobby item is finished from a checked checkbox — it stays WIP until {USER_NAME} explicitly confirms it.
**2.9 — Special kanbans**
Read and note **WIP**, **Ready**, **Blocked** and **Idea** in:
- `{VAULT_PATH}\{CLAUDE_CODE_FOLDER}\Claude Code Kanban.md`
For each **Idea** ticket with a note → read the note.
**Counting the explos in Ready** (feeds the `/triage-explo` nudge of the Vault maintenance section, Step 5) — done here because this is the only point of the skill where the Ready column of the CC Kanban is at hand:
- Go through the `## Ready` column of the CC Kanban (section between `## Ready` and the next `## ` heading whatever it is — do not hard-code the following column, the column order moves). A ticket counts as **explo** if one of these signals is true. **Heuristic taken as-is from `~/.claude/skills/triage-explo/SKILL.md` Step 1, source of truth; do not write a second definition here**:
* its slug starts with `explorer-` or `investiguer-`;
* its label/description frames a deliverable of the type "read an external tool/repo/article → **Knowledge note + verdict** (adopt / inspire / skip)", even without the prefix.
- Discard the noise (not explos): essays (`📝`), bugs (`🐛`), dev features, refactors, personal tasks.
- Store the total in `NB_EXPLO_READY`. If `NB_EXPLO_READY >= 12` → `EXPLO_OVERFLOW = true`.
- ⚠️ `EXPLO_OVERFLOW` is **strictly decoupled** from `MAINTENANCE_OVERDUE`: it is a soft nudge, not an overdue command. It never makes the Vault maintenance section non-droppable and never promotes the guard.
**2.10 — ADHD profile**
Read `{VAULT_PATH}\{PERSONAL_FOLDER}\{USER_NAME}.md` — markdown section "Mode de travail et énergie" to extract the suggested adaptations (e.g. "one task at a time", "no context switching"). Use these preferences to adapt the pool composition in Step 4.
**2.11 — Vault maintenance**
Read `{VAULT_PATH}\{CLAUDE_CODE_FOLDER}\command-tracker.md` if it exists. For each command, compare `last_run + frequency` against today's date:
- If overdue → note for Step 4 (section 🔄 Maintenance vault)
- Automatically exclude: `/essay-check` (post-session hook, handled by `/closeday`), `/my-world` (management already integrated in Step 4.0)
- Special context: suggest `/closeweek` if today is Sunday or Monday, `/closemonth` if today is the 1st of the month
- Missing file → continue without signal (new vault)
- **Non-droppable guard**: if at least one command is overdue → `MAINTENANCE_OVERDUE = true`. The `🔄 Maintenance vault` section is mandatory in the final plan if `MAINTENANCE_OVERDUE = true`, whatever the budget or the load of the plan. Never drop it silently — it is the only safeguard against the cluster effect (everything overdue at once a week later).
- ⚠️ **`/stranger` exception**: if `STRANGER_VETO = true` (computed below), `/stranger` is **excluded from this count** — it never promotes `MAINTENANCE_OVERDUE` to `true`. If it is the only overdue command of the day, the guard stays `false` and the section is not made mandatory.
**Health veto — applies to `/stranger` only**
If `/stranger` is overdue, evaluate `STRANGER_VETO` **before** adding it to the section:
- Go back through the daily notes for **7 calendar days max**, collect the **first 2 non-empty `score` values** from the frontmatter
- `STRANGER_VETO = true` if (the 2 collected values are both `≤ 3`) **OR** (the J-1 daily note has `energy ≤ 2`)
- **Fail-open**: if fewer than 2 `score` values are found within the window, or J-1 is absent → `STRANGER_VETO = false`. Missing data **never** blocks. The veto is a safety net, not an authorization.
- The veto applies to **no other command** of the tracker.
**Effect on display**:
- `STRANGER_VETO = false` → the line is displayed **bare**: `- [ ] /stranger — last: [date] (+[X]d)`
- `STRANGER_VETO = true` → the line **is not written** (and the guard ignores it, see the exception above)
**Anti-silent-postponement guard** — without it, the veto turns a *noisy* debt into an *invisible* debt:
- If `/stranger` has been overdue for **more than 15 days** **AND** `STRANGER_VETO = true`, write in the Vault maintenance section a **signal** line, not a task:
`🩺 /stranger hidden by the health veto for [X] days — last run: [date]`
- This line is **outside the non-droppable guard** (it never sets `MAINTENANCE_OVERDUE` to `true`), in the same way as the `/triage-explo` nudge.
> ⚠️ **The `/stranger` line is written bare.** Never attach a conditional mention to it ("outside stress", "outside periods of stress", "if the day allows it", "not recommended today"…), **even if the `description` of the `/stranger` skill states one** — this guard is already carried by `STRANGER_VETO`, copying it into the plan makes it unevaluable and manufactures a ghost debt. Either the veto is wrong and the line shows without comment, or it is true and the line does not exist.
>
> *(Cause: 6 consecutive postponements between the 19th and the 27th of July, the mention "outside stress only" copied every day without ever being evaluated. It is stored nowhere in this file — it is **regenerated** from the `description` of `/stranger`, hence the explicit ban. Cf. [[09 - Inbox/tickets/trancher-gate-stranger-hors-stress]].)*
**2.12 — Mail (n8n)**
Check n8n and the mail-analysis webhook (bash/WSL2) — initialize `MAIL_SECTION = ""` before starting:
> ✅ **n8n is addressed by the stable MagicDNS hostname `docker-host`** (resolves across the whole tailnet, survives a node recreation — never a hard-coded Tailscale IP here again). If the curl fails, check `tailscale status` before concluding "machine down".
- Check that n8n is reachable: run `curl -s --max-time 3 -o /dev/null -w "%{http_code}" http://docker-host:5678/`
- If not 200 → `MAIL_FAILED = true` + report `⚠️ n8n unreachable (docker-host)` to {USER_NAME} in Step 5, continue without mails
- Call the webhook with a timeout (30s for retrieval + rendering): run `curl -s -m 30 "http://docker-host:5678/webhook/mail-analysis"`
- Parse the response:
* If the response is JSON with a non-empty `.markdown` key → store the text content in `MAIL_SECTION`
* If the response is JSON but `.markdown` is absent or empty → `MAIL_SECTION = ""` (no mails to display, no error)
* **If curl succeeds (exit code 0) but returns an empty response (empty string)** → `MAIL_SECTION = ""` (empty inbox or webhook with no mails to report — not an error, do not set `MAIL_FAILED = true`)
* If the response is invalid (malformed JSON or curl fails with a non-zero code) → set `MAIL_FAILED = true`, `MAIL_SECTION = ""`. Signal to {USER_NAME} in the Step 5 template.
* If curl times out (> 10s) → `MAIL_FAILED = true`, continue without mails
---
## Step 2.13 — Check the available window
After reading all the context (Steps 2.0–2.12):
Use `FENETRE_MIN` computed in Step 2.0:
- If `FENETRE_MIN` < 90 minutes (1.5h) AND `CALENDAR_FAILED` = false (i.e. calendar operational AND an event found) → store `FENETRE_COURTE = true` for Step 4 (surfacing quick tickets before the event)
- Otherwise → `FENETRE_COURTE = false`
Reminder: `CALENDAR_FAILED` and `MAIL_FAILED` are initialized in the Preamble, updated in Steps 2.0/2.12.
## Step 2.14 — Sport session (day + rotation)
Determine whether today is a session day and which session of the rotation to display.
1. Initialize `SPORT_SECTION = ""`.
2. Get the day of the week: `date +%u` (1 = Monday … 7 = Sunday).
3. **Quota gate**: if `personal_hours` in the frontmatter (remembered in 2.1) is `0`, empty or not filled in → `SPORT_SECTION` stays empty, go to Step 3. Decision by {USER_NAME}: no session displayed on days without personal time — avoid a session that causes guilt when the day simply has no room for it.
4. Session days:
- **{USER_NAME}**: Tuesday (2), Thursday (4), Saturday (6)
- **[partner]**: Thursday (4), Saturday (6) — never Tuesday (physio)
- If the current day is not in {2, 4, 6} → `SPORT_SECTION` stays empty, go to Step 3.
5. **Rotation A/B/C**: read `{VAULT_PATH}/{HOBBIES_FOLDER}/Sport/Tracking séances.md`. Count the checked lines `- [x]` under `## Séances`. `index = (nb_sessions_done) mod 3` → 0 = Session A, 1 = Session B, 2 = Session C.
- File absent or no session checked → index 0 (Session A).
- **Phase 0**: B and C are not yet designed — display the label of the computed session, but the wikilink always targets `[[02 - Hobbies/Sport/Programme]]` (the note explains that B/C point to A in the meantime).
6. Build `SPORT_SECTION` according to the day:
- Tuesday: `- [ ] Sport session ([computed session]) — {USER_NAME} — [[02 - Hobbies/Sport/Programme]]`
- Thursday / Saturday: `- [ ] Sport session ([computed session]) — {USER_NAME} + [partner] — [[02 - Hobbies/Sport/Programme]]`
7. **Quota**: the sport session consumes **~30min of `budget_perso`** (Step 3). It stays in its dedicated section `### 🏋️ Sport` (not mixed with productive personal tasks) but its cost is deducted like a 30-minute personal task in the dry-run of Step 4. If the gate of step 3 above emptied `SPORT_SECTION`, nothing is deducted.
## Step 3 — Calibrate the pool + the budgets
**Extract the frontmatter** (already remembered in 2.1):
- `energy:` — energy level (1-5, default 3)
- `work_hours:`, `personal_hours:`, `hobby_hours:` — hours (default 0 each)
**Load the reference durations**: read `{VAULT_PATH}/{CLAUDE_CODE_FOLDER}/ticket-durations.md` if present.
- Parse the main table: for each type (CC maintenance, CC skill, [project-A], [example-project], GYLT, Perso pratique, Hobby, Maintenance vault, Autre) → store `{nb_tickets, mediane_min}` in `DURATIONS_REF`
- If the file is absent → `DURATIONS_REF = {}` (the `/closeweek` skill creates it at the next weekly close). Do not report it to {USER_NAME} — this is expected as long as there is less than 1 week of data.
- If the file is corrupted (parsing fail) → `DURATIONS_REF = {}` + signal at the top of the plan: `⚠️ ticket-durations.md unreadable — estimates on 45min fallback.`
**If energy ≤ 2** — before generating the pool, ask the question:
> Low energy detected — you're going with:
> A) Mechanical tasks (refinement, maintenance, quick tickets)
> B) Light normal plan (usual mix, reduced pool given the energy)
Wait for the answer to steer the selection in Step 4. If silence → continue in mode B.
**Compute the budgets per context**:
```
budget_perso = personal_hours ← time for projects/vault/productive tasks ONLY
budget_hobby = hobby_hours
budget_work = work_hours
```
**Compute `CAP_TOTAL`** (long-day safeguard):
Read the last 2 daily notes (J-1 and J-2). For each one, sum `work_hours + personal_hours + hobby_hours` from the frontmatter.
- If the **2 consecutive days** both have a sum > 10h → `CAP_TOTAL = 10h` (forced recovery)
- Otherwise → `CAP_TOTAL = min(work_hours + personal_hours + hobby_hours declared today, 16h)`
Never exceed `CAP_TOTAL` in the task selection (replaces the former fixed cap at 10h).
> **Strict definition of `personal_hours`**: time allocated to projects, vault and productive tasks. External activities (outings, tourism, social activities with [partner]) are **outside the quota** — mention them if a deadline is close but never deduct them from the personal budget.
>
> **Sport exception**: the sport session (Step 2.14) **counts toward the quota** — it consumes ~30min of `budget_perso` and does not appear if `personal_hours = 0`. Decision by {USER_NAME}: no session displayed on days without personal time, so as not to cause guilt when the day has no room.
>
> **Prep for watch / talk / sharing with the community [employer] = [employer] time**: count it in `budget_work`, never deducted from `personal_hours`.
>
> **Evening = personal, but an [employer] project remains work hours**: an [employer] project (e.g. run-watcher) stays on `budget_work` (Improvement Friday / TT), never in an evening/weekend personal slot. `/today` never files an [employer] project in a personal section of an evening or weekend slot.
>
> **[employer] days — `work_hours` covers meetings + tickets**: NEVER subtract the meetings from `budget_work` to announce a "remaining available" amount. Priority goes to the ticket on **~5h**, because that is the timesheet base; the rest (THEO tickets, watch, improvements) is done with the residual availability. This is a choice by {USER_NAME}, not a trade-off to resubmit to him — present the plan with this hierarchy, not with free-slot arithmetic. Validated by {USER_NAME} 2026-08-05 *(cause: `/today` of 05/08 announced "meetings 2h45 + tasks 2h = only 2h15 of Run left" and proposed pulling out a ticket, whereas Run **is** the priority and the meetings are already within the 7h).*
> ⏳ **Scope: valid only during the RUN mission (TMA FR).** The "~5h timesheeted" base is a constraint of this mission, not a permanent rule — **to be re-evaluated at the end of the run (~Sept. 2026)**, when the billing model changes.
> **`/my-world` is outside the quota**: never deduct it from `personal_hours`. It is displayed only in the `💡 Début de journée` section, not in the personal task table.
For each selected task, **infer an estimated duration in minutes** following this order:
1. **Explicit estimate in the ticket** (e.g. the ticket says "(~45min)" or contains "30min") → use it directly
2. **Classify the task type** (same categories as `/closeweek` Step 3.2: CC maintenance, CC skill, [project-A], [example-project], GYLT, Perso pratique, Hobby, Maintenance vault) → look it up in `DURATIONS_REF`
- If type found AND `nb_tickets ≥ 3` → use the observed **median**
- If type found BUT `nb_tickets < 3` → 45min fallback + signal once at the bottom of the plan: `ℹ️ Insufficient data for [type] (< 3 tickets) — estimates on 45min fallback`
3. **If no classification is possible** (raw inbox item, ad-hoc) → 45min fallback
Why this order: the ticket estimate reflects the scope ({USER_NAME} evaluated it at refinement); the historical median recalibrates by type when the estimate is missing. The median takes precedence over the mean — robust to outliers (e.g. a CC maintenance ticket that drifted to 3h does not bias the baseline).
**Claude Code ticket patch**: lessons.md already internalized — for config/skills/lessons patch tickets, divide the estimate by 4 (already applied via the "CC maintenance" type if the historical median reflects this adjustment, but remains a signal if there is no data yet).
**Per-task duration filter (depending on energy)**:
- Energy ≤ 2: only keep tasks estimated ≤ 1h
- Energy > 2 and ≤ 3.5: only keep tasks estimated ≤ 2h
- Energy > 3.5: no per-task duration limit
If energy is not set or not numeric → use `energy = 3` (filter ≤ 2h).
**Selection stop rule**: stop at the first ceiling reached:
1. Context budget exhausted (work/personal/hobby > hours filled in), OR
2. If energy < 2.5: 5 tasks reached (all sections combined, excl. Refinement), OR
3. No more candidates available (after applying the duration filter)
The Refinement section is outside the quota and is always added.
**Work/personal/hobby split**:
- Include a block only if it is > 0h
- If everything = 0 → report in Step 5: `⚠️ No hours filled in — prioritize the WIPs`
- Never mix the 3 blocks in a single suggestion
- Travel noted in the frontmatter → exclude PC-bound tasks, adapt to mobile
**Overload detection** (read the last 2-3 daily notes):
- If patterns "trop", "épuisé" → ask in Step 5: *"I detect an overload. Would you like to reduce the plan by 20-30%?"*
- Otherwise continue normally
**Social battery rule — PC = recharge, not drain**:
- If the day's agenda contains an outing / social activity in the afternoon (non-routine in-person class, social outings, lunch with friends, medical appointment…) → **do not automatically reduce** `personal_hours` of the evening budget on that basis
- The *PC = recharge* pattern holds for {USER_NAME} — see [[01 - Me/hypothese-batterie-sociale]] and `{USER_NAME}.md`
- Keep respecting the frontmatter ({USER_NAME} declares the actual load), but never auto-cut the evening on the grounds that the day was socially busy
- Exception: if {USER_NAME} has **explicitly** reported a lasting social fatigue in a recent daily note (e.g. a dump "I can't see anyone anymore") → treat it as an overload and apply the rule above
### 🧮 Who decides the budget of the day
**Common root of the three rules below**: never treat a decision by {USER_NAME} as a **data input to re-challenge**. The frontmatter *is* the arbitration — it was already made, at the time it was written.
**1. A constraint already encoded in the frontmatter is not re-counted a second time.**
When {USER_NAME} declares his hours **knowing** a constraint of the day (guest, outing, meeting, travel), suggesting to cut on top of that amounts to **charging the same constraint twice** and handing back a decision he has just made.
The constraint acts on the **order** of the tasks (queue, cut from the bottom) and on **saying which ones will fall through** — never on the total.
> **Recognizable signal**: I propose an option whose justification repeats word for word information {USER_NAME} gave me to calibrate his budget. If it is *his* data, the arbitration is already made.
*(Cause: 2026-08-15 — `personal_hours: 2` declared on a public holiday Saturday knowing that [guest] was coming in the afternoon. I raised an option "[guest] arrives → I cut to photo + sport + guitar"; {USER_NAME} ruled "hence the 2h of personal time". The 2h **was** the answer to the question I was asking again.)*
**2. Light work day → write wider than the personal budget, without touching the frontmatter.**
When {USER_NAME} announces a light professional day (*"theoretically I'm at work, basically I don't have much but we don't know what may come up"*), the plan may carry **more personal tasks than `personal_hours`**. The frontmatter remains the honest declaration of hours; the surplus is a **depth reserve**.
Two conditions so that nothing gets polluted:
- the overshoot is **written in the plan with its reason**, never implicit — otherwise `/closeday` will read it back as a calculation error by the skill or a missed goal;
- it is presented as an **ordered queue**, not as a target — the order matters more than the total, the lower half may never be reached.
The failure mode avoided is double and symmetric: **truncating** deprives {USER_NAME} of the depth he has just said he has, **bumping the frontmatter** manufactures a false declaration of personal hours on a day officially worked.
*(Cause: 2026-08-14 — I framed the choice as binary ("2h and I write 2 tickets, or 4h and I write the 4"); {USER_NAME} ruled the third way: "keep 2h of personal time, but you can put 4h in it". My mistake: having **closed the space of answers to two options** when neither was the right one.)*
**3. Ticket postponed 3× → re-split, do not re-estimate.**
When a ticket returns to the day's plan for the **3rd time**, check the **history of its estimate** (`grep` of the slug in the daily notes) **before** re-entering it.
An estimate that **goes down** from one postponement to the next signals that we are **compressing the ticket** to make it fit the available slot — not that we understood it better. The correct move is to split it on its **real technical unknown** and re-estimate **upward**.
*(Cause: 2026-08-03, WPF-07 — `~30-45min` (09/06) → `~17min` (10/06) → `~15min` (03/08) without ever moving, for a real scope of ~2h30; blockers lifted since 08/06, so neither blocked nor avoided — just a ticket compressed until it lost all relation to its content. Split into WPF-07a (spatial segmentation, ~1h30, the only unknown) + WPF-07b (labelling + testing, ~1h, mechanical).)*
> Cross-skill: `/today` records the estimate, `/workon` consumes it.
**3bis. A *stable* estimate is not a *correct* estimate.** Rule 3 catches the tickets we **compress** to make them fit a slot. It says nothing about the opposite case, and that is the most misleading: an estimate that **does not move** from one postponement to the next reads as a sign of good health — *the scope is understood, the ticket is ready* — whereas it may simply have **never been retested**.
The signal that separates the two is not in the history of the figures, it is in the **model of the ticket**: if its technical definition has changed since the estimate (a constant goes from 4 to 12, an approach is replaced, an unknown splits in two), the estimate is **stale even if stable**. Before re-entering a ticket whose model has changed, re-estimate it — and say so in the plan.
*(Cause: 2026-09-15, WPF-07a — `~1h30` held without moving from 17/08 to 14/09, and the `/today` of 15/09 cites this stability as a reassuring sign ("no compression"). Reality: **3h15**, cause named in session — two redefinitions of the conceptual model along the way. On the same day, WPF-07b inherits the defect: estimated `~1h` when the zones were 4, they are 12 at the delivery of 07a.)*
> Operational corollary: when a delivered ticket A changes the model of a ticket B that depends on it, **B does not enter a plan before being re-estimated** — announce it in the Refinement section rather than entering it with a dead figure.
## Step 4 — Generate the suggestions
Draw from these sources in priority order:
0. **First session of the day** (if `FIRST_SESSION_TODAY = true`) → include in a **separate** `### 💡 Début de journée` section, before any other suggestion: `run \`/my-world\` to load your context before starting`. **Outside the quota** — never count it in the `personal_hours` budget nor in the personal task table. This section disappears from the plan as soon as the 2nd non-/my-world action is launched or checked.
0.5. **Session resumption** (if `FIRST_SESSION_TODAY = false`) → a session already exists for today (read in Step 2.4). Mention at the top of the plan: `⚠️ Session resumed — if you are coming back after a compaction, check that the important decisions are still in context.` Non-blocking signal, one line, then continue.
0.6. **Big Thing — the annual objective neglected this week** → generate the `### 🎯 Big Thing` section, displayed right after `### 💡 Début de journée` (or at the top of the plan if Début de journée is absent). The goal: the top-down layer (vision → annual objectives) slips into the day without {USER_NAME} having to consult it. The section is **always present** — one of the objectives is necessarily the least worked on, and that is precisely the one that must be surfaced.
**a. Read the objectives.** Read `{VAULT_PATH}/{PERSONAL_FOLDER}/Goals/objectifs-2026.md`. If absent → omit the section without blocking (no top-down layer yet). Each objective is numbered there (`## 1.`, `## 2.`, …).
**b. Objective → signals mapping.** Each objective is recognized in a daily note by its slugs/project name (case-insensitive):
| Obj | Matching signals |
|-----|------------------|
| 1 — Professional posture [employer] | `[employer]`, `[client-a]`, `signaux-anti-[client-tool]`, `[client-tool]` |
| 2 — ISEP degree | `isep`, `soutenance`, `rattrapage`, `architecture-et-programmation` |
| 3 — [example-project] Phase 4 | project `[example-project]` (slug or name in a `[[…]]` link) |
| 4 — Tech lead legitimacy | `tech lead`, `[employer]-objectifs`, `cohorte IA`, `dantotsu`, `RDP`, `THEO-47`, `yokoten` |
⚠️ **The signals of Objective 4 are deliberately narrow — do not widen them to `[employer]`, `tmafr` or `THEO-`.** Objective 4 shares its ground with Objective 1 (both are [employer]), so only the **tech lead gestures** distinguish it: carrying a decision, transmitting, changing how the team works. A broad signal makes *working at [employer]* match, which is not the objective. **Measured on 2026-08-16** over the window `27/07 → 10/08`: the broad mapping (`…|tmafr|THEO-`) returns **15/15**, i.e. **all** the notes — and since the selector of step **d** takes the **minimum**, a saturated objective can **never** be elected Big Thing again. The mapping above returns **10/15**, which keeps it in the race without artificially making it win. `onboard` was discarded for the same reason: it matches {USER_NAME} *being onboarded* as much as {USER_NAME} *onboarding others*.
> 📌 History: this mapping encoded "4 — Exist publicly" (`[project-A]`, `wpf`, `repo-github-public`) until 2026-08-16, although the objective had been **re-qualified on 03/08**. Flagged nine times between 04/08 and 15/08 without ever being corrected in this file — the review of 12/08 nevertheless declared the correction done, but it had only been applied to that day's calculation. Cf. [[01 - Me/Goals/objectifs-2026]] for the definition that prevails.
If `objectifs-2026.md` has changed (objectives added/renamed) and the mapping no longer covers all objectives → report a line `⚠️ Big Thing: objective↔slugs mapping to update in /today` and continue with the known mapping.
**c. Counting window anchored on the week.** Compute the **Monday of the current ISO week** (`LUNDI_ISO`). The analysis window is `[LUNDI_ISO − 14 days ; LUNDI_ISO]`. This window is anchored on Monday, not sliding: recalculated at each `/today` it gives the **same result from Monday to Sunday** → the objective of the week is stable, with no cache file to maintain.
**d. Anti-dormancy selection.** For each objective, count the number of daily notes (`{VAULT_PATH}/{DAILY_NOTES_FOLDER}/YYYY-MM-DD.md`) in the window containing at least one of its signals (count per note, not per occurrence — one note = one point, so as not to over-weight a talkative day). **Counting on daily notes only** — do not include sessions. The **Big Thing = the objective with the smallest count** (the most neglected over 14 days). In case of a tie → **the smallest objective number** wins (deterministic tie-break, never a judgment about felt relevance).
**e. Contributing ticket of the day.** Once the day's suggestion pool is built (points 1→5 below), look among the selected tasks for the one whose source note matches a signal of the Big Thing objective. Several matches → take the highest ticket in the order Work > Personal > Hobby. **Zero matches** → display the objective alone with a nudge `⚠️ No ticket in the plan contributes to it today — this is the blind spot of the week.` Never invent a ticket to fill the gap: the absence of an aligned ticket IS the useful signal.
1. **WIP tickets** — finish what is in progress before starting something else. If WIP is empty but {USER_NAME} expressed a focus (Step 1) → the focus becomes the 1st suggestion (replaces WIP as the starting point). **Background WIP** (vibe coding, passive supervision) ≠ active task: do not count it in `budget_perso` nor push it as an active task — mention it in a separate note for visibility (`ℹ️ Background WIP: [title]`).
1.5. **Unchecked tasks from J-1** (`TACHES_NON_COCHEES_J1`) — if the list is non-empty, inject each task into the matching section (Perso, Travail or Hobby according to its context), labeled *"→ carried over from J-1"*. Apply the duration filter (energy): ignore tasks estimated too long. Do not surface Agenda nor Raffinement tasks.
2. **Overdue vault commands** — report in the `🔄 Maintenance vault` section (separate from the plan) the overdue commands identified in Step 2.11. If `EXPLO_OVERFLOW = true` (counted in Step 2.9), add in the same section the `/triage-explo` nudge line — outside the non-droppable guard, it does not count as an overdue command. If `STRANGER_VETO = true` **and** `/stranger` overdue for > 15d, add the `🩺` signal line (Step 2.11) — also outside the guard. `/stranger` under veto is **never** listed as an overdue command, and its line carries **no conditional mention** (see the box in Step 2.11).
3. **Ready features** — ready to dev, not yet started
4. **Inbox** — notes to file, develop or archive
5. **Recurring ideas** — topics that come back in recent daily notes without being capitalized
**Pool composition rules (normal mode only)**:
- **Identify the priority project**: apply in order — (1) count the mentions of the project name (slug or exact name) in the last 3 daily notes — the most mentioned wins; (2) on a tie, the project with the most WIP tickets; (3) on a final tie, take the first one in the order of `04 - Projects/INDEX.md` → allocate it 2-3 suggestions as a priority. Deterministic rule: never a judgment about "felt activity".
- **Selection order within a kanban**: WIP before Ready, Ready before Idea. Within the Ready column, **do not assume that the top = priority** — the kanban is an unordered list. Use the priority signals already defined (priority project, dormancy, existing WIP) to select within Ready, not the position in the file.
- **Mandatory coverage of all kanbans**: each active kanban (active projects + Claude Code Kanban + Hobby Kanban) must contribute at least 1 suggestion if WIP or Ready tickets are available and not blocked (unless the budget is exhausted or the low-energy ceiling is reached)
- **Short window**: if `FENETRE_COURTE = true`, identify in the pool the tickets estimated at under 30min and reserve them for the `⚡ Avant [event]` section of Step 5 — they are part of the pool but presented separately
- **Work / Personal / Hobby balance**: respect the hours split of the frontmatter. If budget = 0 for a section → omit it from the pool.
- **Geographic filtering**: if {USER_NAME} is travelling (check `project_user_location.md` in memory), exclude tasks requiring a specific home, material stored there, or local physical presence. Apply to all sources (inbox, kanbans, J-1 wrap-up).
- **Empty pool**: if no candidates (all WIP/Ready empty, inbox empty) → do not generate an empty section, simply report "No tasks in stock, it's a good day for refinement!" and display only Raffinement if Idea tickets exist.
- **Present the pool as a choice list**: display all suggestions, then ask {USER_NAME} to select the ones he keeps for his plan. Do not pre-select on his behalf.
- **The daily note is only written after validation**: write only the tasks {USER_NAME} has kept (hourly budget per context = main constraint). The Raffinement section is outside the quota.
- **Low energy (< 2.5)**: after presenting the 5 tasks, add at the bottom of the plan: *"Low energy — 5 tasks proposed. You can ask me for more tasks if you want to do more during the day."*
**`🗂️ Raffinement` section — generation logic:**
The section is **independent** of the main plan — it is always generated as soon as there are Idea tickets in any kanban, whatever the load of the plan.
Count the total of Idea tickets across all kanbans (active projects + Claude Code Kanban + Hobby Kanban):
- If total = 0 → omit the Raffinement section
- If total ∈ [1, 9] → propose 2-3 tickets
- If total ≥ 10 → propose up to 5 tickets
Selection order (apply in this order):
- **Priority 1**: tickets proposed in the `🗂️ Raffinement` section of yesterday's daily note but not checked → take them first ({USER_NAME} has fresh context). **Re-filter the current column**: only surface those still in the Idea column — a ticket that moved to Ready/Specs in the meantime no longer surfaces.
- **Priority 2**: tickets whose associated note appears in the daily notes or sessions of the last 3 days (context resonance)
- **Priority 3**: tickets without a note or with a detached note — taken in order of appearance in the kanban (top = priority). No judgment on thematic relevance.
For each ticket: `[[TicketName]]` (or plain text if no note) + context in 1 sentence + action: **→ spec** or **→ trash**
**After plan validation (Step 5)**: for each ticket that {USER_NAME} marks **spec** → immediately invoke `/refine [[TicketName]]`. Do not write the daily note before the end of each `/refine`. If {USER_NAME} marks several tickets spec, process them in sequence (one `/refine` at a time).
The `🗂️ Raffinement` section **does not count** in the context budgets nor in the low-energy ceiling (5 tasks). Always displayed if ≥ 1 ticket.
**Dormancy guard (mandatory before the dry-run)**:
For each active project in `04 - Projects/INDEX.md`:
1. Scan the daily notes of the **last 7 days** — look for the slug or exact name of the project
2. If **0 mentions** in these 7 days AND the project has at least 1 Ready ticket → project **dormant**
3. For each dormant project (order of appearance in INDEX.md): take its **1st Ready ticket** (kanban order of appearance) and insert it at **position 3 of the Perso section** — after WIP and the 1st suggestion of the priority project, before the normal suggestions
4. If several dormant projects → they are inserted one after another (positions 3, 4, …)
5. A project already present in the pool (via mandatory coverage or priority project) is not considered dormant even if it is not mentioned
**Rationale**: 7 days without a mention = real risk of drift. 1 forced ticket in a visible position = progress slows but the project stays alive.
---
**Verification dry-run (mandatory before Step 5)**:
Before presenting anything, mechanically check:
1. Check the duration filter: each task respects the limit according to energy (≤ 2 → 1h max, ≤ 3.5 → 2h max, > 3.5 → free) → remove non-compliant tasks.
2. If energy < 2.5 and more than 5 tasks (excluding Raffinement) → remove the last ones down to 5.
3. For each context (Work / Personal / Hobby): sum the estimated durations → if **strictly greater** than the context budget (remaining budget < 0): remove the last added task and retry the next one. Budget = 0 after addition = exact fit, keep. **If `SPORT_SECTION` is non-empty → add 30min to the Perso sum** (the sport session is reserved first in `budget_perso`, before the productive personal tasks); if adding it makes Perso negative, truncate a productive personal task, never the sport session.
4. If a task has no estimated duration → assign it 45min before summing
5. **Never present a non-compliant plan** — truncate first, present afterwards
This dry-run is silent (not displayed to {USER_NAME}). Its result is the final list sent to Step 5.
---
Each suggestion must be:
- **Concrete** — a precise action, not "work on a project"
- **Realistic** — doable in one session or less (one task = one session)
- **Useful** — brings something tangible
- **One at a time** — do not propose tasks that require switching context
- **Linked to its source** — always include an Obsidian `[[]]` link to the source note or ticket so that {USER_NAME} finds the context without searching
## Step 5 — Present the plan to {USER_NAME} and write it to the daily note
Present the plan to {USER_NAME}:
**Template and display order**:
Display in this order. Omit sections with a parenthetical indication.
```
## 📅 Plan du [date]
> ⚠️ Yesterday not closed — run `/closeyesterday` before starting
(Omit if closed)
> 🔴 Calendar unavailable — no events retrieved
(Omit if CALENDAR_FAILED = false)
> 🔴 Mail webhook down — check n8n
(Omit if MAIL_FAILED = false)
*Plan generated at [HEURE_LANCEMENT]*
> OPTIONAL: If overload detected in Step 3, add
> I detect an overload over the last 2-3 days. Would you like to reduce the plan by 20-30%?
**Today: [intention of the day in one sentence]**
Energy: [X/5] | Work: [X]h | Personal: [X]h | Hobby: [X]h | Total: [X]h/[CAP_TOTAL]h max
### 💡 Début de journée
run `/my-world` to load your context before starting
(Omit if FIRST_SESSION_TODAY = false — outside the quota)
### 🎯 Big Thing
**Objective [N] — [objective title]**
↳ [[plan ticket contributing to it]]
(If zero aligned tickets, replace the ↳ line with: ⚠️ No ticket in the plan contributes to it today — this is the blind spot of the week.)
(Omit only if objectifs-2026.md is absent — otherwise always present)
### 📅 Agenda
- [time] — [event title]
- [short date] [time] — [event title]
(Omit if no event found)
### ⚡ Avant [event] à [heure]
- [ ] [quick ticket estimated <30min] — (~Xmin)
(Omit if FENETRE_COURTE = false)
### 💼 Travail
- [ ] [Concrete work action] — [short reason] — (~Xh / ~Xmin)
(Omit if work_hours = 0)
### 🎯 Perso
- [ ] [Concrete personal action] — [short reason] — (~Xh / ~Xmin)
(Omit if personal_hours = 0)
### 🎨 Hobby
- [ ] [Concrete hobby suggestion] — (~Xh / ~Xmin)
(Omit if hobby_hours = 0)
### 🏋️ Sport
[SPORT_SECTION]
(Omit if SPORT_SECTION is empty — outside the quota, never deducted from the budget)
### 🔄 Maintenance vault
- [ ] /harvest — last: [date] (+[X]d)
- [ ] /link — last: [date] (+[X]d)
🗂️ [NB_EXPLO_READY] explos in Ready (threshold 12) — think about `/triage-explo`
🩺 /stranger hidden by the health veto for [X] days — last run: [date]
(Omit the command lines if MAINTENANCE_OVERDUE = false — **mandatory if MAINTENANCE_OVERDUE = true**)
(Omit the 🩺 line unless STRANGER_VETO = true **and** /stranger overdue for > 15d. Like the 🗂️ line, it **does not enter** the non-droppable guard. The `- [ ] /stranger` line and the 🩺 line are **mutually exclusive** — never both on the same day.)
(Omit the 🗂️ line if EXPLO_OVERFLOW = false. It **does not enter** the non-droppable guard: it does not force the section to appear and never sets MAINTENANCE_OVERDUE to true. If no command is overdue but EXPLO_OVERFLOW = true, the section is displayed with the 🗂️ line alone.)
### 📬 Mails
[MAIL_SECTION]
(Omit if MAIL_SECTION is empty)
### 🗂️ Raffinement — [X] Idea in total
- [ ] [[TicketName]] — [context 1 sentence] — **spec** / **poubelle**
---
**You can validate, ignore, or ask me to review the priorities.**
```
- Omit a section if its hours are 0 or empty
- **Dynamic cap** — never exceed `CAP_TOTAL` (computed in Step 3). A day > 10h is ok, not 2 consecutive days — the third one is capped at 10h.
- For hobby suggestions: rely on mentions in recent daily notes (hobby activities mentioned: painting, guitar, 3D, JDR, etc.)
Once validated by {USER_NAME}, write the plan in the `## 📅 Plan du jour` section of today's daily note as checkboxes with Obsidian links to the source note.
**⚠️ Critical rule: write ALL non-empty sections** — Big Thing, Agenda, Mails, Perso, Hobby, Sport, Travail, Maintenance vault, Raffinement. Never write only a subset of the sections on the grounds that they are the "main" ones. If a section is empty (e.g. no mail, no agenda) → omit it; if it has content → always write it, even if {USER_NAME} did not talk about it during the validation discussion.
```markdown
## 📅 Plan du jour
### 🎯 Big Thing
**Objective [N] — [objective title]**
↳ [[plan ticket contributing to it]]
(If zero aligned tickets: ⚠️ No ticket in the plan contributes to it today — this is the blind spot of the week.)
(Omit only if objectifs-2026.md is absent)
### 📅 Agenda
- [time] — [event title]
- [date] [time] — [event title]
### ⚡ Avant [event] à [heure]
- [ ] [quick ticket estimated <30min]
(Omit if FENETRE_COURTE = false)
### 💼 Travail
- [ ] [Work action] — [[path/to/note-or-ticket]]
### 🎯 Perso
- [ ] [Concrete personal action] — [[04 - Projects/[Project]/Kanban]]
- [ ] File the note on claude-mem — [[09 - Inbox/claude-mem]]
### 🎨 Hobby
- [ ] [Concrete hobby action] — [[02 - Hobbies/[Relevant Kanban]]]
### 🏋️ Sport
[SPORT_SECTION]
(Omit if SPORT_SECTION is empty)
### 🔄 Maintenance vault
- [ ] /[command] — last: [date] (+[X]d)
🗂️ [NB_EXPLO_READY] explos in Ready (threshold 12) — think about `/triage-explo`
🩺 /stranger hidden by the health veto for [X] days — last run: [date]
(Omit the command lines if no command is overdue; omit the 🗂️ line if EXPLO_OVERFLOW = false; omit the 🩺 line unless STRANGER_VETO = true **and** /stranger overdue for > 15d. The section is written as soon as one of the three has content. The `- [ ] /stranger` line and the 🩺 line are mutually exclusive.)
### 📬 Mails
- **[Sender]** — [short summary]
(Omit if MAIL_SECTION is empty)
### 🗂️ Raffinement — [X] Ideas in total
- [ ] [[TicketName]] — [context 1 sentence] — **spec** / **poubelle**
(Omit if no Idea ticket)
```
Rules for links:
- Kanban ticket with its own note `[[TicketName]]` → direct link to the ticket note
- Kanban ticket without a dedicated note (plain text in the kanban) → link to the project kanban
- Inbox note → direct link to the inbox note
- Knowledge/Hobbies note → direct link to the note
- Task without an associated note → no link, just the text
- Omit the sections whose hours are 0
If the section does not exist in the daily note → create it. If it already exists → do not overwrite, add the new actions after it.
## Step 6 — Tracking during the day
When the user says "j'ai fini", "c'est fait", "next", "j'ai quoi à faire":
1. Read the `## 📅 Plan du jour` section of today's daily note
2. Check off the completed task: `- [x] [Action] ✅ HH:mm` (example: `- [x] Finish task X ✅ HH:mm`)
3. If the task corresponds to a kanban ticket → **ask {USER_NAME}**: "Can I move this ticket to Done on the kanban?" — wait for confirmation before moving it
4. **If unchecked tasks exist** → propose the next one without waiting for an additional request
5. **If all the plan's tasks are checked** → re-read the kanbans and inbox, propose a new action or declare the day finished
## Absolute rules
- **Write to the daily note only** — never anywhere else
- **Do not overwrite existing content** — add after it if the section already exists
- **Hourly budget = main constraint** — fill the available hours per context (frontmatter). Duration filter according to energy: ≤ 2 → 1h max/task, ≤ 3.5 → 2h max/task, > 3.5 → free. If energy < 2.5 → cap of 5 tasks + note "on request". The Raffinement section is outside the quota.
- **Always prioritize the WIPs** before everything else
- **One task at a time** — do not overload (ADHD profile)
- **Pair-programming validation** — Step 6: ask permission before moving a ticket to Done (never autonomous)