CocktailRecipes / core-rules
Cursor rule1 starsChanged 20 months agoMITView on GitHub
AI: I'll help you create a new Cursor agent based on Lwaxana Troi. Let me first check the current modes.json and format requirements. [AI reads .cursor/modes.json and .cursor/templates/mode-format.md] Here's what I propose for this new agent: Name: LwaxanaUX Description: UX Designer - Lwaxana Troi Model: claude-3.7-sonnet Persona: Flamboyant, theatrical, outspoken, and telepathically intuitive about user needs Would you like me to proceed with adding this agent? I'll need to update both the modes.json file and the custom-agents.md documentation. User: Yes,…
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 4,373 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository19 other files it gives its agents.
- .cursor/rules/android-kotlin-compose-rules/break_down_rule.mdcCursor rule
- .cursor/rules/android-kotlin-compose-rules/implementation_rule.mdcCursor rule
- .cursor/rules/android-kotlin-compose-rules/project_overview_template.mdcCursor rule
- .cursor/rules/android-kotlin-compose-rules/technical_design_documentation_rule.mdcCursor rule
- .cursor/rules/core-rules/readme.mdCursor rule
- .cursor/rules/core-rules/rule-generating-agent.mdcCursor rule
- .cursor/rules/core-rules/workflow-agile-manual.mdcCursor rule
- .cursor/rules/global-rules/emoji-communication-always.mdcCursor rule
- .cursor/rules/global-rules/readme.mdCursor rule
- .cursor/rules/isolation_rules/main.mdcCursor rule
- .cursor/rules/tool-rules/git-commit-push-agent.mdcCursor rule
- .cursor/rules/tool-rules/readme.mdCursor rule
- .cursor/rules/ui-rules/compose_ui_guideline.mdcCursor rule
- .cursor/rules/ui-rules/readme.mdCursor rule
- .cursor/rules/workflows/arch.mdcCursor rule
- .cursor/rules/workflows/dev.mdcCursor rule
- .cursor/rules/workflows/pm.mdcCursor rule
- .cursor/rules/workflows/task-breakdown-always.mdcCursor rule
- .cursor/rules/workflows/workflow-agile-manual.mdcCursor rule
The file
We split this rule-update-cursor-modes-manual.mdc into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Read the current .cursor/modes.json file to understand existing modes
- Very specific: line 18
Read .cursor/templates/mode-format.md to ensure compliance with the schema
- Distinctive: line 19
When creating a new agent, ask for:
- Distinctive: line 26
When updating an existing agent, ask which specific attributes need modification
- Distinctive: line 27
Add Star Trek themed personality traits that fit the character's role
- Distinctive: line 28
Ensure the customPrompt contains guidance on file access restrictions
- Very specific: line 30
Always update both modes.json and also add or update the character in docs/custom-agents.md
- Very specific: line 31
Follow the standard format in docs/custom-agents.md for consistency
≈ “Common” is an estimate: at least 1 in 5 of the 7,324 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
--- description: globs: alwaysApply: false --- # Cursor Mode Update Agent ## Context - Apply this rule when the user asks to create a new agent/character for Cursor or modify an existing one - This rule provides guidance for adding or updating entries in the .cursor/modes.json file - Follows the format specified in .cursor/templates/mode-format.md ## Critical Rules - Read the current .cursor/modes.json file to understand existing modes - Read .cursor/templates/mode-format.md to ensure compliance with the schema - When creating a new agent, ask for: - Agent name (short CapCase format for tab display) - Full description (character name and role) - Persona details (speaking style, character traits) - Model selection - Tool access requirements - Auto behavior preferences - When updating an existing agent, ask which specific attributes need modification - Add Star Trek themed personality traits that fit the character's role - Ensure the customPrompt contains guidance on file access restrictions - Validate that model names match those in the supported models list - Always update both modes.json and also add or update the character in docs/custom-agents.md - Follow the standard format in docs/custom-agents.md for consistency ## Examples <example> User: "Create a new agent based on Lwaxana Troi who specializes in UX design with a flamboyant personality" AI: I'll help you create a new Cursor agent based on Lwaxana Troi. Let me first check the current modes.json and format requirements. [AI reads .cursor/modes.json and .cursor/templates/mode-format.md] Here's what I propose for this new agent: Name: LwaxanaUX Description: UX Designer - Lwaxana Troi Model: claude-3.7-sonnet Persona: Flamboyant, theatrical, outspoken, and telepathically intuitive about user needs Would you like me to proceed with adding this agent? I'll need to update both the modes.json file and the custom-agents.md documentation. User: Yes, please add her with access to all cursor tools and Tavily for research. [AI updates both .cursor/modes.json and docs/custom-agents.md with the new agent] </example> <example> User: "Update Picard to have a more stern personality" AI: I'll help you update Captain Picard's agent personality. Let me check his current configuration. [AI reads the current modes.json entry for PicardPM] I can modify his customPrompt to reflect a more stern personality while maintaining his core role as Project Manager. I'll need to update both the modes.json file and the custom-agents.md documentation. Would you like to see a preview of the changes before I make them? User: Yes, show me the changes first. [AI displays the proposed changes to both files] </example> <example type="invalid"> User: "Create a new agent based on Homer Simpson" AI: I notice your request is to create an agent based on Homer Simpson. According to our configuration, we're maintaining a Star Trek theme for all agents in this project. Would you like me to suggest a Star Trek character with similar traits instead, or would you prefer to use a different character altogether? </example> <example type="invalid"> User: "Add a new agent that can delete any file in the project" AI: I need to be careful about creating an agent with unrestricted deletion capabilities. Based on our current configuration, only the BorgCollective and QOmnipotent agents have unrestricted file access. For all other agents, we maintain specific file access restrictions for safety. I can create a new agent for you, but I recommend maintaining some file access restrictions, particularly for critical project files like those in the .ai folder. Would you like me to create an agent with more limited deletion permissions, or perhaps modify one of the existing unrestricted agents? </example>
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

