Skills are modular rule sets — each one aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/lnardev/opencode-config-agent/llms.txt
Use this file to discover all available pages before exploring further.
SKILL.md file — that the OpenCode Config Agent detects and injects automatically into every sub-agent prompt based on what code is being touched and what action is being performed. Unlike static prompts you invoke manually, skills are context-driven: the orchestrator matches them against the current task and inserts their compact rules before any work begins. You never need to remember to “load” a skill — the registry takes care of that on your behalf.
How Skills Work
Each skill lives in aSKILL.md file and is indexed by the skill-registry. When the orchestrator starts a session or fires its first delegation, it reads the registry once, caches the compact rules in memory, and then injects matching rules into every sub-agent prompt as a ## Project Standards (auto-resolved) block. Sub-agents never read SKILL.md files directly — they receive pre-digested, actionable rules already embedded in their launch prompt.
This build-once / read-cheaply design keeps token costs low (50–150 tokens per skill per delegation) while ensuring every sub-agent works to the same standards regardless of how many agents are running in parallel.
Skill Resolver Protocol
Before launching any sub-agent that reads, writes, or reviews code, the orchestrator runs a four-step injection process:Obtain the Skill Registry
The orchestrator checks its in-session cache first. On a cache miss it queries engram (
mem_search with query: "skill-registry") and falls back to reading .atl/skill-registry.md from the project root. If no registry exists, it warns the user and proceeds with generic review only.Match Skills by Context
Skills are matched on two dimensions simultaneously:
- Code context — file extensions and paths of the target (
.go→go-testing; creating a PR →branch-pr) - Task context — the action being performed (“adversarial review” →
judgment-day; “create new skill” →skill-creator)
Trigger field in each skill’s frontmatter is the source of truth for matching.Inject Compact Rules
The orchestrator copies the matching compact rules blocks from the registry’s Compact Rules section into the sub-agent prompt before any task-specific instructions, under the header
## Project Standards (auto-resolved).Auto-Load Triggers
AGENTS.md defines exactly two hard auto-load entries — the agent is instructed to load these immediately upon detecting the matching context, before writing any code:
| Context | Skill |
|---|---|
| Go tests, Bubbletea TUI testing | go-testing |
| Creating new AI skills | skill-creator |
| Context | Skill |
|---|---|
| SDD workflow steps | sdd-* |
| Creating pull requests | branch-pr |
| Creating GitHub issues | issue-creation |
| Adversarial code review | judgment-day |
Available Skills
Branch & PR
Issue-first PR creation workflow with strict branch naming, conventional commits, and automated GitHub Actions checks.
Go Testing
Table-driven tests, Bubbletea TUI testing with
teatest, golden file comparisons, and mock patterns for Go projects.Judgment Day
Parallel adversarial review — two independent judge sub-agents review the same target simultaneously, then findings are synthesized and fixed.
Skill Creator
Guided workflow for creating new
SKILL.md files with correct frontmatter, compact rules, and trigger conditions.Skill Registry
Scans all skill directories and convention files, generates compact rules, and writes
.atl/skill-registry.md for the orchestrator.Issue Creation
GitHub issue workflow — enforces template usage, the
status:needs-review → status:approved approval chain, and the issue-first PR requirement.Skill Directory Structure
Global skills are installed once and available across all projects. Project-level skills override global ones when both define the same skill name.~/.claude/skills/, ~/.gemini/skills/, ~/.cursor/skills/, and ~/.copilot/skills/ — so the same skill library works across Claude Code, Gemini CLI, Cursor, and Copilot.
SDD-specific skills (
sdd-*) and the _shared directory are internal to the Spec-Driven Development workflow and are intentionally excluded from the skill registry scan. They power the /sdd-* commands but are not covered as standalone skills here.