docs: expand AGENTS.md with git workflow, boundaries and code style examples - #5526
docs: expand AGENTS.md with git workflow, boundaries and code style examples#5526jamescrosswell wants to merge 2 commits into
Conversation
…xamples Fills the gaps against the six areas that matter for agent instruction files: commands, testing, project structure, code style, git workflow and boundaries. - Git Workflow: the PR title is the changelog line, so document the conventional-commit format and the prefix -> CHANGELOG section mapping from .github/release.yml. The previous wording pointed at "commit message conventions" without ever stating the format. - Boundaries: collect the five never-edit paths (generated, vendored or CI-guarded) into one table with what to do instead; add never-commit-secrets and an ask-first tier. - Code Style: name .editorconfig as authoritative, dotnet format as the enforcer, and show the no-comments rule as good/bad snippets. - Before you're done: the build/test/format gate, plus a note that the API approval tests self-rewrite their snapshots on a local run. - Promote Code Intelligence to a top-level heading; it was nested under Commit Attribution. CLAUDE.md and .github/copilot-instructions.md are symlinks to AGENTS.md and pick these up unchanged. Co-Authored-By: Claude Opus 5 <[email protected]>
szokeasaurusrex
left a comment
There was a problem hiding this comment.
Did not review the technical content as I am not a .NET expert, but these changes look reasonable
| ### Commit Attribution | ||
|
|
||
| AI commits MUST include: | ||
|
|
||
| ``` | ||
| Co-Authored-By: <Agent Name> <[email protected]> | ||
| ``` | ||
|
|
There was a problem hiding this comment.
l: These instructions do not usually play well with agent harnesses like Pi which do not have a commit email address.
I have found that my Pi agent will hallucinate commit emails when given this instruction.
adinauer
left a comment
There was a problem hiding this comment.
LGTM just some minor things that might need correction. Leaving up to you whether there's anything to fix. Feel free to ignore those comments.
|
|
||
| | Path | Instead | | ||
| |------|---------| | ||
| | `*.slnf` | Edit `scripts/generate-solution-filters-config.yml`, then run `scripts/generate-solution-filters.ps1` | |
There was a problem hiding this comment.
l
| | `*.slnf` | Edit `scripts/generate-solution-filters-config.yml`, then run `scripts/generate-solution-filters.ps1` | | |
| | `*.slnf` | Edit `scripts/generate-solution-filters-config.yaml`, then run `scripts/generate-solution-filters.ps1` | |
| | Path | Instead | | ||
| |------|---------| | ||
| | `*.slnf` | Edit `scripts/generate-solution-filters-config.yml`, then run `scripts/generate-solution-filters.ps1` | | ||
| | `CHANGELOG.md` | Generated on squash-merge from the PR title. `.github/workflows/changelog-guard.yml` fails CI on manual entries | |
There was a problem hiding this comment.
l Does this happen on release (by craft) rather than during squash-merge?
| | `fix:` / `bugfix:` | Fixes 🐛 | | ||
| | `chore(deps):` | Dependencies ⬆️ | | ||
| | any type with `!`, e.g. `feat!:` | Breaking Changes 🛠 | | ||
| | anything else | omitted from the changelog | |
There was a problem hiding this comment.
l
is this true or does it land in "Other"?
There was a problem hiding this comment.
+1, iirc there is an "Internal Changes" (or similar) section
#skip-changelog
Audits
AGENTS.mdagainst the six areas that GitHub's analysis of agent instruction files found separate the ones that work from the ones that don't — commands, testing, project structure, code style, git workflow, boundaries — and fills the gaps. The file was already strong on commands, testing and structure; this covers the other three.Notes for review
CLAUDE.mdand.github/copilot-instructions.mdare symlinks toAGENTS.md, so this one file covers all three agent vendors — no drift to keep in sync..github/agents/*.agent.md), so its YAML frontmatter / persona / "create six named agents" advice is deliberately not applied here. Only the six-areas finding transfers to a repo-rootAGENTS.md.