OpenAgentsControl: Skill for OpenCode

.opencode/skills/smart-router-skill/SKILL.md

smart-router-skill is a skill for OpenCode from darrenhinde/OpenAgentsControl. It costs 21 tokens per session (1,874 once invoked), scanned A, original, MIT.

An interactive demonstration that changes its workflow according to a selected movie character, such as Yoda, Tony Stark, or Sherlock Holmes. Its missions and behavior are controlled by configuration.

In plain words
What is it for?
Use it to explore character-based missions, configurable outcomes, themed scripts, and routing between different workflows.
Why use it?
It shows how one skill can route requests into different themed workflows using a simple choice and editable settings.

Skill for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: mentions OpenCode.

This is darrenhinde/OpenAgentsControl's own configuration. It tells OpenCode how to work on OpenAgentsControl itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything OpenAgentsControl configures →

About the project

OpenAgents Control is a framework that adds plan-first, approval-based coding workflows to OpenCode, an AI coding framework. Developers and teams use it to make agents follow shared coding patterns, work across several programming languages, and validate changes through testing and review. The catalogue includes its agents, skills, commands, plugin, and hook.

darrenhinde/OpenAgentsControl · 4,826 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to darrenhinde/OpenAgentsControl. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/darrenhinde/OpenAgentsControl/main/.opencode/skills/smart-router-skill/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/darrenhinde/OpenAgentsControl

Made for: OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for smart-router-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darrenhinde/openagentscontrol/smart-router-skill.svg)](https://agentmods.dev/skills/darrenhinde/openagentscontrol/smart-router-skill)
Your own site
<a href="https://agentmods.dev/skills/darrenhinde/openagentscontrol/smart-router-skill"><img src="https://agentmods.dev/badge/skills/darrenhinde/openagentscontrol/smart-router-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,874 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.01874
Opus 5 $0.00010 $0.00937
Sonnet 5 $0.00004 $0.00375
Haiku 4.5 $0.00002 $0.00187

Measured 8d ago against content hash 6571c7b195e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

smart-router-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (router.sh, scripts/sherlock-workflow.sh, scripts/stark-workflow.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.opencode/skills/smart-router-skill/SKILL.md · 261 lines

How it starts

The opening of the file, as written. The whole thing — 261 lines — stays where its author put it; the contents beside it link to each section on GitHub.

What I do

I'm a fun, interactive skill that lets you embody iconic movie characters! I demonstrate:

  • 🎬 Character Selection - Choose from Yoda, Tony Stark, or Sherlock Holmes
  • 🎯 Configurable Missions - Simple config changes create different outcomes
  • 🎨 Themed Workflows - Rich, visual scripts that match each character
  • 🔄 Dynamic Routing - Different scripts run based on character choice
  • ⚙️ Easy Customization - Edit one config file to change missions

This shows how skills can adapt behavior based on simple configuration changes!

How to use me

IMPORTANT: First, I'll ask you which character you want to embody!

Available Characters

  • yoda - Wise Jedi Master from Star Wars

    • Mission 1: Defend the Republic (train Jedi, fortify defenses)
    • Mission 2: Infiltrate the Sith (undercover operation)
  • stark - Genius billionaire Tony Stark from Iron Man

    • Mission 1: Save the World (build suit, assemble Avengers)
    • Mission 2: Ultron Protocol (autonomous defense system)
  • sherlock - Master detective Sherlock Holmes

    • Mission 1: Solve the Murder (deductive reasoning)
    • Mission 2: Prevent the Crime (predictive analysis)

Basic Usage

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>

Example Flow

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*

Customizing Missions

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", ... }
    }
  }
}

Read the full file on GitHub · 261 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 261 lines · 21 tokens per session scan A 6571c7b195e6

Subscribe to this mod's changes

smart-router-skill is a skill published in the GitHub repository darrenhinde/OpenAgentsControl (4,826 stars, last pushed 5d ago), licensed MIT. It adds 21 tokens to every session and 1,874 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories