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
Add description field to create_mode instructions (#5433)
* Add description field to create_mode instructions
- Include description field in optional but recommended fields list
- Add description field to YAML example with clear guidance
- Description field already exists in ModeConfig schema but was missing from instructions
- Provides short, human-readable description of what the mode does (1-2 sentences)
* Update description field guidance to 5 words instead of 1-2 sentences
- Changed description field guidance from '1-2 sentences' to '5 words'
- Updated YAML example to show concise 5-word description
- Addresses feedback from @mrubens in PR comment #3041823916
Copy file name to clipboardExpand all lines: src/core/prompts/instructions/create-mode.ts
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ If asked to create a project mode, create it in .roomodes in the workspace root.
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
28
- The following fields are optional but highly recommended:
29
+
* description: A short, human-readable description of what this mode does (5 words)
29
30
* 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
31
* customInstructions: Additional instructions for how the mode should operate
31
32
@@ -36,15 +37,16 @@ Both files should follow this structure (in YAML format):
36
37
customModes:
37
38
- slug: designer # Required: unique slug with lowercase letters, numbers, and hyphens
38
39
name: Designer # Required: mode display name
40
+
description: UI/UX design systems expert # Optional but recommended: short description (5 words)
39
41
roleDefinition: >-
40
42
You are Roo, a UI/UX expert specializing in design systems and frontend development. Your expertise includes:
41
43
- Creating and maintaining design systems
42
44
- Implementing responsive and accessible web interfaces
43
45
- Working with CSS, HTML, and modern frontend frameworks
44
46
- Ensuring consistent user experiences across platforms # Required: non-empty
45
47
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
+
Use this mode when creating or modifying UI components, implementing design systems,
49
+
or ensuring responsive web interfaces. This mode is especially effective with CSS,
48
50
HTML, and modern frontend frameworks. # Optional but recommended
49
51
groups: # Required: array of tool groups (can be empty)
0 commit comments