agentleFS
moclam1905moclam1905/CocktailRecipes/.cursor/rules/core-rules/rule-update-cursor-modes-manual.mdc

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,…

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
  1. Very specific:

    Read the current .cursor/modes.json file to understand existing modes

    line 17
  2. Very specific:

    Read .cursor/templates/mode-format.md to ensure compliance with the schema

    line 18
  3. Distinctive:

    When creating a new agent, ask for:

    line 19
  4. Distinctive:

    When updating an existing agent, ask which specific attributes need modification

    line 26
  5. Distinctive:

    Add Star Trek themed personality traits that fit the character's role

    line 27
  6. Distinctive:

    Ensure the customPrompt contains guidance on file access restrictions

    line 28
  7. Very specific:

    Always update both modes.json and also add or update the character in docs/custom-agents.md

    line 30
  8. Very specific:

    Follow the standard format in docs/custom-agents.md for consistency

    line 31

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
rule-update-cursor-modes-manual.mdc
---
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> 

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.