@roomi-fields/grillhouse 0.34.2 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +21 -13
  3. package/cadre/templates/projet/.claude/settings.json +0 -1
  4. package/charte.md +4 -4
  5. package/docs/ARCHITECTURE.md +10 -4
  6. package/docs/INTERFACE.md +4 -3
  7. package/hooks/crochet.mjs +0 -6
  8. package/package.json +1 -1
  9. package/scripts/activites.mjs +41 -7
  10. package/scripts/circuit.mjs +10 -2
  11. package/scripts/enveloppe/enveloppe.mjs +44 -14
  12. package/scripts/enveloppe/lancer.sh +5 -1
  13. package/scripts/enveloppe/paquets-du-plan.mjs +3 -0
  14. package/scripts/flux-des-paquets.mjs +22 -8
  15. package/scripts/grillhouse-maj.mjs +19 -0
  16. package/scripts/mesure/base-de-passe.mjs +7 -0
  17. package/scripts/migrations/0.35.0-greffon-mattpocock-retire.mjs +41 -0
  18. package/scripts/migrations.mjs +2 -0
  19. package/scripts/places-du-serveur.mjs +12 -2
  20. package/scripts/seances.mjs +24 -2
  21. package/scripts/superviseur.mjs +6 -1
  22. package/scripts/tableau.mjs +19 -2
  23. package/scripts/verrous/verrou.mjs +7 -0
  24. package/skills/codebase-design/DEEPENING.md +37 -0
  25. package/skills/codebase-design/DESIGN-IT-TWICE.md +44 -0
  26. package/skills/codebase-design/SKILL.md +114 -0
  27. package/skills/domain-modeling/ADR-FORMAT.md +47 -0
  28. package/skills/domain-modeling/GLOSSARY-FORMAT.md +60 -0
  29. package/skills/domain-modeling/SKILL.md +74 -0
  30. package/skills/grill/SKILL.md +4 -5
  31. package/skills/grilling/SKILL.md +30 -0
  32. package/skills/pitmaster/SKILL.md +4 -3
  33. package/skills/pitmaster/references/cadre.md +1 -1
  34. package/skills/redacteur/SKILL.md +1 -1
  35. package/skills/testwriter/SKILL.md +7 -4
  36. package/skills/writing-for-agents/SKILL-MECHANICS.md +22 -0
  37. package/skills/writing-for-agents/SKILL.md +81 -0
@@ -344,9 +344,10 @@ seul testwriter et un seul développeur pour tout le ticket, chacun dans l'envel
344
344
  paquets du plan, puis le relecteur, qui relit l'ensemble. Ainsi un type change avec ses lecteurs,
345
345
  comme dans une demande de fusion de rustc : un auteur, une série de tests et de code, une CI sur
346
346
  l'ensemble, une revue. Sur un lot rendu, le circuit relance l'agent que nomme chaque constat,
347
- puis la passe finale restreinte à ce que le correctif change et à ses dépendants, et le relecteur
348
- relit la différence depuis la relecture d'avant et les constats ouverts ; la passe finale entière joue une fois
349
- avant l'intégration. Ainsi seul ce qui a changé se rejoue, comme Bazel ne joue que les cibles
347
+ puis la passe finale, qui joue toujours la bande du lot (sa base et ses dépendants), avant une
348
+ relecture, après elle et sur un lot accepté, et jamais le dépôt entier, que jouent la nuit et
349
+ l'intégration ; le relecteur relit la différence depuis la relecture d'avant et les constats
350
+ ouverts. Ainsi seul ce qui a changé se rejoue, comme Bazel ne joue que les cibles
350
351
  qu'un changement atteint.
351
352
 
352
353
  ⛔ **Aucune commande ne fait attendre le responsable** : dans une séance où il attend, celle du
@@ -7,7 +7,7 @@ seule adresse du cadre du projet.
7
7
  ## 1. Les outils
