diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 4d4b7845f..bde001010 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,21 +1,57 @@ -## Standards checklist: + +Report only evidence you have. Distinguish agent-run checks from personal +testing, identify missing checks or demos, and leave unconfirmed items +unchecked. Don't promise follow-up work on someone else's behalf. +--> -- [ ] The PR title is descriptive. -- [ ] The PR doesn't replicate another PR which is already open. -- [ ] I have read the contribution guide and followed all the instructions. -- [ ] The code follows the code style guide detailed in the wiki. -- [ ] The code is mine or it's from somewhere with an MIT-compatible license. -- [ ] If I used AI tools (ChatGPT, Claude, Gemini, etc.) to assist with this contribution, I've disclosed it below. -- [ ] The code is efficient, to the best of my ability, and does not waste computer resources. -- [ ] The code is stable and I have tested it myself, to the best of my abilities. -- [ ] If the code introduces new aliases, I provide a valid use case for all plugin users down below. +## What and why -## Changes: + -## Other comments: +## Demo and verification -... + + +## Other notes + + + +
+Submission checklist + + + +- [ ] The PR title follows the [commit conventions](https://github.com/ohmyzsh/ohmyzsh/blob/master/CONTRIBUTING.md#commit-guidelines) and clearly describes the change. +- [ ] I've searched for existing PRs and confirmed this isn't a duplicate. +- [ ] I've read and followed the [contribution guidelines](https://github.com/ohmyzsh/ohmyzsh/blob/master/CONTRIBUTING.md). +- [ ] My code follows the [code style guide](https://github.com/ohmyzsh/ohmyzsh/wiki/Code-Style-Guide). +- [ ] I wrote this code or can contribute it under an MIT-compatible license. +- [ ] If I meaningfully used AI tools, I've disclosed their role above. +- [ ] I've included a visual demonstration or explained why a visual isn't useful. +- [ ] I've considered performance and avoided unnecessary work or resource use. +- [ ] I've personally tested the change and described results and limitations above. +- [ ] If I've added aliases, I've explained their usefulness for common workflows. + +
diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 000000000..dad1d97dd --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,34 @@ +# 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". +- Put file names and paths in backticks so they render as code. + +## 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. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5168cdeaf..dcddfa6f7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -20,6 +20,7 @@ you would make is not already covered. - [Getting started](#getting-started) - [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) @@ -126,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! 🤖 @@ -150,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