-
Notifications
You must be signed in to change notification settings - Fork 4
draft generic AGENTS.md template #128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: ai-guidelines
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| # AGENTS.md | ||
|
|
||
| ## Project Overview | ||
|
|
||
| [One sentence: language/framework, key versions, what makes this repo architecturally non-standard] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Idea: add a prompt that we could use to populate this section using agents. Something like: |
||
|
|
||
| ## Tech Stack | ||
|
|
||
| - Framework: `[ie. Next.js 15 (App Router + Pages Router hybrid)]` | ||
| - Language: `[ie. TypeScript]` | ||
| - Package Manager: `[ie. pnpm (always use pnpm, never npm)]` | ||
|
|
||
| ## Key Commands | ||
|
|
||
| - Install: `[command]` | ||
| - Dev server: `[command]` | ||
| - Run all tests: `[command]` | ||
| - Run one test: `[command with path/pattern flag]` | ||
| - Lint: `[command]` | ||
| - Build/compile: `[command]` _(if applicable)_ | ||
|
|
||
| ## Non-Obvious Patterns | ||
|
|
||
| ### [Pattern name] | ||
|
|
||
| [1–3 sentences explaining the mechanism, not just the rule] | ||
|
|
||
| ## Code Style | ||
|
|
||
| - [Convention or constraint] | ||
| - [Convention or constraint] | ||
|
|
||
| ## Testing Rules | ||
|
|
||
| - Write tests for all new functionality. | ||
| - [Mocking/stubbing convention for this repo] | ||
| - [External service strategy: VCR cassettes / webmock / pytest-httpretty / MSW / etc.] | ||
| - Run `[test command]` before marking any task complete. | ||
| - Tests must be deterministic and isolated — no order-dependent state. | ||
|
|
||
| ## Boundaries | ||
|
|
||
| ### Always fine | ||
|
|
||
| - Read files and list directory contents | ||
| - Run lint, typecheck, and single test files | ||
| - Add or edit tests | ||
|
|
||
| ### Ask first | ||
|
|
||
| - Install or remove dependencies (Gemfile, package.json, requirements.txt) | ||
| - Delete files | ||
| - Make schema or migration changes | ||
| - Open PRs or push to any branch | ||
|
|
||
| ### Never | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How does this guidance intersect with guidance to prefer deterministic controls for sensitive actions & info? Is this section meant to be additive to that guidance? If so, maybe an opportunity to highlight "and also make sure to..." set up branch protection rules, etc. etc. |
||
|
|
||
| - Commit `.env`, secrets, credentials, or API keys | ||
| - Force push to `main` or any protected branch | ||
| - Modify generated or vendored directories: `vendor/`, `dist/`, `build/`, `node_modules/`, `app/assets/builds/` | ||
| - [Any repo-specific protected paths — e.g., Solr config, IIIF schema files] | ||
|
|
||
| ## Project Structure | ||
|
|
||
| - `[path]` — [why it's worth calling out] | ||
| - `[path]` — [why it's worth calling out] | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could instruct agents to reference this repo (engineering-general) for general guidelines, with each project being able to add override configurations on top