opencode-viking-skill-plugin
v0.2.4
Published
OpenCode plugin for loading Viking remote skills
Downloads
1,236
Maintainers
Readme
OpenCode Viking Skill Plugin
OpenCode plugin for loading and using Viking remote skills.
Installation
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.mdConfiguration
Viking skill credentials can be configured in two ways (environment variables take priority):
Option 1: Environment Variables (Priority)
export VIKING_SKILL_API_URL="https://your-viking-api.com"
export VIKING_SKILL_AK="your-access-key"
export VIKING_SKILL_SK="your-secret-key"Optional: Set custom cache directory (default: ~/.opencode/skill)
export VIKING_SKILL_CACHE_DIR="/path/to/cache"Option 2: Viking Config File
Create ~/.config/opencode/viking.json:
{
"skill_api_url": "https://your-viking-api.com",
"skill_ak": "your-access-key",
"skill_sk": "your-secret-key",
"skill_cache_dir": "/path/to/cache"
}Features
- 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
Usage
List Available Viking Skills
/viking_skill_listReload a Viking Skill
/viking_skill_loadUsing Viking Skills in Context
Development
bun install # Install dependencies
bun run build # Build the plugin
bun run typecheck # Run type checkingLicense
MIT
