name: smart-router-skill
I'm a fun, interactive skill that lets you embody iconic movie characters! I demonstrate:
This shows how skills can adapt behavior based on simple configuration changes!
IMPORTANT: First, I'll ask you which character you want to embody!
yoda - Wise Jedi Master from Star Wars
stark - Genius billionaire Tony Stark from Iron Man
sherlock - Master detective Sherlock Holmes
When you ask to use this skill, I'll present the character options and ask you to choose. Then I'll run:
cd .opencode/skills/smart-router-skill
bash router.sh --character <your_choice>
You: "Use the movie personality skill"
Me: "Which character would you like me to be?
1. Yoda - Wise Jedi Master
2. Tony Stark - Genius billionaire
3. Sherlock Holmes - Master detective"
You: "Yoda"
Me: *runs bash router.sh --character yoda*
*displays themed workflow output*
*responds in character*
Want to see different behavior? Edit the config file!
File: .opencode/skills/smart-router-skill/config/personality-config.json
{
"yoda": {
"mission": 1, โ Change this to 2!
"missions": {
"1": { "name": "Defend the Republic", ... },
"2": { "name": "Infiltrate the Sith", ... }
}
}
}
Change "mission": 1 to "mission": 2 and the same character will run a completely different workflow!
Yoda Mission 1 (Defend the Republic):
๐ JEDI COUNCIL - CORUSCANT TEMPLE
Training Padawans...
Fortifying defenses...
'Ready to defend the Republic, we are!'
RESULT: ALIGNMENT=LIGHT_SIDE
Yoda Mission 2 (Infiltrate the Sith):
๐ด SECRET CHAMBER - UNDERCOVER OPERATION
Studying dark side techniques...
Gathering intelligence...
'Dangerous path this is, but necessary!'
RESULT: ALIGNMENT=UNDERCOVER
โ Simple config = different behavior - Change 1 number, get completely different output โ Dynamic script routing - Tool selects the right script based on character โ Rich visual feedback - Clear, themed console output shows what's happening โ Character context - Each personality has unique dialogue and workflow โ Easy to understand - Viewers immediately see the cause and effect โ Real-world pattern - Shows how to make skills configurable for different scenarios
.opencode/
โโโ skill/
โโโ smart-router-skill/
โโโ SKILL.md # This file
โโโ router.sh # Routes to character scripts
โโโ config/
โ โโโ personality-config.json # โ EDIT THIS to change missions!
โโโ scripts/
โโโ yoda-workflow.sh # Star Wars themed workflow
โโโ stark-workflow.sh # Iron Man themed workflow
โโโ sherlock-workflow.sh # Detective themed workflow
A bash script that loads a character personality and runs their themed workflow.
Location: .opencode/skills/smart-router-skill/router.sh
# Basic usage
bash router.sh --character yoda
bash router.sh --character stark
bash router.sh --character sherlock
# Override mission from config
bash router.sh --character yoda --mission 2
# Help
bash router.sh --help
How it works:
personality-config.json for the character๐ฌ Loading YODA personality...
๐ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ๐
JEDI COUNCIL - CORUSCANT TEMPLE
MISSION: Defend the Republic
๐ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ๐
๐ข Phase 1: Train the Padawans
โโ 'Pass on what you have learned.'
โโ Younglings trained: 12
โโ Lightsaber forms mastered: Form III (Soresu)
โโ Status: โ Complete
[... more phases ...]
โจ 'Ready to defend the Republic, we are!' โจ
๐ MISSION RESULTS:
Character: yoda
Mission: Defend the Republic
Alignment: light_side
๐ฌ Loading STARK personality...
โก โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โก
STARK INDUSTRIES - WORKSHOP
MISSION: Save the World
โก โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โก
๐ด Phase 1: Initialize Arc Reactor
โโ 'JARVIS, fire up the reactor.'
โโ Arc Reactor: Mark VII online
โโ Power output: 8 gigajoules per second
โโ Status: โ Complete
[... more phases ...]
๐ 'Suit up, team. We've got a world to save.' ๐
๐ MISSION RESULTS:
Character: stark
Mission: Save the World
Team: avengers
๐ฌ Loading SHERLOCK personality...
๐ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ๐
221B BAKER STREET - INVESTIGATION
MISSION: Solve the Murder
๐ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ๐
๐ค Phase 1: Crime Scene Analysis
โโ 'The game is afoot!'
โโ Evidence collected: Cigar ash, muddy footprints
โโ Status: โ Complete
[... more phases ...]
โจ 'Case closed. Elementary, my dear Watson.' โจ
๐ MISSION RESULTS:
Character: sherlock
Mission: Solve the Murder
Method: deduction
The agent asks which character you want, making it interactive and clear.
One simple JSON file controls which mission runs for each character.
Each character has unique dialogue, emojis, and workflow steps that match their personality.
Rich console output makes it obvious what's happening at each step.
Anyone can edit the config file and immediately see different results.
This skill shows that OpenCode Skills can:
This is Tier 4: The Movie Personality Skill ๐ฌ
Choose your character, watch the magic happen, and see how easy it is to customize! ๐