Add top level and special-pages .cursorrules #2078
Merged
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.
Asana Task/Github Issue:
Description
Improves the top level
.cursorrulesand addsspecial-pages/.cursorrules. We’re standardising on Cursor so makes sense to invest in this.I expect this to be just a v1. We should all feel empowered to modify .cursorrules when we see Cursor having a hard time with something.
At the end of each rules file I’ve included a Notes section which is helpful for quick tips to give the agent. For example, it’s always getting stuck running playwright tests, so I included a tip about using
—reporter list.I wrote the rule files following the guidance in https://www.humanlayer.dev/blog/writing-a-good-claude-md. Read this post! It strongly aligns with my experience writing prompts for coding agents. The most important takeaway, that I want to repeat, is that you don’t want to fill the LLM's context window with irrelevant details. Simply dumping our existing docs into .cursorrules would result in poor performance.
Testing Steps
Checklist
Please tick all that apply:
Note
Adds comprehensive
.cursorrulesat the repo root and forspecial-pages/, outlining workspace structure, features, messaging, commands, and testing notes./.cursorrules:injected/,special-pages/,messaging/,types-generator/.injectedfeatures and links toinjected/docs/README.md.build,test-unit,test-int,lint,serve, etc.).--reporter list.special-pages/.cursorrules:@duckduckgo/messagingschemas (request/response, notify, subscribe).types/is auto-generated.Written by Cursor Bugbot for commit d32c75c. This will update automatically on new commits. Configure here.