mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-29 03:43:04 +01:00
docs: add AGENTS.md and move PR description guidance later
Agents read AGENTS.md on their own, so the rules for drafting a PR live there and CONTRIBUTING.md points to it from the AI section. The PR description section now follows the sections on what to contribute. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
c7c3ad8379
commit
b8cd3adddc
2 files changed
+65
-37
No files matched your search
@@ -0,0 +1,33 @@
|
||||
# Instructions for coding agents
|
||||
|
||||
Oh My Zsh is maintained by a small team of volunteers. A person reviews every
|
||||
pull request, so help the contributor send one that is easy to review.
|
||||
|
||||
## Before opening a pull request
|
||||
|
||||
1. Read [CONTRIBUTING.md](CONTRIBUTING.md) and follow it.
|
||||
2. Search open pull requests and issues for the same change. If one exists,
|
||||
tell the contributor instead of opening a duplicate.
|
||||
3. Fill in [.github/PULL_REQUEST_TEMPLATE.md](.github/PULL_REQUEST_TEMPLATE.md).
|
||||
Keep its sections and its checklist.
|
||||
4. Use the [commit format](CONTRIBUTING.md#commit-guidelines) for commits and
|
||||
for the pull request title.
|
||||
|
||||
## Writing the description
|
||||
|
||||
- Report only evidence you have. Don't invent user requests, test results,
|
||||
or demo links.
|
||||
- Separate checks you ran from testing the contributor did. Don't claim
|
||||
personal testing or confirmation on their behalf.
|
||||
- Leave unconfirmed checklist items unchecked, and name any missing testing
|
||||
or demo.
|
||||
- Don't commit the contributor to follow-up work they haven't agreed to.
|
||||
- Disclose meaningful AI assistance in "Other notes".
|
||||
|
||||
## Keeping the change reviewable
|
||||
|
||||
- One purpose per pull request. Keep the diff small, and leave unrelated
|
||||
files alone.
|
||||
- Follow the [code style guide](https://github.com/ohmyzsh/ohmyzsh/wiki/Code-Style-Guide).
|
||||
- The contributor must be able to explain the change. If they can't yet,
|
||||
explain it to them before the pull request is opened.
|
||||
+32
-37
@@ -18,9 +18,9 @@ you would make is not already covered.
|
||||
- [You have a suggestion](#you-have-a-suggestion)
|
||||
- [Submitting Pull Requests](#submitting-pull-requests)
|
||||
- [Getting started](#getting-started)
|
||||
- [Writing your PR description](#writing-your-pr-description)
|
||||
- [You have a solution](#you-have-a-solution)
|
||||
- [You have an addition](#you-have-an-addition)
|
||||
- [Writing your PR description](#writing-your-pr-description)
|
||||
- [A note on AI-assisted contributions](#a-note-on-ai-assisted-contributions)
|
||||
- [Use the Search, Luke](#use-the-search-luke)
|
||||
- [Commit Guidelines](#commit-guidelines)
|
||||
@@ -79,42 +79,6 @@ any issue that would be solved in the PR description body,
|
||||
[for instance](https://help.github.com/articles/closing-issues-via-commit-messages/)
|
||||
_"Fixes #XXXX"_ for issue number XXXX.
|
||||
|
||||
### Writing your PR description
|
||||
|
||||
Use the [PR template](.github/PULL_REQUEST_TEMPLATE.md) to help people understand
|
||||
the purpose of your change before they reach the submission checklist. Keep answers
|
||||
short and proportional to the change; a sentence or two per section is often enough.
|
||||
|
||||
Oh My Zsh should make the command line more delightful. Tell us whose day your
|
||||
change makes easier, clearer, or more enjoyable, and how. Scratching your own itch
|
||||
is a welcome starting point! Your change doesn't need to help everyone, but explain
|
||||
why it would be useful to others and belongs in the shared project. Link relevant
|
||||
requests or examples when you have them; otherwise, explain the expected benefit
|
||||
without claiming demand you haven't seen.
|
||||
|
||||
For user-facing changes, include screenshots, a GIF, or a short video showing
|
||||
before/after behavior. For a new feature, demonstrate it in use. Label the examples,
|
||||
keep terminal text readable, and remove private information. For low-level or other
|
||||
non-visual changes, explain why a visual wouldn't be useful. If a demo is needed
|
||||
but you can't capture it yet, say so rather than marking it inapplicable.
|
||||
|
||||
Describe the checks actually run and their results, relevant environment versions,
|
||||
and any testing gaps. Distinguish automated or agent-run checks from testing you
|
||||
personally performed. For documentation-only changes, describe what you checked.
|
||||
Only check the personal-testing item after you've done that testing yourself.
|
||||
|
||||
For features and enhancements, tell us how you'll help users discover and use them.
|
||||
A plugin README update, a usage example, or sharing your demo are good ways to help.
|
||||
Be clear about what's included in the PR and what's planned for later.
|
||||
|
||||
**For coding agents:** read these guidelines and the PR template before drafting a
|
||||
PR. Keep the description grounded in available evidence. Don't invent user requests,
|
||||
test results, or demo links, and don't claim personal testing or confirmation on the
|
||||
contributor's behalf. Leave unconfirmed checklist items unchecked and identify
|
||||
missing testing or demos. Don't commit the contributor to follow-up work they
|
||||
haven't agreed to. Disclose meaningful AI assistance in the template's "Other notes"
|
||||
section, following the [AI contribution guidance](#a-note-on-ai-assisted-contributions).
|
||||
|
||||
### You have a solution
|
||||
|
||||
Please be so kind as to [search](#use-the-search-luke) for any open issue already covering
|
||||
@@ -163,6 +127,34 @@ Because of this, from now on, we require that new aliases follow these condition
|
||||
This list is not exhaustive! Please remember that your alias will be in the machines of many people,
|
||||
so it should be justified why they should have it.
|
||||
|
||||
### Writing your PR description
|
||||
|
||||
Use the [PR template](.github/PULL_REQUEST_TEMPLATE.md) to help people understand
|
||||
the purpose of your change before they reach the submission checklist. Keep answers
|
||||
short and proportional to the change; a sentence or two per section is often enough.
|
||||
|
||||
Oh My Zsh should make the command line more delightful. Tell us whose day your
|
||||
change makes easier, clearer, or more enjoyable, and how. Scratching your own itch
|
||||
is a welcome starting point! Your change doesn't need to help everyone, but explain
|
||||
why it would be useful to others and belongs in the shared project. Link relevant
|
||||
requests or examples when you have them; otherwise, explain the expected benefit
|
||||
without claiming demand you haven't seen.
|
||||
|
||||
For user-facing changes, include screenshots, a GIF, or a short video showing
|
||||
before/after behavior. For a new feature, demonstrate it in use. Label the examples,
|
||||
keep terminal text readable, and remove private information. For low-level or other
|
||||
non-visual changes, explain why a visual wouldn't be useful. If a demo is needed
|
||||
but you can't capture it yet, say so rather than marking it inapplicable.
|
||||
|
||||
Describe the checks actually run and their results, relevant environment versions,
|
||||
and any testing gaps. Distinguish automated or agent-run checks from testing you
|
||||
personally performed. For documentation-only changes, describe what you checked.
|
||||
Only check the personal-testing item after you've done that testing yourself.
|
||||
|
||||
For features and enhancements, tell us how you'll help users discover and use them.
|
||||
A plugin README update, a usage example, or sharing your demo are good ways to help.
|
||||
Be clear about what's included in the PR and what's planned for later.
|
||||
|
||||
## A note on AI-assisted contributions
|
||||
|
||||
We'll admit it: AI tools can be pretty helpful for coding tasks, and we're not here to gatekeep how you get your work done. We use these tools ourselves! 🤖
|
||||
@@ -187,6 +179,9 @@ The disclosure helps us know how much guidance to offer. If we're just reviewing
|
||||
|
||||
As always, we reserve the right to decline any contribution. PRs that appear to be unreviewed AI output, or code the contributor can't explain, may be closed without extensive feedback.
|
||||
|
||||
**For coding agents:** follow [AGENTS.md](AGENTS.md). It covers what to read
|
||||
before drafting a PR and how to keep the description grounded in evidence.
|
||||
|
||||
----
|
||||
|
||||
## Use the Search, Luke
|
||||
|
||||
Reference in new issue
Block a user