Roomode is a CLI tool designed to manage custom modes for RooCode, allowing you to create, list, export, and import custom AI assistant modes defined in markdown files. With roomode, you can easily organize and share your custom AI modes across different environments.
- Create new custom mode markdown files with proper frontmatter
- List all available custom modes in your
.roo/modes
directory - Export all modes to a
.roomodes
JSON file for sharing or backup - Import modes from a
.roomodes
JSON file into your.roo/modes
directory - Version information display
brew install upamune/tap/roomode
go install github.com/upamune/roomode/cmd/roomode@latest
You can download prebuilt binary from GitHub Releases.
git clone https://github.com/upamune/roomode.git
cd roomode
make build
Create a new custom mode markdown file with the specified slug:
roomode create translate "Translate Assistant"
This will create a new file at .roo/modes/translate.md
and open it in your default editor.
View all custom modes available in your .roo/modes
directory:
roomode list
Export all your custom modes to a .roomodes
JSON file:
roomode export
# or specify a custom output file
roomode export my-modes.json
Import modes from a .roomodes
JSON file into your .roo/modes
directory:
roomode import
# or specify a custom input file
roomode import my-modes.json
# use force flag to overwrite existing files without confirmation
roomode import --force my-modes.json
roomode version
Custom modes are defined in markdown files with YAML frontmatter. Here's an example structure:
---
name: Translate
groups:
- read
- command
- edit:
description: "Source code, translation files, and documentation"
fileRegex: "(.*\\.(md|ts|tsx|js|jsx)$|.*\\.json$)"
roleDefinition: |
You are Roo, a linguistic specialist focused on translating and managing localization files.
---
# 1. SUPPORTED LANGUAGES AND LOCATION
- Localize all strings into the following locale files: ca, de, en, es, fr...
# 2. VOICE, STYLE AND TONE
- Always use informal speech for all translations
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.