AGENTS.md
AGENTS.mdAGENTS.mdroot
Quality
65/100
Scores the file, not the repository.Length
805 words
26 headings · 7 code blocksRepository
22k
— · pushed 0 days agoLast changed
today
First indexed 3 days ago.1# Agent Instructions for homebrew-cask23This document helps coding agents produce high-quality PRs for Homebrew Cask contributions.45## Before Any PR671. **Check for existing PRs** for the same cask: [open PRs](https://github.com/Homebrew/homebrew-cask/pulls)82. **Check if previously refused**: [closed unmerged PRs](https://github.com/search?q=repo%3AHomebrew%2Fhomebrew-cask+is%3Aclosed+is%3Aunmerged+&type=pullrequests)910## Golden Rules1112- **One cask per PR**, one intent per PR13- **Minimal diffs**—change only what's necessary14- **No drive-by formatting** or unrelated stanza churn15- **No verbose commentary**—keep PR descriptions short16- **No non-Homebrew caveats** in PR body or cask file17- **Use official sources** for download URLs18- **If unsure about policy** (notability, naming, livecheck), stop and ask before opening a PR1920## Version Updates2122Preferred method for version bumps:2324```sh25brew bump --open-pr <cask>26```2728This handles version/sha256 updates, commit message, and opens the PR automatically.2930### Manual Version Updates3132If manual editing is needed:3334```sh35brew edit --cask <cask>36# Update version, url, sha256 as needed37# Do not add unrelated stanza changes38```3940Commit message: `<cask> <version>` (e.g., `firefox 125.0`)4142## Cask Fixes4344For bug fixes or improvements to existing casks:4546```sh47brew edit --cask <cask>48# Make only the required changes49```5051Commit message: `<cask>: <description>` (e.g., `firefox: fix zap stanza`)5253## New Casks5455### Notability Requirements5657New casks **will be rejected** if:5859- App is too obscure (GitHub: <30 forks/watchers or <75 stars)60- No public presence beyond "just `brew install`"61- Unmaintained or has unpatched security vulnerabilities62- Requires SIP to be disabled63- Download requires login/registration (walled builds)64- No compiled versions available (use homebrew/core instead)65- Previously rejected for unfixable issues6667See [Acceptable Casks](https://docs.brew.sh/Acceptable-Casks) for full criteria.6869### Creating a New Cask7071```sh72brew create --cask <url>73# Edit the generated cask74```7576Commit message: `<cask> <version> (new cask)` (e.g., `myapp 1.0.0 (new cask)`)7778### Required Elements7980- **Token**: Follow the [token reference](https://docs.brew.sh/Cask-Cookbook#token-reference)—lowercase, hyphens, no version numbers81- **Required stanzas**: `version`, `sha256`, `url`, `name`, `desc`, `homepage`, and at least one artifact (`app`, `pkg`, etc.)82- **`uninstall` stanza**: Required for `pkg` and `installer` artifacts83- **`zap` stanza**: Recommended for thorough cleanup (preference files, caches in `~/Library`)8485## Required Validation8687### For Existing Cask Changes8889```sh90brew audit --cask --online <cask>91brew style --fix <cask>92brew install --cask <cask> # or reinstall93brew uninstall --cask <cask>94```9596### For New Casks9798```sh99export HOMEBREW_NO_INSTALL_FROM_API=1100brew audit --cask --new <cask>101brew style --fix <cask>102brew install --cask <cask>103brew uninstall --cask <cask>104```105106All checks MUST pass locally before opening a PR.107108## PR Template Checklist109110You MUST verify all items before submitting:111112**For all cask changes:**113114- [ ] Submission is for a [stable version](https://docs.brew.sh/Acceptable-Casks#stable-versions) or [documented exception](https://docs.brew.sh/Acceptable-Casks#but-there-is-no-stable-version)115- [ ] `brew audit --cask --online <cask>` is error-free116- [ ] `brew style --fix <cask>` reports no offenses117118**Additionally, for new casks:**119120- [ ] Named according to [token reference](https://docs.brew.sh/Cask-Cookbook#token-reference)121- [ ] Checked cask was not [already refused](https://github.com/search?q=repo%3AHomebrew%2Fhomebrew-cask+is%3Aclosed+is%3Aunmerged+&type=pullrequests)122- [ ] `brew audit --cask --new <cask>` worked successfully123- [ ] `HOMEBREW_NO_INSTALL_FROM_API=1 brew install --cask <cask>` worked successfully124- [ ] `brew uninstall --cask <cask>` worked successfully125126**If AI-assisted:**127128- [ ] Personally reviewed, tested, and verified all changes including `zap` stanza paths129130## Commit Message Format131132- Version update: `appname 1.2.3`133- New cask: `appname 1.2.3 (new cask)`134- Fix/change: `appname: <description>`135- First line MUST be 50 characters or less136137## PR Hygiene138139### MUST140141- One cask change per PR142- Keep diffs minimal and focused143- Provide only essential context in PR description144145### MUST NOT146147- Batch unrelated cask changes148- Include formatting-only diffs149- Add verbose logs or AI analysis in PR body150- Add installation caveats unless the cask DSL requires it151- Include unrelated refactors or stanza reordering152153## PR Description154155Keep it minimal:156157```158Built and tested locally on [macOS version].159160[One sentence if not obvious from title.]161```162163Do NOT include:164165- Large command output or logs166- Lengthy explanations167- Non-Homebrew installation advice168169## CI Failures1701711. Reproduce failures locally with the same commands1722. Read error messages in "Files changed" tab annotations1733. Fix only the failing issue1744. Push incremental commits (do not squash after opening PR)1755. If stuck, comment describing what you've tried176177## AI Disclosure178179If AI assisted with the PR, check the AI checkbox in the PR template. Briefly describe:180181- How AI was used182- What manual verification was performed (especially `zap` paths)183184Do not identify an AI tool as an author, co-author, committer or signatory of a commit, including through an `Assisted-by`, `Co-developed-by` or similar commit trailer.185Answer maintainer questions and pull request review comments yourself without using AI.186AI assistants must not draft or post these responses; the human contributor must answer them directly.187188## References189190- [Cask Cookbook](https://docs.brew.sh/Cask-Cookbook)191- [Acceptable Casks](https://docs.brew.sh/Acceptable-Casks)192- [Adding Software to Homebrew](https://docs.brew.sh/Adding-Software-to-Homebrew#casks)193- [CONTRIBUTING.md](CONTRIBUTING.md)194- [How to Open a PR](https://docs.brew.sh/How-To-Open-a-Homebrew-Pull-Request)195
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| OnlyTerp/prompt-cache-skillsAGENTS.md · 112 | AGENTS.md | setupbuildtestlint-format+5 | 100/100 | 3 days ago | |
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| wpscanteam/wpscanAGENTS.md · 9.7k | AGENTS.md | setupbuildteststyle+6 | 100/100 | 2 days ago | |
| SkeneTechnologies/skene-cookbookAGENTS.md · 51 | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 2 days ago | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| aaif-goose/gooseAGENTS.md · 52k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 3 days ago |
