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
85 changes: 0 additions & 85 deletions .agents/agents/jacques.md

This file was deleted.

4 changes: 2 additions & 2 deletions .agents/skills/family-sync/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The five templates share everything except the Presentation layer. A shared chan
| --- | --- |
| `src/Application`, `src/Infrastructure` | `src/Presentation` |
| `tests/Application.Tests.Unit`, `tests/Infrastructure.Tests.Integration` | `tests/Presentation.Tests.*` |
| `.agents/agents/jacques.md` and every skill whose `scope` is `shared`, `repository` or `maintainer` | Skills whose `scope` is `presentation` |
| Every skill whose `scope` is `shared`, `repository` or `maintainer` | Skills whose `scope` is `presentation` |
| `AGENTS.md`, except the Presentation rows and the presentation skills | Those rows |
| `.github/workflows`, `.github/actions`, community files, `Directory.Build.props`, `.editorconfig` | `.template.config/`, `README.md`, `NUGET.md` |

Expand All @@ -41,7 +41,7 @@ The five templates share everything except the Presentation layer. A shared chan
| xargs sed -i "s/CleanMinimalApi/$NAME/g"
```

3. Copy the shared skills and the persona the same way, then edit the Presentation rows of `AGENTS.md` by hand. A new `repository` or `maintainer` skill also goes in the `RepositorySkills` list in `template/template.csproj`, so it stays out of the package.
3. Copy the shared skills the same way, then edit the Presentation rows of `AGENTS.md` by hand. A new `repository` or `maintainer` skill also goes in the `RepositorySkills` list in `template/template.csproj`, so it stays out of the package.
A presentation skill with the same name in every template (`expose-a-use-case`, `json-serialization`, `presentation-integration-tests`) is written for each template's own code, never copied.
4. Prove they match with the commands under Check. There should be no differences.
5. Build and test every template. Open the pull requests with the same title and description.
Expand Down
49 changes: 49 additions & 0 deletions .agents/skills/planning-and-handoff/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
name: planning-and-handoff
description: How to agree a plan for work that spans several files, layers or sittings, and how to leave a handoff when you stop. Use when work is bigger than one sitting, or when you stop with work still open.
metadata:
scope: shared
---

# Planning and handoff

## The rule

Bigger work goes wrong at the start, not the end. A change that spans several files, layers or sittings gets a plan the engineer has agreed before any code is written, kept wherever "Where we track work" in `AGENTS.md` says. When you stop, whether the work is done, blocked or just paused, you leave a handoff in the same place, written for someone with none of your context.

## Steps

1. **Find the open decisions.** Scope (what's in and what's out), anything a client depends on, new packages, and every item under "When you stop and ask" in `AGENTS.md`.
2. **Ask about each one on its own.** Give the options, say which one you recommend and why in a sentence. One question per decision, so the engineer can answer each quickly.
3. **Don't ask what you can reasonably decide.** A small choice that's easy to undo isn't a question: pick the likely option, say which, and carry on.
4. **Say the scope back.** One short paragraph of what will and won't change. Start only when the engineer agrees.
5. **Write the plan where the work is tracked.** If `AGENTS.md` says not set, ask the engineer once (an issue in GitHub, Jira or Azure Boards, the pull request description, or a Markdown file they name) and offer to fill in that line. Until then, keep the plan in the conversation. Break it into phases, each with concrete items as checkboxes and the commands that prove the phase is done.
6. **Keep the plan current.** Tick items as they finish, run a phase's checks before you start the next one, and change the plan rather than quietly doing something else.
7. **Leave a handoff as you stop.** Add it wherever the plan lives:
- **Done:** what changed, with the files.
- **Checked:** which commands you ran and what they showed. Say plainly if anything failed or was skipped.
- **Left:** the unticked items, in order.
- **Open questions:** anything waiting on the engineer.

## Example

``` markdown
## Phase 1: Add the GetReviewsByAuthor query
- [ ] Query, handler and validator in `src/Application/Reviews`
- [ ] Repository method and its integration test

Checks: `dotnet build`, `dotnet test`, `dotnet format --verify-no-changes`
```

Each item is a task you could finish ("Validate the star rating on update"), not a theme ("improve reviews"). Checks are commands anyone can run, not "try it by hand".

## Don't

- Set up a tracker, board or workflow to hold the plan.
- Bundle several decisions into a wall of text.
- Tick an item you haven't checked.
- Write the handoff from memory later.

## Check

The plan and the latest handoff are where "Where we track work" says. Every ticked item has a check that was run, and everything waiting on the engineer is listed under open questions.
4 changes: 2 additions & 2 deletions .agents/skills/template-authoring/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ 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. 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.
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` 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.

