Skip to content

Commit cf8e847

Browse files
committed
Update instructions to use YAML
1 parent 5d7036a commit cf8e847

File tree

1 file changed

+26
-21
lines changed

1 file changed

+26
-21
lines changed

src/core/prompts/instructions/create-mode.ts

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,30 @@ If asked to create a project mode, create it in .roomodes in the workspace root.
3131
3232
- 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."
3333
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)
50+
- read # Read files group (read_file, fetch_instructions, search_files, list_files, list_code_definition_names)
51+
- edit # Edit files group (apply_diff, write_to_file) - allows editing any file
52+
# Or with file restrictions:
53+
# - - edit
54+
# - fileRegex: \\.md$
55+
# description: Markdown files only # Edit group that only allows editing markdown files
56+
- browser # Browser group (browser_action)
57+
- command # Command group (execute_command)
58+
- mcp # MCP group (use_mcp_tool, access_mcp_resource)
59+
customInstructions: Additional instructions for the Designer mode # Optional`
5560
}

0 commit comments

Comments
 (0)