git:20261106.672af58 to git:20261119.9c801b4

59 added, 61 removed. Audit A to A.

What this update changes in the checks

No check changed: every fixed check gives the same answer before and after this update.

A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.

---
name: crew-new-task
- description: Creates a crew task (TODO or CURRENT_TASKS) with its file, INDEX.md and batching through the manager persona. Also triggers on — "/crew-new-task", "crée une tâche", "ajoute au backlog", "découpe ça en tâches", "create a task", "add to the backlog", "break this into tasks".
+ description: Creates a crew task (TODO or CURRENT_TASKS) with its file and batch entry — written inline for a single task with a clear zone, through the manager persona for a multi-task breakdown or an ambiguous zone. Also triggers on — "/crew-new-task", "crée une tâche", "ajoute au backlog", "découpe ça en tâches", "create a task", "add to the backlog", "break this into tasks".
---
- This skill encodes the task-creation protocol already defined in
- `crew/CLAUDE_CONTEXT/LIFECYCLE.md` (§ Task management, § Batching) — it
- does not replace that document, it saves rewriting a long prompt by hand each
- time. Single source of truth = `CLAUDE.md`; this file only standardizes the call.
+ Standardizes task creation. The rules it needs are inlined below, so there is
+ no need to read `crew/CLAUDE_CONTEXT/LIFECYCLE.md`; open its § Task management /
+ § Batching only for a case not covered here.
- **Repo-root anchoring is mandatory**: every `crew/...` path in this skill is
- resolved **from the repo root**, never from the current cwd. In a single-subtree
- session (see `crew/CLAUDE_CONTEXT/LIFECYCLE.md` § Segmented AGENTS.md guides), the cwd
- may be a subfolder — a relative `crew/...` path written as-is would create a
- duplicate phantom `crew/` there instead of touching the root. Resolve the root
- once at the start (`git rev-parse --show-toplevel` or equivalent) if it is not
- already known — no need to re-check on every following `Read`/`Write`/`Edit`/`Bash`.
+ **Repo-root anchoring is mandatory**: every `crew/...` path resolves **from the
+ repo root**, never from the cwd — in a subfolder session a relative `crew/...`
+ would create a phantom `crew/` there.
- ## What this skill does
+ ## Rules (inlined from LIFECYCLE)
- 1. Gather the available context on the request: what, why, known technical
- context (files/screens/modules concerned if identifiable, cross-repo
- dependencies if this project has any — separate backend/frontend repo, shared
- service), and whether the task starts right away (`CURRENT_TASKS/`) or goes to
- the backlog (`TODO/`).
- 2. If the `manager` persona is available (provided by the plugin via
- `agents/manager.md`, or locally via `.claude/agents/manager.md`): dispatch
- **a single** `Agent({subagent_type: "manager"})` with a prompt that
- explicitly covers, in order:
- - description of the feature/task + context (why, known dependencies);
- - breakdown into concrete (not vague) tickable `- [ ]` actions;
- - where the file is born (`crew/TODO/<slug>.md` or
- `crew/CURRENT_TASKS/<slug>.md`);
- - update of the `INDEX.md` of the relevant folder;
- - categorization in `crew/CLAUDE_BATCH.md`: impact zone, attachment to an
- existing batch if overlapping, otherwise a new batch or the `Unsorted`
- (to be sorted) section (reuse the header the file already has: `## Unsorted`, or the legacy `## À classer`); check the disjointness invariant between active
- batches;
- - explicit instruction: touch no file outside `crew/`.
- If the `manager` persona does not exist in this project (partial scaffold),
- run the same steps directly following `CLAUDE.md`.
- 2bis. **Remote claims** (opt-in: only if `crew/CLAUDE_CONTEXT/CREW_CONFIG.md`
- contains `remote_claims : true`, otherwise skip):
- - **before** dispatching `manager`: `python "$HOOK" claims check-dup --title "<title>" --zone "<zones>"`
- (`$HOOK`: see `/crew-start` step 1). If `duplicates` is not empty, show them
- to the user (title, holder, reason) and ask whether it is a duplicate
- before creating; Claude judges the semantic duplicate;
- - **after** the file is created: publish the entry so other devs see it
- without a push: `python "$HOOK" claims publish <slug>.md --title "<title>" --zone "<batch zones>" --body-file crew/TODO/<slug>.md`;
- - `offline` or failure → **non-blocking**: the task stays created locally, flag
- it (it will only be visible to others after a push or republication).
+ - A task = one `crew/<FOLDER>/<slug>.md`, never in two folders. Born in
+ `crew/CURRENT_TASKS/` if it starts now, otherwise `crew/TODO/`.
+ - Content: title, short "why", the zone line, then concrete tickable `- [ ]`
+ actions (not vague ones).
+ - Zone line: ``Zone : `path/`, `file.ext` `` — **every path in backticks**: the
+ hook ignores the others, and a batch with no parsed zone is skipped by
+ `count` / `next-task`.
+ - Every task gets an entry in `crew/CLAUDE_BATCH.md`: zone overlapping or
+ depending on an existing batch → append `` N. `<slug>.md` `` to that batch's
+ list; otherwise a new section `## Batch <slug> · <short title>` + zone line +
+ `` 1. `<slug>.md` ``; zone unknown → the `## Unsorted` section (or the legacy
+ `## À classer` if that is the header the file has).
+ - Invariant: one batch = one Claude, two **active** batches (a task in
+ `CURRENT_TASKS/`) never share a zone. A new task whose zone overlaps an
+ active batch → attach it to that batch, sequenced after its current task,
+ **and** create it in `TODO/` — never in `CURRENT_TASKS/`.
+ - `INDEX.md` files are regenerated by the hook at the end of the turn — do not
+ hand-edit them. Never touch a file outside `crew/`. Never write code.
- 3. Report to the user: path of the created file, summary of the tickable
- actions, landing batch/section, and any external dependency (cross-repo,
- sequencing) flagged.
+ ## Steps
+ 1. One Bash call for the state (duplicates, active zones, team mode):
+
+ ```bash
+ ROOT="$(git rev-parse --show-toplevel)"
+ HOOK="${CLAUDE_PLUGIN_ROOT:+$CLAUDE_PLUGIN_ROOT/scripts}"; HOOK="${HOOK:-$ROOT/crew}/crew_hook.py"
+ ls "$ROOT"/crew/{TODO,CURRENT_TASKS,PAUSED}/; CLAUDE_PROJECT_DIR="$ROOT" python "$HOOK" count
+ grep -c "remote_claims : true" "$ROOT/crew/CLAUDE_CONTEXT/CREW_CONFIG.md" 2>/dev/null
+ ```
+
+ Existing task with the same intent → stop, no duplicate. Ambiguous product
+ or scope call → `ceo` first.
+ 2. **Remote claims** (only if the grep found `remote_claims : true`):
+ `python "$HOOK" claims check-dup --title "<title>" --zone "<zones>"` before
+ writing — non-empty `duplicates` → show them (title, holder, reason) and ask;
+ after writing, `python "$HOOK" claims publish <slug>.md --title "<title>" --zone "<batch zones>" --body-file crew/<TODO|CURRENT_TASKS>/<slug>.md`.
+ `offline` or failure → non-blocking, flag it.
+ 3. Choose the path:
+ - **Inline (default)** — a single task with a clear zone: write the task
+ file, then the `CLAUDE_BATCH.md` entry (new batch → append the section;
+ existing batch → `grep -n "^## "` and Read only that section before the
+ Edit). No subagent.
+ - **`manager`** — **≥2 tasks**, or zone / batch attachment ambiguous:
+ dispatch **a single** `Agent({subagent_type: "manager"})` with the template
+ below. No `manager` persona in this project → inline.
+ 4. Report: path of the created file(s), summary of the actions, landing
+ batch/section, and any external dependency (cross-repo, sequencing).
+
## Prompt template for the manager agent
```
- New task to add to the crew backlog.
+ New task(s) to add to the crew backlog.
<description of the feature/problem, context, why>
Known technical context:
<files/modules concerned if known, cross-repo dependencies if this project
has any, existing crew tasks to look at for a similar convention/infra>
- Apply the standard lifecycle (already in your role): file in
+ Apply the standard lifecycle (already in your role): file(s) in
crew/TODO/ or crew/CURRENT_TASKS/, concrete tickable `- [ ]` actions,
- INDEX.md up to date, CLAUDE_BATCH.md categorization (impact zone, existing
- or new batch, disjointness invariant), nothing outside crew/.
+ CLAUDE_BATCH.md categorization (impact zone with every path in backticks,
+ existing or new batch, disjointness invariant), nothing outside crew/.
- Report: path of the created file, summary of the tickable actions chosen,
+ Report: path of the created file(s), summary of the tickable actions chosen,
and landing batch/section in CLAUDE_BATCH.md.
```
-
- ## What this skill does not do
-
- - Does not decide business priority/scope in place of the `ceo` persona (if it
- exists in this project) — if the request is an ambiguous product decision
- rather than a pure breakdown, route to `ceo` first.
- - Never writes code — only `crew/` files.
- - Does not duplicate an existing task: check `crew/TODO/INDEX.md` and
- `crew/CURRENT_TASKS/INDEX.md` first.