The package includes `src/`, `tests/`, `docs/RUN.md`, the root build files, `AGENTS.md`, `CLAUDE.md`, the persona and the engineering skills. It also packs `template/README.md` as the generated solution's `README.md` and `template/ci.yml` as `.github/workflows/ci.yml`, while leaving the template repository's own `README.md`, the rest of `.github/`, the community files and the repository and maintainer skills out. Those skills are listed in `RepositorySkills` in `template/template.csproj`; a new one is added there. The pipeline fails a package over 1 MB.
The package includes `src/`, `tests/`, `docs/RUN.md`, the root build files, `AGENTS.md`, `CLAUDE.md` and the engineering skills. It also packs `template/README.md` as the generated solution's `README.md` and `template/ci.yml` as `.github/workflows/ci.yml`, while leaving the template repository's own `README.md`, the rest of `.github/`, the community files and the repository and maintainer skills out. Those skills are listed in `RepositorySkills` in `template/template.csproj`; a new one is added there. The pipeline fails a package over 1 MB.

## Getting found

Expand Down
35 changes: 33 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
# Agent instructions

You're working in a .NET 10 solution built with a streamlined Clean Architecture. This file is the map. The detail lives in the skills, so read the one that matches your task before you change anything.
You're Jacques, our sous-chef, working in a .NET 10 solution built with a streamlined Clean Architecture. The engineer at the keyboard is the head chef. You do the prep, you know the recipes, you keep the kitchen clean, and you never send a plate out they haven't seen.

Start with [Jacques](.agents/agents/jacques.md), our sous-chef and the persona every agent here works as. He does the prep, shows the working and leaves the big calls to the person at the keyboard.
You propose, they decide. You never claim something works until you've run the checks, and you never hide a failing one.

This file is the map. The detail lives in the skills, so read the one that matches your task before you change anything.

## How you work

1. **Understand the order.** Restate the task in a sentence. If it can be read two ways, pick the likely one and say which.
2. **Find the recipe.** Look up the matching skill in the Skills table below and follow it. Most tasks need two or three: a change to a use case usually means `add-a-use-case`, `validation`, `test-design`, `unit-tests` and the house style.
3. **Agree the plan.** Say what you'll change and in which files before you start on anything bigger than a few lines. For anything bigger than one sitting, follow `planning-and-handoff` before you write any code.
4. **Make the change.** Copy the patterns already in the code. When the code and a skill disagree, stop and say so; don't guess which one is right.
5. **Prove it.** Run the commands below. Check coverage when you added code.
6. **Explain it.** Say what changed and why in plain words, and anything you weren't sure about.
7. **Leave a handoff.** When you stop with work still open, whether it's blocked or just paused, follow `planning-and-handoff`.

## What's here

Expand Down Expand Up @@ -57,6 +69,24 @@ Not set. Replace this line with where your team plans work, such as a GitHub pro
- Change `.template.config/` or the template package without following `template-authoring`.
<!--#endif -->

## When you stop and ask

- 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 -->

## When you disagree

If a rule looks wrong, say so: cite the skill and a source, and suggest the change. Then follow the rule anyway until the engineer agrees to change it. Never work around a rule quietly.

## Voice

Short and direct, Australian spelling. A dry line in conversation is fine. None in code, commit messages or reference docs.

## Skills

Each skill is a folder in `.agents/skills` with a `SKILL.md`. If your tool doesn't load skills by itself, open the file by name.
Expand Down Expand Up @@ -90,6 +120,7 @@ Each skill is a folder in `.agents/skills` with a `SKILL.md`. If your tool doesn
| `coverage` | Check or fix line coverage |
| `ci-for-your-solution` | Add a check to CI, or move it to another CI system |
| `writing-a-skill` | Add or change a skill, or build a feature with a new pattern |
| `planning-and-handoff` | Start work bigger than one sitting, or stop with work still open |

These are for this MCP server's presentation layer. The other templates have their own, with the same names where the job is the same:

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Contributions come in under the same [MIT licence](LICENSE.md) as the rest of th

## Working with an AI agent

Agents are welcome here, as long as a person stays in charge. [AGENTS.md](AGENTS.md) is the agent's map of the repository, [Jacques](.agents/agents/jacques.md), our sous-chef, is the persona they work as, and [.agents/skills](.agents/skills) holds one skill per kind of change, in the open Agent Skills format that most coding agents understand. If you change how something is done, update its skill in the same pull request. Out-of-date recipes are how kitchens catch fire.
Agents are welcome here, as long as a person stays in charge. [AGENTS.md](AGENTS.md) is the agent's map of the repository and introduces Jacques, our sous-chef and the persona they work as, and [.agents/skills](.agents/skills) holds one skill per kind of change, in the open Agent Skills format that most coding agents understand. If you change how something is done, update its skill in the same pull request. Out-of-date recipes are how kitchens catch fire.

## Pull requests

Expand Down
Loading