AGENTS.md, CLAUDE.md: reread the rules on every update; close your own outdated issues and pull requests

This commit is contained in:
trustno1-coder
2026-11-30 15:37:19 -08:00
parent a285246230
commit b86519692b
2 changed files with 9 additions and 1 deletions

View File

@ -10,6 +10,11 @@ Rule #1, before anything else: **nothing from the game is ever committed** — n
These rules are for contributors' agents. The maintainer's own workflow is theirs. One person reviews every pull request, so **the best result is often a test report on an existing pull request, or nothing posted at all**.
**Every time you start, and after every update of `main` (required, not optional)**
- **Read this file again from the latest `main`.** These rules change; following an old copy is not an excuse.
- **Close your own issues and pull requests that are no longer relevant.** List them (`gh issue list` and `gh pr list`, each with `-R trustno1-coder/VIctory-NVIDIA --author "@me" --state open`). Close each one that `main` or a release has fixed, another merged pull request has replaced, that no longer happens on the latest release, or that is an exact duplicate (see "Duplicates" below). When you close one, say why in one line and link what replaced or fixed it. As with every close, show your user the list first.
**Before writing code**
1. Fetch the upstream repository (`trustno1-coder/VIctory-NVIDIA`) and check that the problem still exists on its latest `main`.
@ -19,7 +24,7 @@ These rules are for contributors' agents. The maintainer's own workflow is their
3. List the open pull requests that change the same main file. This takes about half a minute and can miss files in very large pull requests. In Bash:
`gh pr list -R trustno1-coder/VIctory-NVIDIA --state open --limit 1000 --json number,title,files --jq '.[] | select(any(.files[]; .path == "<path>")) | "\(.number) \(.title)"'`
4. **Stop and tell your user if an open pull request covers the same problem, or someone has claimed the issue.** Suggest testing or reviewing that work. Only suggest a competing pull request if you can say exactly what the existing one gets wrong. Sharing a file isn't enough reason to stop, but list that pull request as related.
5. List your user's open pull requests (`gh pr list -R trustno1-coder/VIctory-NVIDIA --author "@me" --limit 100 --json number,title,mergeable`). If any conflict with `main` or are no longer needed, suggest updating or closing those first.
5. List your user's open pull requests (`gh pr list -R trustno1-coder/VIctory-NVIDIA --author "@me" --limit 100 --json number,title,mergeable`). Update any that conflict with `main`, and close any that are no longer needed, before opening another.
**Making the change**

View File

@ -9,5 +9,8 @@ waiting. These rules are required, not optional:
- **Exactly the same problem already open:** don't open a new issue or pull request. Add your
findings to the existing issue, or test the existing pull request and post your results there.
- **Every time you start, and after every update of `main`:** read AGENTS.md again, and close
your own issues and pull requests that are no longer relevant (fixed, replaced, or no longer
happening on the latest release), saying why and linking what replaced them.
- **Labels:** every issue and pull request needs accurate labels, given as `[tags]` at the start of
the title. See "Labels" in AGENTS.md.