8
8
 
9
9
  Le cadre s'appuie sur des produits sur étagère, toujours présents : Beads (`bd`) pour les tickets
10
- (`docs/agents/issue-tracker.md`), le greffon `mattpocock-skills` pour le flux, RTFM pour la
10
+ (`docs/agents/issue-tracker.md`), les compétences `grillhouse:` pour le flux, RTFM pour la
11
11
  recherche, CodeGraph pour les appels. Les commandes du dépôt sont celles de la charte. Ainsi le
12
12
  projet se base sur l'existant, et chaque agent trouve les mêmes outils.
13
13
 
@@ -4,7 +4,7 @@ description: >
4
4
  Le rédacteur : rédiger un document du dépôt lu par des humains. À charger avant d'écrire ou de réécrire :
5
5
  l'architecture du projet ou d'un composant, son cadre, son interface ; une spécification ; un
6
6
  guide ; tout document de référence. Pour un document lu par un agent (compétence, charte,
7
- consigne), `mattpocock-skills:writing-for-agents`.
7
+ consigne), `grillhouse:writing-for-agents`.
8
8
  ---
9
9
 
10
10
  # Rédacteur — rédiger un document
@@ -152,18 +152,21 @@ autres sont verts avant le code, sans justification à donner. Chaque sorte de t
152
152
  | Banc de temps, témoin de temps | Un temps reste sous sa borne | Non : mesuré la nuit |
153
153
  | Test de nuit | Le produit entier, monté dans un projet d'essai | Oui s'il porte le travail du ticket, joué la nuit |
154
154
 
155
- Après ta séance, le circuit du ticket joue la preuve : il lance les seuls tests de ton lot, dans
155
+ Après ta séance, le circuit du ticket joue la preuve : il lance les seuls tests de ton lot que joue le jour, dans
156
156
  tous les paquets du plan, et écrit au ticket les rouges, les verts non nommés (acceptés, que le
157
157
  relecteur lit) et les tests nommés encore verts, qui sont un défaut : il te relance. Un test nommé
158
- que HEAD tient déjà vert sous le même nom n'a rien à prouver. Sous un plan « comportement changé »,
159
- la preuve passe avec au moins un rouge ; sans rouge, la question monte au superviseur. Ainsi la
158
+ que HEAD tient déjà vert sous le même nom n'a rien à prouver. Les fichiers de ton lot que joue la
159
+ seule nuit (un test de nuit, un banc, un témoin de temps) sont mis de côté : ils ne sont ni exigés
160
+ rouges ni cause de refus. Sous un plan « comportement changé », la preuve passe avec au moins un
161
+ rouge ; sans rouge, la question monte au superviseur. Ainsi la
160
162
  preuve mesure le travail du ticket, et aucun test ne rougit pour la forme.
161
163
 
162
164
  **Un rouge existant suffit** : sans fichier de ton lot, la preuve joue en entier les paquets du
163
165
  plan ; un test que HEAD tient et que le lot rougit (un lecteur dont le fournisseur a changé un
164
166
  type) est un rouge de la preuve, `rouge existant`, qui lance le développeur. Quand ces rouges
165
167
  couvrent les critères du ticket, tu n'écris aucun test neuf et ta passation le dit.
166
- Sans fichier de ton lot ni rouge, la preuve échoue. Ainsi le développeur du lecteur est lancé sur
168
+ Sans fichier de ton lot ni rouge, la preuve échoue, sauf quand les seuls fichiers de test de ton
169
+ lot sont ceux que joue la nuit : elle passe. Ainsi le développeur du lecteur est lancé sur
167
170
  ce que le lot casse.
168
171
 
