Lukasz Boryn f5227325a3 refactor(skills): split grill-with-docs into router + domain-modeling
Mirror upstream's structural split. Old grill-with-docs bundled the
Socratic interview and the docs-discipline in one model-invoked skill;
upstream now separates them.

- Rename engineering/grill-with-docs/ -> engineering/domain-modeling/
  (the active glossary / ADR discipline). Model-invocable, fires when
  another skill needs canonical vocabulary.
- Adopt upstream's active-vs-reading distinction in domain-modeling/SKILL.md.
- Detect multi-context mode from CONTEXT-MAP.md presence (was a manual
  switch).
- New engineering/grill-with-docs/SKILL.md is now a 16-line user-invoked
  router (disable-model-invocation: true). It composes grill-me
  (Socratic interview) and domain-modeling (docs discipline).
- Trim examples-r.md to 99 lines: drop CONTEXT-MAP-kicks-in section
  (covered in SKILL.md), compress NOT-written bullets and
  zero-implementation note, drop decorative narration.
- Retarget cross-refs in diagnose and bdd to domain-modeling (their
  interest is canonical vocabulary, not the interview).
- Retarget plan-project's three-of-three rule pointer and vocabulary
  See-also to domain-modeling.
- Fix pre-existing broken path in sieve See-also
  (../../productivity/grill-with-docs -> ../grill-with-docs).
- Update upstream attribution URLs in ADR-FORMAT.md and CONTEXT-FORMAT.md
  (upstream renamed grill-with-docs -> domain-modeling).
- README: replace single grill-with-docs entry with router + domain-modeling
  pair; retarget examples-r.md path.
2026-06-19 00:12:06 +02:00

80 lines
2.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ADR format
ADRs live in `docs/adr/` with sequential numbering: `0001-<slug>.md`,
`0002-<slug>.md`, etc. Create `docs/adr/` lazily — only when the first
ADR is needed.
## Template
```md
# {Short title of the decision}
{1–3 sentences: context, what was decided, and why.}
```
That's it. An ADR can be a single paragraph. The value is recording
*that* a decision was made and *why* — not in filling out sections.
## Optional sections
Add only when they add genuine value. Most ADRs won't need them.
- **Status** frontmatter (`proposed | accepted | deprecated | superseded
by ADR-NNNN`) — when decisions are revisited.
- **Considered Options** — when rejected alternatives are worth
remembering.
- **Consequences** — when non-obvious downstream effects need calling
out.
## Numbering
Scan `docs/adr/` for the highest existing number and increment by one.
## When to offer an ADR — three-of-three test
All three must hold. If any one is missing, skip the ADR.
1. **Hard to reverse.** The cost of changing your mind later is
meaningful.
2. **Surprising without context.** A future reader will look at the code
and wonder *"why on earth did they do it this way?"*
3. **The result of a real trade-off.** There were genuine alternatives
and you picked one for specific reasons.
### What qualifies
- **Architectural shape.** "Monorepo." "Write model is event-sourced,
read model is projected into Postgres." "Bookdown chapters are knit
per-chapter to bound render time."
- **Integration patterns between contexts.** "Ordering and Billing
communicate via domain events, not synchronous HTTP."
- **Technology choices that carry lock-in.** Database, message bus, auth
provider, deployment target, pipeline framework (`targets` vs
`drake`). Not every library — only the ones that would take a quarter
to swap.
- **Boundary and scope decisions.** "Customer data is owned by the
Customer context; others reference by ID only." The *no*-s are as
valuable as the *yes*-s.
- **Deliberate deviations from the obvious path.** "Manual SQL instead
of an ORM because X." "`data.table` instead of `dplyr` in `R/inf/`
because of memory." Stops the next engineer from "fixing" something
deliberate.
- **Constraints not visible in the code.** "Can't use cloud X because of
compliance." "Response times must be < 200 ms because of partner
contract."
- **Rejected alternatives when the rejection is non-obvious.** If you
considered GraphQL and picked REST for subtle reasons, record it —
otherwise someone will suggest GraphQL again in six months.
### What does NOT qualify
- Easy to reverse: a function rename, a config tweak. You'll just
reverse it.
- Not surprising: the obvious choice nobody would question.
- No real alternative: there was nothing to weigh.
---
_Format adapted from
<https://github.com/mattpocock/skills/blob/main/skills/engineering/domain-modeling/ADR-FORMAT.md>._