feat: add global/local scope option to Mode Writer mode #5974
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements the feature requested in #5972 to add a global/local scope option to the Mode Writer mode.
Changes Made
Updated Mode Writer permissions: Modified the
fileRegexin.roomodesfrom(\.roomodes$|\.roo/.*\.xml$|\.yaml$)to(\.roomodes$|.*\.xml$|.*\.yaml$)to allow the Mode Writer to access global YAML files outside the project directory.Added scope selection step: Modified the Mode Writer workflow to ask users upfront whether they want to create a global mode (available in all projects) or a local mode (project-specific).
Updated workflow with scope-aware paths:
custom_modes.yamlfile.roomodesfileCreated comprehensive path guidance: Added a new instruction file (
7_global_mode_paths.xml) that provides detailed guidance on constructing the correct paths for global mode creation across different operating systems.Testing
Acceptance Criteria Met
✅ When creating a global mode, the configuration is written to the global
custom_modes.yamlfile✅ When creating a local mode, the configuration is written to the project's
.roomodesfile✅ The Mode Writer prompts for scope selection before proceeding
✅ File paths are correctly handled based on the selected scope
Fixes #5972
Important
Adds global/local scope option to Mode Writer mode, updating permissions, workflow, and path handling for mode configurations.
custom_modes.yamlin the system's global settings directory..roomodesfile.fileRegexin.roomodesto allow Mode Writer to access global YAML files.1_mode_creation_workflow.xmlto include scope selection and path handling based on scope.7_global_mode_paths.xmlfor guidance on global mode path construction across OS.This description was created by
for 4ecb332. You can customize this summary. It will automatically update as commits are pushed.