A complete demonstration of OpenCode Skills with four progressive tiers, from simple instructions to interactive movie character personalities!
Tier 1: Simple (POC)
- Location:
.opencode/skill/hello-skill/ - Files:
SKILL.md - Demonstrates: Basic skill structure
- Concept: Skills are instructions, not code
Tier 2: Intermediate
- Location:
.opencode/skill/steps-skill/ - Files:
SKILL.md,steps.sh - Demonstrates: Helper scripts with ordered execution
- Concept: Helper scripts are portable
Tier 3: Advanced
- Location:
.opencode/skill/workflow-skill/ - Files:
SKILL.md,script1.sh,script2.sh,script3.sh,script4.sh - Demonstrates: Complete workflow orchestration
- Concept: Multiple scripts working together
Tier 4: Movie Personality Skill (Interactive!)
- Location:
.opencode/skill/smart-router-skill/ - Files:
SKILL.md,router.sh,config/personality-config.json, 3 character scripts - Router Script:
router.sh(bash script that routes to character workflows) - Demonstrates: Interactive character selection, configurable missions, dynamic routing
- Concept: Config-driven behavior with rich visual output
- MOVIE_PERSONALITY_SUMMARY.md - Overview of the movie personality skill
- SHOWCASE_SUMMARY.txt - Quick reference guide
- .opencode/README.md - Skills structure overview
- README.md - This file
The most fun way to see skills in action!
"Use the movie personality skill"
The agent will:
- Ask which character you want (Yoda, Tony Stark, or Sherlock Holmes)
- Run the themed workflow for that character
- Show rich visual output with movie quotes
- Respond in character!
Want different behavior? Edit .opencode/skill/smart-router-skill/config/personality-config.json and change the mission number from 1 to 2!
"Run Tier 1" - Simple hello skill
"Run Tier 2" - Steps with helper script
"Run Tier 3" - Multi-script workflow
"Run Tier 4" - Movie personality (interactive!)
- Mission 1: Defend the Republic - Train Jedi, fortify defenses
- Mission 2: Infiltrate the Sith - Undercover dark side operation
- Mission 1: Save the World - Build suit, assemble Avengers
- Mission 2: Ultron Protocol - Autonomous defense system
- Mission 1: Solve the Murder - Deductive reasoning
- Mission 2: Prevent the Crime - Predictive analysis
SKILL.md contains instructions for the agent
β
Agent reads the instructions
β
Agent decides which tools to use
β
Agent executes the commands
Helper scripts can be:
- Bash (.sh)
- Python (.py)
- Any language
They live alongside SKILL.md
Agent executes them via bash tool
TypeScript tools in .opencode/tool/
β
Available to all skills
β
Provide specialized functionality
β
Agent calls them directly
Simple JSON config controls workflow
β
Change one number (mission: 1 β 2)
β
Completely different behavior
β
Same character, different story!
Console output shows exactly what's happening
Rich visual feedback with emojis and quotes
Not hallucination or guessing
Agent can see results and make decisions
| Feature | Tier 1 | Tier 2 | Tier 3 | Tier 4 |
|---|---|---|---|---|
| Complexity | Minimal | Medium | Advanced | Interactive |
| Files | 1 | 2 | 5 | 5 |
| Helper Scripts | 0 | 1 | 4 | 3 |
| Custom Tools | No | No | No | Yes (1) |
| Config-Driven | No | No | No | Yes |
| Interactive | No | No | No | Yes |
| Use Case | POC | Workflows | Complex Systems | Fun Demo |
| Learning Curve | Instant | Easy | Moderate | Fun! |
.
βββ .opencode/
β βββ agent/
β β βββ codebase-agent.md # Development agent
β β βββ skills-demo-agent.md # Demo agent
β βββ skill/
β β βββ hello-skill/ # Tier 1
β β β βββ SKILL.md
β β βββ steps-skill/ # Tier 2
β β β βββ SKILL.md
β β β βββ steps.sh
β β βββ workflow-skill/ # Tier 3
β β β βββ SKILL.md
β β β βββ script1.sh
β β β βββ script2.sh
β β β βββ script3.sh
β β β βββ script4.sh
β β βββ smart-router-skill/ # Tier 4 (Movie Personality!)
β β βββ SKILL.md
β β βββ router.sh # Routes to character scripts
β β βββ config/
β β β βββ personality-config.json β Edit this!
β β βββ scripts/
β β βββ yoda-workflow.sh
β β βββ stark-workflow.sh
β β βββ sherlock-workflow.sh
β βββ README.md
βββ SHOWCASE_SUMMARY.txt # Quick reference
βββ MOVIE_PERSONALITY_SUMMARY.md # Tier 4 overview
βββ README.md # This file
Ask: "Use the movie personality skill" - Most fun way to see skills in action!
Read SHOWCASE_SUMMARY.txt to understand what skills are
Run Tier 1, 2, 3, and 4 to see the progression
Edit personality-config.json to change missions (1 β 2) and see different behavior!
Look at individual SKILL.md files and helper scripts
Use this as a template for your own skills
After exploring this showcase, you'll understand:
β How OpenCode Skills are structured β How agents load and execute skills β How helper scripts work with agents β How custom tools extend functionality β The progression from simple to complex β Why skills are better than hallucination β How to create your own skills β NEW: How config changes drive different behaviors β NEW: How to make skills interactive and fun β NEW: How to use dynamic routing based on parameters
Want to see different behavior? It's easy!
- Open
.opencode/skill/smart-router-skill/config/personality-config.json - Find the character you want to change
- Change
"mission": 1to"mission": 2 - Run the skill again - completely different workflow!
Example:
{
"yoda": {
"mission": 2, β Changed from 1 to 2!
"missions": {
"1": { "name": "Defend the Republic", ... },
"2": { "name": "Infiltrate the Sith", ... }
}
}
}Now Yoda will run an undercover Sith infiltration mission instead of defending the Republic!
- Try the movie personality skill - Ask the agent to use it!
- Choose your character - Yoda, Stark, or Sherlock
- Watch the magic - See themed workflows in action
- Customize missions - Edit the config file
- Create your own - Use this as a template
- Skills are modular - Each skill is self-contained and reusable
- Scripts are powerful - Simple bash scripts can do complex work
- Tools extend capabilities - Custom TypeScript tools add specialized functionality
- Full visibility - Console output shows exactly what's happening
- Config-driven behavior - Simple JSON changes create different outcomes
- Interactive is fun - Agent asks questions, user chooses, magic happens!
- Easy to customize - Change one number, get different behavior
Ready to see OpenCode Skills in action?
Ask the agent: "Use the movie personality skill"
π¬ Choose your character and watch the show! π