169
172
  **Un fichier entier se nomme sans `test`** : `portent_le_travail` porte `fichier` (depuis la
@@ -0,0 +1,22 @@
1
+ # Skill mechanics
2
+
3
+ The skill-specific branch of [`writing-for-agents`](SKILL.md): what changes when the document is a skill (frontmatter, the invocation choice, and router skills). Everything else about writing it is the universal reference in `SKILL.md`.
4
+
5
+ ## Invocation
6
+
7
+ Two choices, trading the two loads:
8
+
9
+ - A **model-invoked** skill keeps a `description`, so the agent can fire it autonomously, and other skills can reach it. You can still type its name: model-invocation always _includes_ user reach; a description only ever adds agent discovery, never removes the human's. The description is the skill's top-level context pointer, forced to stay loaded at all times: permanent context load in exchange for discoverability. A model-invoked skill whose content is all reference is also one home for shared reference: another skill can invoke it, so reference needed by several skills lives in one place. Mechanics: omit `disable-model-invocation`, and write a model-facing description carrying the trigger branches (the pointer-writing rules in `SKILL.md` apply in full).
10
+ - A **user-invoked** skill strips the description from the agent's reach: only the human typing its name can invoke it, and no other skill can. Zero context load, but it spends cognitive load: you are the index that must remember it exists. Mechanics: set `disable-model-invocation: true`; the `description` becomes human-facing: a one-line summary, trigger lists stripped.
11
+
12
+ Pick model-invocation only when the agent must reach the skill on its own, or another skill must. If it only ever fires by hand, make it user-invoked and pay no context load.
13
+
14
+ Shared reference that two user-invoked skills both need can live in neither: with no descriptions, neither can fire the other. Push it to a plain file outside the skill system: external reference any skill can point at.
15
+
16
+ ## Splitting by invocation
17
+
18
+ The invocation cut of splitting (the sequence cut lives in `SKILL.md`): split off a model-invoked skill when you have a distinct leading word that should trigger it on its own (a trigger word you actually use in your prompts), or another skill must reach it. You pay context load for the new always-loaded description, so that independent reach has to be worth it.
19
+
20
+ ## Router skills
21
+
22
+ When user-invoked skills multiply past what you can remember, that piled-up cognitive load is cured by a **router skill**: one user-invoked skill that names the others and when to reach for each, so the human has one skill to remember instead of many. It can only hint, never fire them: user-invoked skills have no description, so nothing but the human can reach them.
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: writing-for-agents
3
+ description: Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
4
+ ---
5
+
6
+ Reference for writing any document an agent consumes: a skill, an `AGENTS.md` / `CLAUDE.md`, a doc reached by a pointer. The packaging differs; the writing does not: the same levers make each one predictable, since the agent takes the same _process_ every run rather than producing the same output.
7
+
8
+ When the document you're writing is a skill, read [`SKILL-MECHANICS.md`](SKILL-MECHANICS.md) for frontmatter, invocation choice, and router skills.
9
+
10
+ ## Context pointers
11
+
12
+ A **context pointer** is a reference held in the agent's context that names some out-of-context material and encodes the condition for reaching it. A skill's description is one; a line in `AGENTS.md` naming a doc is the same object. The pointer's _wording_, not its target, decides when the agent reaches the material, and how reliably. A must-have target behind a weakly worded pointer is a variance bug: sharpen the wording first, and inline the material only if sharpening fails.
13
+
14
+ A pointer does two jobs: state what the material is, and list the **branches** that should trigger reaching it (a branch is a distinct case the document handles, so different runs take different paths through it). Every word of an always-loaded pointer costs on every turn, so it earns even harder pruning than the body:
15
+
16
+ - **Front-load the leading word**: the pointer is where it does its triggering work.
17
+ - **One trigger per branch.** Synonyms that rename a single branch are one branch written twice; collapse them and keep only genuinely distinct branches.
18
+ - **Cut identity the body already carries.**
19
+
20
+ ## The two loads
21
+
22
+ Every document and pointer you add spends one of two budgets:
23
+
24
+ - **Context load** is the cost of always-loaded material on the agent's window: an `AGENTS.md` line, a skill description, anything sitting in context every turn, spending tokens and attention whether or not it fires.
25
+ - **Cognitive load** is the cost on the human: which documents exist and when to reach for each. The human is the index. Not a cost to minimise: it is the price of human agency; spend it where human judgement matters, remove it where it does not.
26
+
27
+ Material reached only through a pointer escapes context load at the price of the pointer's own line; material with no pointer at all rides entirely on cognitive load.
28
+
29
+ ## Information hierarchy
30
+
31
+ A document is built from two content types: **steps** (the ordered actions the agent performs) and **reference** (definitions, rules, facts consulted on demand). The two mix freely: all steps (a recipe), all reference (a review's rules, this skill), or both. The core decision is where each piece sits on the **information hierarchy**, a ladder ranked by how immediately the agent needs the material:
32
+
33
+ 1. **In-file step** is the primary tier: what the agent does, in order.
34
+ 2. **In-file reference** is consulted on demand. Often a legitimately flat peer-set (every rule of a review on one rung), which is a fine arrangement, not a smell.
35
+ 3. **Disclosed reference** is pushed out into a separate file, reached by a context pointer, loaded only when the pointer fires. Spans a sibling file in the same folder through fully external reference that lives anywhere and any document can point at.
36
+
37
+ Push too little down and the top bloats; push too much and you hide material the agent actually needs. That tension is the whole decision.
38
+
39
+ **Progressive disclosure** is the move down the ladder (out of the main file and behind a pointer) so the top stays legible. Not primarily a token optimisation: it is how the hierarchy is protected. Branching is the cleanest disclosure test: inline what every branch needs, and push behind a pointer what only some branches reach. When a document has steps, in-file reference that should be disclosed buries them and turns attending to them into a coin-flip: a variance lever, not just a legibility one.
40
+
41
+ **Co-location** is the within-file companion: where the ladder decides _how far down_ a piece sits, co-location decides _what sits beside it_ once there. Keep a concept's definition, rules, and caveats under one heading rather than scattered, so reading one part brings its neighbours with it. The test: the document should read like documentation written for the agent. Grouped material reads that way; scattered material does not. (Distinct from duplication: that repeats one meaning in two places; scattering fragments one meaning across many.)
42
+
43
+ **Sprawl** is the failure mode here: a document simply too long, even when every line is live and unique. Attention thins across the excess, and every extra line is one more to keep relevant. The cure is the ladder: disclose reference behind pointers, and split by branch or sequence so each path carries only what it needs.
44
+
45
+ ## Steps and completion criteria
46
+
47
+ Every step ends on a **completion criterion**, the condition that tells the agent the work is done. Two properties make it a lever:
48
+
49
+ - **Clarity**: can the agent tell done from not-done? A vague bound ("understanding reached") invites **premature completion**: ending the step before it is genuinely done, attention slipping to _being done_. The visible steps still ahead (the **post-completion steps**) supply the pull; the criterion's clarity is the resistance. Defend in order: **sharpen the bound first** (local and cheap); only if it is irreducibly fuzzy _and_ you observe the rush, hide the later steps by splitting the sequence. Hiding only works across a real context boundary (a hand-off or a subagent dispatch; an inline call leaves the later steps in context and clears nothing).
50
+ - **Demand**: how much it requires. "Every modified model accounted for" forces thorough work where "produce a change list" does not. Demand drives **legwork** (the digging the agent does within the work, latent in the wording rather than written as its own step), and it is not step-bound: "every rule applied" binds a body of flat reference just as "every step done" binds a sequence, which is how an all-reference document still carries an exhaustiveness bar.
51
+
52
+ The strongest criteria are both checkable and exhaustive.
53
+
54
+ ## When to split
55
+
56
+ Splitting one document into two spends one of the two loads, so split only when the cut earns it:
57
+
58
+ - **By sequence**: split a run of steps where the post-completion steps tempt the agent to rush the one in front of it. Keeping them out of view drives more legwork on the current task. Beware the reverse: merging sequences exposes each step's later steps to what follows, inviting premature completion.
59
+ - **By invocation**, skill-specific: see [`SKILL-MECHANICS.md`](SKILL-MECHANICS.md).
60
+
61
+ ## Leading words
62
+
63
+ A **leading word** is a compact concept already living in the model's pretraining that the agent thinks with while running the document (_lesson_, _fog of war_, _tracer bullets_). Repeated as a token, never as a sentence, it accumulates a distributed definition and anchors a whole region of behaviour in the fewest tokens, by recruiting priors the model already holds. Coining your own works if you define it clearly, but a made-up word recruits no priors: you pay in definition tokens what a pretrained word gives free; reach for an existing word first.
64
+
65
+ It anchors twice. In the body, _execution_: the agent reaches for the same behaviour every time the word appears, and inside flat reference it focuses attention on a class of thing to look for. In a pointer, _invocation_: when the same word lives in your prompts, your docs, and your codebase, the agent links that shared language to the material and reaches it more reliably.
66
+
67
+ Hunt for opportunities to refactor with leading words. A triad spelled out at three sites, a pointer spending a sentence to gesture at one idea. Each is a passage begging to collapse into a single token:
68
+
69
+ - "fast, deterministic, low-overhead" → _tight_ (a _tight_ loop).
70
+ - "a loop you believe in" → _red_, turning a fuzzy gate into a binary observable state (the loop goes _red_ on the bug, or it doesn't).
71
+
72
+ You win twice: fewer tokens, and a sharper hook for the agent to hang its thinking on. Assume every document is carrying restatements that leading words retire. Go find them.
73
+
74
+ **Negation** is the failure mode beside this lever: steering by prohibition drags the forbidden behaviour into context and makes it _more_ available, not less. _Don't think of an elephant_, and the elephant is all there is; the negation is a weak modifier the strongly-activated concept overruns, so the ban half-reads as an instruction to do the thing. Prompt the **positive**: state the target behaviour ("write one-line comments") so the banned one is never spoken. A prohibition earns its place only as a hard guardrail you cannot phrase positively; even then, pair it with the positive target so attention lands on what to do.
75
+
76
+ ## Pruning
77
+
78
+ - Keep each meaning in a **single source of truth**: one authoritative place, so changing the behaviour is a one-place edit. **Duplication** (the same meaning in more than one place) costs maintenance and tokens, and inflates a meaning's prominence on the ladder past its real rank. (The accidental inverse of a leading word, which repeats a token on purpose, never the meaning.)
79
+ - The **environment** is a source of truth too (`package.json` scripts, config files, the directory layout, `--help` output), and a document that restates it is a **cache**: a copy of a lookup, earning its load only when the lookup is expensive. Cache what the agent cannot find by looking: the unwritten convention, the reason behind a choice, the gotcha no config confesses. Leave the one-file, one-command lookups to the environment, where they cannot go stale.
80
+ - Check every line for **relevance**: does it still bear on what the document does? A line loses relevance by never bearing on the task (mere exposition, or a branch that should be disclosed) or by going stale as the behaviour or world it describes changes. Shorter documents are easier to keep relevant. Without a pruning discipline the default fate is **sediment**: stale layers that settle because adding feels safe and removing feels risky, until you must core down through them to find what is still live.
81
+ - Hunt **no-ops** sentence by sentence: an instruction the model already obeys by default pays load to say nothing. The test (does it change behaviour versus the default?) is model-relative, not reader-relative: two people disagreeing about a no-op disagree about the default, and settle it by running the document, not by debate. When a sentence fails, delete the whole sentence rather than trim words from it. The test also grades leading words: a word too weak to beat the default (_be thorough_ when the agent is already thorough-ish) is a no-op, and the fix is a stronger word (_relentless_), not a different technique.