From 84a7f03e9ffe06a683317eb7c8d22baf63e3f7b1 Mon Sep 17 00:00:00 2001 From: Stephen Walsh <868017+stphnwlsh@users.noreply.github.com> Date: Fri, 4 Dec 2026 14:21:10 -0600 Subject: [PATCH] Keep maintainer rules out of generated solutions --- .agents/agents/jacques.md | 4 +++- .agents/skills/template-authoring/SKILL.md | 2 +- AGENTS.md | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.agents/agents/jacques.md b/.agents/agents/jacques.md index 7723565..34a6000 100644 --- a/.agents/agents/jacques.md +++ b/.agents/agents/jacques.md @@ -62,11 +62,13 @@ Write the handoff as you stop, not from memory later, and never tick an item you ## When you stop and ask -- A change to `src/Application` or `src/Infrastructure`, or their tests. In the template repository those layers are shared by five templates, so the change has to travel to all of them. - A new package, or a major version upgrade. - A change to a public route, response shape, schema or anything else a client depends on. - Anything touching packaging, the pipeline or releases. - Anything no skill covers. Say so, and offer to write the missing skill as part of the change (`writing-a-skill`). + +- A change to `src/Application` or `src/Infrastructure`, or their tests. In the template repository those layers are shared by five templates, so the change has to travel to all of them. + ## How you disagree diff --git a/.agents/skills/template-authoring/SKILL.md b/.agents/skills/template-authoring/SKILL.md index 4e1ffd7..a9e7abd 100644 --- a/.agents/skills/template-authoring/SKILL.md +++ b/.agents/skills/template-authoring/SKILL.md @@ -40,7 +40,7 @@ Every optional feature is a toggle, and every toggle has the same shape, so peop Off means absent, not switched off. Files that only exist for a toggle go in a `(!include)` exclude list under `sources` in `template.json`, and code inside shared files is wrapped so `dotnet new` can leave it out. In C#, `#if includeAuth` and `#endif` start at the beginning of the line, with no brackets (the build fails IDE0047 and IDE0055 otherwise). In project files it's `` and ``, and in `appsettings.json` it's `//#if (includeAuth)` and `//#endif`. A file type the template engine doesn't know, such as the GraphQL schema snapshot, gets `#if (includeAuth)` and `#endif` lines through `SpecialCustomOperations` in `template.json`. -The repository itself stays all on. The Presentation project and the presentation integration tests define each toggle's constant, such as `includeAuth`, inside ``, which `dotnet new` always removes. The template's skills and `AGENTS.md` ship either way. +The repository itself stays all on. The Presentation project and the presentation integration tests define each toggle's constant, such as `includeAuth`, inside ``, which `dotnet new` always removes. The template's skills and `AGENTS.md` ship either way. Lines in `AGENTS.md` and the persona that only make sense in the template repository, such as the table of repository skills, sit inside `` as well, so a generated solution never gets them. A toggle's inputs, such as `authority` and `audience`, are separate symbols, enabled with `isEnabled` and made required with `isRequired` only when the toggle is on. Only `dotnet new` honours those two. Visual Studio and Rider show every input whatever the toggle says ([dotnet/templating#7860](https://github.com/dotnet/templating/issues/7860)), and Rider lists checkboxes first, then text fields in alphabetical order by label. So an input's label starts with its feature, such as "Authentication authority", to sit right under its checkbox, and its IDE description says it's only used when that box is ticked. A toggle that needs another one says so in its conditions, such as `(includeTests && includeArchitectureTests)`. Verify Template checks the defaults, everything on, everything off, and each toggle flipped on its own. diff --git a/AGENTS.md b/AGENTS.md index f15ec7b..f5e91fb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -16,8 +16,10 @@ Start with [Jacques](.agents/agents/jacques.md), our sous-chef and the persona e | `tests/Presentation.Tests.Unit` | Tool, result mapper and error filter tests. | | `tests/Presentation.Tests.Integration` | A real MCP client talking to the server through `WebApplicationFactory`. | | `.agents/skills` | How we do each kind of change, one skill per folder. | + Application and Infrastructure, and their tests, are identical in the five Lean Mean Clean Apps templates. Only Presentation differs. + ## Commands @@ -98,6 +100,7 @@ These are for this MCP server's presentation layer. The other templates have the | `json-serialization` | Add a result model or change how JSON looks | | `presentation-integration-tests` | Write a test that talks to the server through an MCP client | | `mcp-inspector` | Try the server by hand as a client sees it | + These are for working on the template repository itself, and they aren't included in solutions created with `dotnet new`: @@ -110,6 +113,7 @@ These are for working on the template repository itself, and they aren't include | `template-authoring` | Change `.template.config/` or the package | | `family-sync` | Carry a shared change to all five templates | | `releases` | Work with the monthly release | + ## Done means