diff --git a/AGENTS.md b/AGENTS.md index 3cd4aaa32..3d798497f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -74,6 +74,7 @@ Do commit code generated by `GenerateTools` — the `.Generated.cs` files are ch Full rules and examples: the `plain-english` skill, including issue/PR shape (Problem → Outcome → Acceptance criteria, anti-patterns). 9. **Never ping the former NUKE maintainer, Matthias Koch (GitHub handle `matkoch`).** He no longer maintains Fallout and does not want the notifications. Do not `@`-mention him (never write `@` before his handle, in any file or GitHub surface), add him as a reviewer/assignee, request his review, tag him in issue/PR/commit text, or add him as a commit co-author/`Co-authored-by:` trailer — from any AI tool. Credit NUKE's origin by name or a plain profile link — just never with a leading `@` (a bare `@handle` is what fires a mention). +10. **Avoid static state and `Lazy`.** Prefer an instance owned by the run's context or a service, with no static. A `static readonly` field is fine for immutable values (a compiled regex, a constant table). It is not fine for a mutable object, because `readonly` only stops reassignment and the contents stay shared between runs. Use `Lazy` only when the work is expensive and often not needed (for example, creating a network client). It adds a delegate and a check on every read, and that cost shows up in run time and CI time. Never use it on a hot path such as logging or an `Instance` facade. ## Repository map