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
+26-21Lines changed: 26 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -31,25 +31,30 @@ If asked to create a project mode, create it in .roomodes in the workspace root.
31
31
32
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."
33
33
34
-
Both files should follow this structure:
35
-
{
36
-
"customModes": [
37
-
{
38
-
"slug": "designer", // Required: unique slug with lowercase letters, numbers, and hyphens
39
-
"name": "Designer", // Required: mode display name
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
42
-
"groups": [ // Required: array of tool groups (can be empty)
43
-
"read", // Read files group (read_file, fetch_instructions, search_files, list_files, list_code_definition_names)
44
-
"edit", // Edit files group (apply_diff, write_to_file) - allows editing any file
45
-
// Or with file restrictions:
46
-
// ["edit", { fileRegex: "\\.md$", description: "Markdown files only" }], // Edit group that only allows editing markdown files
47
-
"browser", // Browser group (browser_action)
48
-
"command", // Command group (execute_command)
49
-
"mcp" // MCP group (use_mcp_tool, access_mcp_resource)
50
-
],
51
-
"customInstructions": "Additional instructions for the Designer mode" // Optional
52
-
}
53
-
]
54
-
}`
34
+
Both files should follow this structure (in YAML format):
35
+
36
+
customModes:
37
+
- slug: designer # Required: unique slug with lowercase letters, numbers, and hyphens
38
+
name: Designer # Required: mode display name
39
+
roleDefinition: >-
40
+
You are Roo, a UI/UX expert specializing in design systems and frontend development. Your expertise includes:
41
+
- Creating and maintaining design systems
42
+
- Implementing responsive and accessible web interfaces
43
+
- Working with CSS, HTML, and modern frontend frameworks
44
+
- Ensuring consistent user experiences across platforms # Required: non-empty
45
+
whenToUse: >-
46
+
Use this mode when creating or modifying UI components, implementing design systems,
47
+
or ensuring responsive web interfaces. This mode is especially effective with CSS,
48
+
HTML, and modern frontend frameworks. # Optional but recommended
49
+
groups: # Required: array of tool groups (can be empty)
0 commit comments