Improve AGENTS.md files based on recurring PR review feedback#13408
Improve AGENTS.md files based on recurring PR review feedback#13408petebacondarwin merged 1 commit intomainfrom
Conversation
Analyzed review comments from the last 100 merged PRs to identify patterns that should be codified in agent guidance. The most frequent issue was expect-from-test-context violations, followed by trivial AI-generated comments and stale AGENTS.md content.
|
|
Codeowners approval required for this PR:
Show detailed file reviewers |
|
Everything checks out. The changes are documentation-only updates to AGENTS.md files, adding codified guidance based on recurring PR review feedback. The referenced files exist, the descriptions are accurate, and the content is well-structured and actionable. LGTM |
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
wrangler
commit: |
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
Analyzed review comments from the last 100 merged PRs to identify recurring patterns that should be codified in agent guidance.
Changes
Root
AGENTS.mdCode Style (3 new rules):
functiondeclarations overconstarrow functions for named/exported functions--double-dash separator before reasonTesting Standards (6 new items):
expectfrom test context pattern with sub-bullets covering destructured context,ExpectStaticparameter passing,import typeusage,node:assertfallback, and the E2Eglobals: truecaveattsconfig.jsonrequirement forvitest-pool-workers-examples/Changesets (1 new rule):
Anti-Patterns (2 new entries):
Subdirectory Knowledge:
packages/wrangler/AGENTS.mdglobals: truecaveat (most common source ofReferenceErrorbugs)expectparameter to helperspackages/miniflare/AGENTS.mdworkerd.tsandopenapi.local.jsonas generatedEvidence from PR reviews
The most frequently recurring themes across the last 100 PRs:
expectfrom test contextfunctionover arrowtsconfig.json--format