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
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,9 @@ If asked to create a project mode, create it in .roomodes in the workspace root.
25
25
* roleDefinition: A detailed description of the mode's role and capabilities
26
26
* groups: Array of allowed tool groups (can be empty). Each group can be specified either as a string (e.g., "edit" to allow editing any file) or with file restrictions (e.g., ["edit", { fileRegex: "\\.md$", description: "Markdown files only" }] to only allow editing markdown files)
27
27
28
-
- The customInstructions field is optional.
28
+
- The following fields are optional but highly recommended:
29
+
* 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.
30
+
* customInstructions: Additional instructions for how the mode should operate
29
31
30
32
- For multi-line text, include newline characters in the string like "This is the first line.\\nThis is the next line.\\n\\nThis is a double line break."
31
33
@@ -36,6 +38,7 @@ Both files should follow this structure:
36
38
"slug": "designer", // Required: unique slug with lowercase letters, numbers, and hyphens
37
39
"name": "Designer", // Required: mode display name
38
40
"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
41
+
"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
39
42
"groups": [ // Required: array of tool groups (can be empty)
40
43
"read", // Read files group (read_file, fetch_instructions, search_files, list_files, list_code_definition_names)
41
44
"edit", // Edit files group (apply_diff, write_to_file) - allows editing any file
"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