Improve AGENTS.md (#36974)

1. Remove header line, useless context bloat
2. Reword all "before commiting" lines because some people may not be
using the agent to commit, only to write changes.
This commit is contained in:
silverwind
2026-03-24 17:49:29 +01:00
committed by GitHub
parent c453d09c36
commit 66b8178e59

View File

@@ -1,10 +1,8 @@
# Instructions for agents
- Use `make help` to find available development targets - Use `make help` to find available development targets
- Before committing `.go` changes, run `make fmt` to format, and run `make lint-go` to lint - Run `make fmt` to format `.go` files, and run `make lint-go` to lint them
- Before committing `.ts` changes, run `make lint-js` to lint - Run `make lint-js` to lint `.ts` files
- Before committing `go.mod` changes, run `make tidy` - Run `make tidy` after any `go.mod` changes
- Before committing new `.go` files, add the current year into the copyright header - Add the current year into the copyright header of new `.go` files
- Before committing any files, remove all trailing whitespace from source code lines - Ensure no trailing whitespace in edited files
- Never force-push to pull request branches - Never force-push to pull request branches
- Always start issue and pull request comments with an authorship attribution - Always start issue and pull request comments with an authorship attribution