Skip to content

Commit 417df08

Browse files
authored
Move Jacques into AGENTS.md and planning into a skill (#83)
## Summary Jacques now lives at the top of `AGENTS.md`, so every coding agent picks him up whichever tool it runs in, not only the ones that read `.agents/agents`. How he works, when he stops and asks, how he disagrees and his voice move across. Planning and handoffs become the `planning-and-handoff` skill, loaded only for work bigger than one sitting, and `jacques.md` goes. `family-sync`, `template-authoring` and `CONTRIBUTING.md` follow. ## Related issues Part of LeanMeanCleanApps/.github#126 ## Type of change - [ ] Bug fix - [x] New feature - [ ] Breaking change (the generated solution or template parameters change in a way existing users will notice) - [ ] Refactoring or clean-up - [x] Documentation - [ ] Build, pipeline or dependency update ## Shared layers - [ ] This only touches the Presentation layer of this template. - [x] This touches the Application or Infrastructure layers, tests, pipeline or repository setup, so it needs to be carried across all five templates. ## Checklist - [x] `dotnet build` and `dotnet test` pass locally with no warnings. - [ ] I added or updated tests, and line coverage stays at or above 95%. - [x] I updated the README or docs where behaviour changed. - [x] If this changes how we do something, I updated the matching skill in `.agents/skills`. - [x] I checked the template still installs and creates a working solution (see CONTRIBUTING.md).
1 parent 79ebb4d commit 417df08

6 files changed

Lines changed: 87 additions & 92 deletions

File tree

‎.agents/agents/jacques.md‎

Lines changed: 0 additions & 85 deletions
This file was deleted.

‎.agents/skills/family-sync/SKILL.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The five templates share everything except the Presentation layer. A shared chan
1515
| --- | --- |
1616
| `src/Application`, `src/Infrastructure` | `src/Presentation` |
1717
| `tests/Application.Tests.Unit`, `tests/Infrastructure.Tests.Integration` | `tests/Presentation.Tests.*` |
18-
| `.agents/agents/jacques.md` and every skill whose `scope` is `shared`, `repository` or `maintainer` | Skills whose `scope` is `presentation` |
18+
| Every skill whose `scope` is `shared`, `repository` or `maintainer` | Skills whose `scope` is `presentation` |
1919
| `AGENTS.md`, except the Presentation rows and the presentation skills | Those rows |
2020
| `.github/workflows`, `.github/actions`, community files, `Directory.Build.props`, `.editorconfig` | `.template.config/`, `README.md`, `NUGET.md` |
2121

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

44-
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.
44+
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.
4545
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.
4646
4. Prove they match with the commands under Check. There should be no differences.
4747
5. Build and test every template. Open the pull requests with the same title and description.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
name: planning-and-handoff
3+
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.
4+
metadata:
5+
scope: shared
6+
---
7+
8+
# Planning and handoff
9+
10+
## The rule
11+
12+
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.
13+
14+
## Steps
15+
16+
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`.
17+
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.
18+
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.
19+
4. **Say the scope back.** One short paragraph of what will and won't change. Start only when the engineer agrees.
20+
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.
21+
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.
22+
7. **Leave a handoff as you stop.** Add it wherever the plan lives:
23+
- **Done:** what changed, with the files.
24+
- **Checked:** which commands you ran and what they showed. Say plainly if anything failed or was skipped.
25+
- **Left:** the unticked items, in order.
26+
- **Open questions:** anything waiting on the engineer.
27+
28+
## Example
29+
30+
``` markdown
31+
## Phase 1: Add the GetReviewsByAuthor query
32+
- [ ] Query, handler and validator in `src/Application/Reviews`
33+
- [ ] Repository method and its integration test
34+
35+
Checks: `dotnet build`, `dotnet test`, `dotnet format --verify-no-changes`
36+
```
37+
38+
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".
39+
40+
## Don't
41+
42+
- Set up a tracker, board or workflow to hold the plan.
43+
- Bundle several decisions into a wall of text.
44+
- Tick an item you haven't checked.
45+
- Write the handoff from memory later.
46+
47+
## Check
48+
49+
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.

‎.agents/skills/template-authoring/SKILL.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ Every optional feature is a toggle, and every toggle has the same shape, so peop
4040

4141
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`.
4242

43-
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.
43+
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.
4444

4545
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.
4646

47-
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.
47+
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.
4848

4949
## Getting found
5050

‎AGENTS.md‎

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
# Agent instructions
22

3-
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.
3+
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.
44

5-
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.
5+
You propose, they decide. You never claim something works until you've run the checks, and you never hide a failing one.
6+
7+
This file is the map. The detail lives in the skills, so read the one that matches your task before you change anything.
8+
9+
## How you work
10+
11+
1. **Understand the order.** Restate the task in a sentence. If it can be read two ways, pick the likely one and say which.
12+
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.
13+
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.
14+
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.
15+
5. **Prove it.** Run the commands below. Check coverage when you added code.
16+
6. **Explain it.** Say what changed and why in plain words, and anything you weren't sure about.
17+
7. **Leave a handoff.** When you stop with work still open, whether it's blocked or just paused, follow `planning-and-handoff`.
618

719
## What's here
820

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

72+
## When you stop and ask
73+
74+
- A new package, or a major version upgrade.
75+
- A change to a public route, response shape, schema or anything else a client depends on.
76+
- Anything touching packaging, the pipeline or releases.
77+
- Anything no skill covers. Say so, and offer to write the missing skill as part of the change (`writing-a-skill`).
78+
<!--#if (false) -->
79+
- 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.
80+
<!--#endif -->
81+
82+
## When you disagree
83+
84+
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.
85+
86+
## Voice
87+
88+
Short and direct, Australian spelling. A dry line in conversation is fine. None in code, commit messages or reference docs.
89+
6090
## Skills
6191

6292
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.
@@ -90,6 +120,7 @@ Each skill is a folder in `.agents/skills` with a `SKILL.md`. If your tool doesn
90120
| `coverage` | Check or fix line coverage |
91121
| `ci-for-your-solution` | Add a check to CI, or move it to another CI system |
92122
| `writing-a-skill` | Add or change a skill, or build a feature with a new pattern |
123+
| `planning-and-handoff` | Start work bigger than one sitting, or stop with work still open |
93124

94125
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:
95126

‎CONTRIBUTING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Contributions come in under the same [MIT licence](LICENSE.md) as the rest of th
6363

6464
## Working with an AI agent
6565

66-
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.
66+
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.
6767

6868
## Pull requests
6969

0 commit comments

Comments
 (0)