Repository navigation
Rewrite the agent instructions and split them by folder - #327
Merged
Merged
Conversation
The root AGENTS.md now holds only the rules every task needs. Each folder with its own conventions gets a short AGENTS.md next to its code. The rules come from the last 25 pull requests and were checked against the code, and each file names the agent skills and external docs for the code it covers. Also turns off the AGENTS.md block that Next.js writes on every `next dev`, removes web/CLAUDE.md and the Cursor-only rules, moves the Cursor Cloud notes to docs/developer/cursor-cloud.md, and fixes stale developer docs. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
AGENTS.md: rewritten to hold only the rules every task needs: secrets in commits, the changelog, generated snapshots, docs, testing before you call a change done, the Python 3.12 floor, how to load skills, and a pointer for Cursor Cloud.AGENTS.mdfiles next to the code they cover:web/lib/api,web/lib/db,web/lib/mcp,web/components,web/tests,web/mcp-apps,lambda,infra, andpackages/shared.web,watcher, anddocs/site.llms.txt.agentRules: falseinweb/anddocs/site/stopsnext devfrom writing its block intoAGENTS.md. Our own Next.js 16 line replaces it.web/CLAUDE.md, because Claude Code 2.1.277 and later readsAGENTS.mddirectly..cursor/rules/.docs/developer/cursor-cloud.md. It now covers a VM where Postgres isn't installed, and includes a recommended install script for the Cloud environment.DATABASE_URL, which the reset and seed scripts refused;parse_s3_eventclaim;make checkdescription;infra-validate.ymlsection;Why
How I checked
maketarget, and npm script named in the files exists, and every URL returns 200.npx skills add <source> --list. Each pinned skill loads from its commit, and a made-up commit fails./_next/mcp, whichnext-dev-loopuses, still responds undermake devwithagentRules: false.make checkpasses, and the MCP docs bundle is unchanged.After merging
docs/developer/cursor-cloud.mdto the Cloud environment in the Cursor dashboard, so agents stop installing Postgres anduvby hand._LAMBDA_PRESET_SCOPESinlambda/tests/integration/test_lambda_api.pyis missingruns:read, which thelambdapreset inweb/lib/api/scope-catalog.tsincludes.There's no changelog entry, because this changes only agent instructions and developer docs. There's no watcher version bump, because nothing under
watcher/src/changed.