OpenCode plugin for loading and using Viking remote skills.
bunx opencode-viking-skill-plugin@latest installThe install command will:
- Register the plugin in
~/.config/opencode/opencode.jsonc - Add
/viking_skill_listcommand to list available Viking skills - Add
/viking_skill_loadcommand to load a specific Viking skill - Prompt you to configure Viking skill credentials (optional)
- If accepted: creates
~/.config/opencode/viking.jsonwith credentials - If declined: displays instructions for environment variables or manual config
- If accepted: creates
Or let your agent do it - paste this into OpenCode:
Install opencode-viking-skill-plugin by following https://github.com/Yeshion233/opencode-viking-skill-plugin/blob/main/README.md
Viking skill credentials can be configured in two ways (environment variables take priority):
export VIKING_SKILL_API_URL="https://your-viking-api.com"
export VIKING_SKILL_API_KEY="your-api-key"Optional: Set custom cache directory (default: ~/.opencode/skill)
export VIKING_SKILL_CACHE_DIR="/path/to/cache"Create ~/.config/opencode/viking.json:
{
"skill_api_url": "https://your-viking-api.com",
"skill_api_key": "your-api-key"
}The plugin supports two authentication methods:
API Key (Priority): Uses Authorization: Bearer {api_key} header
- Startup Skill Loading: Automatically fetches and caches available Viking skills from the remote API on startup
- Context-Aware Skill Usage: Seamlessly integrates Viking skills into conversation context for intelligent task execution
/viking_skill_list
/viking_skill_load
bun install # Install dependencies
bun run build # Build the plugin
bun run typecheck # Run type checkingMIT