oh-my-opencode-model-switcher
Model Switcher
This skill enables switching model configurations in oh-my-opencode.json between different modes:
- default: Original model settings
- economy: All models set to
opencode/glm-4.7-free
Additional modes can be easily added by editing the mapping configuration.
Usage
When the user requests to switch models or activate a specific mode, use this skill to update the configuration.
Workflow
Switch to a Mode
Execute the switch script with the desired mode:
python3 ~/.config/opencode/.claude/model-switcher/scripts/switch_models.py [mode_name]
Examples:
python3 ... switch_models.py economy- Switch to economy modepython3 ... switch_models.py default- Switch to default mode
List Available Modes
python3 ~/.config/opencode/.claude/model-switcher/scripts/switch_models.py --list
How It Works
- Mapping-based approach: Model assignments are defined in
config/model-mappings.yml - Partial updates: Only specified models are updated, preserving other settings
- Wildcard support: Use
"*"to apply a model to all agents/categories - Field preservation: Other fields like
variantare kept unchanged - Structure-resilient: New agents/categories in oh-my-opencode.json are preserved
Configuration
Edit config/model-mappings.yml to:
- Add new modes
- Modify existing mode mappings
- Define per-agent/category model assignments
Example mapping structure:
modes:
mode_name:
agents:
agent_name: model_name
# or use "*" for all agents
categories:
category_name: model_name
More from atman-33/skills
dnd-kit-implementation
Guide for implementing sortable and droppable components using dnd-kit library. Use this skill when building React applications that require drag-and-drop functionality with both container reordering (useSortable) and item dropping (useDroppable) capabilities, such as Kanban boards, file management systems, or playlist editors.
36tech-article-humanizer
Transform technical article drafts or source materials into human-like, high-quality Japanese technical articles. Use this skill when the user wants to generate, rewrite, or humanize technical articles (especially about TypeScript, JavaScript, React, or frontend topics) following specific human-writing patterns and style guidelines. Triggers include requests like "記事を人間風に", "tech article を生成", "humanize this article", or providing article source materials.
4agent-memory
Use this skill when the user asks to save, remember, recall, or organize memories. Triggers on phrases like 'remember this', 'save this', 'note this', 'what did we discuss about...', 'check your notes', 'clean up memories'. Also use proactively when discovering valuable findings worth preserving.
2react-router-v7-app
Implements React Router v7 app structure, routing patterns, and component templates. Use when creating or modifying React Router v7 applications to ensure consistent folder structure, data loading patterns, and component architecture.
2pr-assistant
Analyzes git changes and assists with creating comprehensive pull requests. Use when user wants to create a PR, review changes before PR, or needs help drafting PR descriptions. Triggers on phrases like 'create PR', 'make a pull request', 'draft PR description', 'what changed in this branch', 'prepare PR'.
1openspec-bulk-archive-change
Archive multiple completed changes at once. Use when archiving several parallel changes.
1