commands/SKILL.md
Manage OpenCode skills - list, add, remove, edit, search, create, update, package, validate, sync, setup, scan
npx skillsauth add Thomashighbaugh/opencode commandsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Unified command for managing OpenCode Hubs skills. Covers CRUD, search, sync, packaging, and validation.
Show all available skills organized by scope.
Behavior:
skills/ directory (read-only)${OPENCODE_CONFIG_DIR:-~/.config/opencode}/skills/omc-learned/.opencode/state/skills/${OPENCODE_CONFIG_DIR:-~/.config/opencode}/skills/*-category-pointer/ (if opencode-skills-collection plugin is installed)BUILT-IN SKILLS (64 bundled):
| Name | Description | Scope |
|-------------------|--------------------------------|----------|
| visual-verdict | Structured visual QA verdicts | built-in |
| ralph | Persistence loop | built-in |
PLUGIN SKILL CATEGORIES (opencode-skills-collection):
| Category | Skills | Hub Access |
|------------------------------|--------|-------------------------|
| development | 136 | /project, /skill |
| security | 73 | /project, /skill |
| workflow | 53 | /orchestrate, /skill |
| ai-ml | 103 | /skill |
| ... | ... | ... |
USER SKILLS (~/.config/opencode/skills/omc-learned/):
| Name | Triggers | Quality | Usage | Scope |
|-------------------|--------------------|---------|-------|-------|
| error-handler | fix, error | 95% | 42 | user |
PROJECT SKILLS (.opencode/state/skills/):
| Name | Triggers | Quality | Usage | Scope |
|-------------------|--------------------|---------|-------|-------|
| test-runner | test, run | 92% | 15 | project |
Plugin categories: When the opencode-skills-collection plugin is installed, category pointers appear as *-category-pointer directories in the skills folder. Each pointer's SKILL.md lists all skills in that category. Skills are loaded on demand via view_file from the vault at ~/.config/opencode/skill-libraries/.
Hub routing for plugin skills: Use the hub access column to determine which hub can invoke skills from each category:
/ideation → planning, brainstorming, research categories/orchestrate → workflow, automation, agent-orchestration categories/harvest-context → meta, memory, content categories/project → development, devops, testing, security categories/skill → all categories (universal access)Fallback: If quality/usage stats not available, show "N/A"
Note: Built-in skills are discoverable/readable but cannot be removed or edited. Plugin skills are loaded on demand and don't add / command completions.
Interactive wizard for creating a new skill.
Behavior:
user → ${OPENCODE_CONFIG_DIR:-~/.config/opencode}/skills/omc-learned/<name>/SKILL.mdproject → .opencode/state/skills/<name>/SKILL.mdskill-creator skill process:
scripts/init_skill.py <skill-name> --path <scope-dir>/skill edit <name> to customizeRemove a skill by name.
Behavior:
/skill searchSafety: Never delete without explicit user confirmation.
Edit an existing skill interactively.
Behavior:
description, triggers, argument-hint, content, rename, cancelSearch skills by content, triggers, name, or description.
Behavior:
Show detailed information about a skill.
Behavior:
Create a new skill using the full skill-creator workflow (deeper than add).
Behavior:
scripts/init_skill.pyUse create for complex skills requiring bundled resources. Use add for quick skills.
Update an existing skill using the skill-creator iteration workflow.
Behavior:
Package skill for distribution.
Behavior:
scripts/package_skill.py ~/.config/opencode/skills/<name>Validate skill structure without packaging.
Behavior:
package_skill.pySync skills between user and project scopes.
Behavior:
Safety: Never overwrite without confirmation.
Interactive wizard for setting up skill directories and managing local skills.
Behavior:
skills/omc-learned/ and .opencode/state/skills/Quick scan of both skill directories (non-interactive version of setup Step 2).
skill-name/
├── SKILL.md # Required: Main skill definition
│ ├── name: # Skill identifier
│ └── description: # When to use (trigger context)
├── scripts/ # Optional: Executable scripts
├── references/ # Optional: Documentation to load
└── assets/ # Optional: Output files (templates, etc.)
references/scripts/assets/When creating skills, offer these templates:
---
name: [Error Name]
description: Solution for [specific error in specific context]
triggers: ["error message fragment", "file path", "symptom"]
---
# [Error Name]
## The Insight
[Underlying cause / principle discovered]
## Recognition Pattern
- Error message: "[exact error]"
- File: [specific file path]
- Context: [when this occurs]
## The Approach
1. [Specific action with file/line reference]
2. [Specific action with file/line reference]
3. [Verification step]
---
name: [Workflow Name]
description: Process for [specific task in this codebase]
triggers: ["task description", "file pattern", "goal keyword"]
---
# [Workflow Name]
## The Insight
[What makes this workflow different from the obvious approach]
## Recognition Pattern
- Task type: [specific task]
- Files involved: [specific patterns]
## The Approach
1. [Step with specific commands/files]
2. [Step with specific commands/files]
3. [Verification]
---
name: [Pattern Name]
description: Pattern for [specific use case in this codebase]
triggers: ["code pattern", "file type", "problem domain"]
---
# [Pattern Name]
## The Insight
[Key principle behind this pattern]
## Recognition Pattern
- File types: [specific files]
- Problem: [specific problem]
## The Approach
1. [Principle-based step]
2. [Principle-based step]
## Anti-Pattern
[What NOT to do and why]
All commands must handle:
Error format:
✗ Error: <clear message>
→ Suggestion: <helpful next step>
/skill list # List all skills
/skill add my-custom-skill # Quick-add a skill
/skill create github-ops # Full creation workflow
/skill update changelog-generator # Update existing skill
/skill edit error-handler # Edit skill interactively
/skill remove old-skill # Remove a skill
/skill search typescript error # Search for skills
/skill info my-custom-skill # Show skill details
/skill package github-ops # Package for distribution
/skill validate my-skill # Validate structure
/skill sync # Sync between scopes
/skill setup # Setup wizard
/skill scan # Quick scan
skill-creator skill - Deep creation guide and processlearner skill / /learner - Extract a skill from current conversationtools
Analyze a codebase and auto-generate project-specific agents, skills, tools, and rules into .opencode/. Project wrappers inject deep project context into subagents for dramatically more effective AI assistance.
development
Synchronize opencode.jsonc with the latest OpenCode config schema from Context7. Checks schema, detects drift, and updates config to remain compliant.
development
Enforce the <Agent_Prompt> XML wrapper convention across all agent definition files. Scan, validate, and auto-fix non-compliant agents.
development
Auto-maintained vector DB for semantic search over .opencode/context/ — zero manual triggers needed