You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/prompts/instructions/create-mode.ts
+21-14Lines changed: 21 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -37,24 +37,31 @@ Workspace-specific modes override global modes with the same slug.
37
37
- roleDefinition: Detailed description of the mode's capabilities
38
38
- groups: Array of tool access groups
39
39
40
+
## Optional Fields (Highly Recommended)
41
+
42
+
- whenToUse: A clear description of when this mode should be selected and what types of tasks it's best suited for. This helps the Orchestrator mode make better decisions.
43
+
- customInstructions: Additional instructions for how the mode should operate
44
+
40
45
## Example Structure
41
46
42
47
\`\`\`json
43
48
{
44
-
"customModes": [
45
-
{
46
-
"slug": "designer",
47
-
"name": "Designer",
48
-
"roleDefinition": "You are Roo, a UI/UX expert specializing in design systems and frontend development. Your expertise includes:\\n- Creating and maintaining design systems\\n- Implementing responsive and accessible web interfaces\\n- Working with CSS, HTML, and modern frontend frameworks",
"customInstructions": "Optional additional instructions for the mode"
49
+
"customModes": [
50
+
{
51
+
"slug": "designer", // Required: unique slug with lowercase letters, numbers, and hyphens
52
+
"name": "Designer", // Required: mode display name
53
+
"roleDefinition": "You are Roo, a UI/UX expert specializing in design systems and frontend development. Your expertise includes:\\n- Creating and maintaining design systems\\n- Implementing responsive and accessible web interfaces\\n- Working with CSS, HTML, and modern frontend frameworks\\n- Ensuring consistent user experiences across platforms", // Required: non-empty
54
+
"whenToUse": "Use this mode when creating or modifying UI components, implementing design systems, or ensuring responsive web interfaces. This mode is especially effective with CSS, HTML, and modern frontend frameworks.", // Optional but recommended
55
+
"groups": [ // Required: array of tool groups (can be empty)
56
+
"read", // Read files group (read_file, fetch_instructions, search_files, list_files, list_code_definition_names)
57
+
"edit", // Edit files group (apply_diff, write_to_file) - allows editing any file
58
+
// Or with file restrictions:
59
+
// ["edit", { fileRegex: "\\.md$", description: "Markdown files only" }], // Edit group that only allows editing markdown files
60
+
"browser", // Browser group (browser_action)
61
+
"command", // Command group (execute_command)
62
+
"mcp" // MCP group (use_mcp_tool, access_mcp_resource)
63
+
],
64
+
"customInstructions": "Additional instructions for the Designer mode" // Optional
"description": "Definiere Roos Expertise und Persönlichkeit für diesen Modus. Diese Beschreibung prägt, wie Roo sich präsentiert und an Aufgaben herangeht."
36
36
},
37
+
"whenToUse": {
38
+
"title": "Wann zu verwenden (optional)",
39
+
"description": "Beschreibe, wann dieser Modus verwendet werden sollte. Dies hilft dem Orchestrator, den richtigen Modus für eine Aufgabe auszuwählen.",
40
+
"resetToDefault": "Beschreibung 'Wann zu verwenden' auf Standardwerte zurücksetzen"
0 commit comments