Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .agents/agents/jacques.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`).
<!--#if (false) -->
- 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.
<!--#endif -->

## How you disagree

Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/template-authoring/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<Feature>)` 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 `<!--#if (includeAuth) -->` and `<!--#endif -->`, 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 `<!--#if (false) -->`, 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 `<!--#if (false) -->`, 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 `<!--#if (false) -->` 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.

Expand Down
4 changes: 4 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
<!--#if (false) -->

Application and Infrastructure, and their tests, are identical in the five Lean Mean Clean Apps templates. Only Presentation differs.
<!--#endif -->

## Commands

Expand Down Expand Up @@ -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 |
<!--#if (false) -->

These are for working on the template repository itself, and they aren't included in solutions created with `dotnet new`:

Expand All @@ -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 |
<!--#endif -->

## Done means

Expand Down
Loading