skills/opencode-config/SKILL.md
Create and configure OpenCode customizations - commands, agents, prompts, modes, and AGENTS.md. Use when user says "create command", "add agent", "opencode prompt", "create mode", "edit AGENTS.md", "customize opencode", "opencode config", or needs guidance on OpenCode-specific configuration patterns.
npx skillsauth add mgajewskik/opencode-config opencode-configInstall 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.
Create commands, agents, prompts, modes, and AGENTS.md for OpenCode.
Route user request to correct config type:
User wants to customize OpenCode behavior
│
├─ User-invoked action with arguments?
│ └─ Yes → COMMAND (load references/commands.md)
│
├─ Autonomous task handler / specialized persona?
│ └─ Yes → AGENT (load references/agents.md)
│
├─ Reusable system instructions for agents?
│ └─ Yes → PROMPT (load references/prompts.md)
│
├─ Session-wide behavior/tool toggle?
│ └─ Yes → MODE (load references/modes.md)
│
└─ Persistent rules across all sessions?
└─ Yes → AGENTS.md (load references/agents-md.md)
| Type | Purpose | Location | Invocation |
|------|---------|----------|------------|
| Command | User action with args | commands/*.md | /name args |
| Agent | Specialized AI persona | agents/*.md | @name or auto |
| Prompt | Reusable instructions | prompts/*.md | Referenced by agents |
| Mode | Tool/behavior toggle | modes/*.md or JSON | Tab key |
| AGENTS.md | Persistent rules | Root AGENTS.md | Always loaded |
Ask if unclear:
/command) or automatically?"Based on decision tree, load the appropriate reference file:
references/commands.mdreferences/agents.mdreferences/prompts.mdreferences/modes.mdreferences/agents-md.mdFollow patterns from loaded reference. Key principles:
{file:./prompts/name.md}Global (all projects):
~/.config/opencode/commands/~/.config/opencode/agents/~/.config/opencode/prompts/~/.config/opencode/modes/~/.config/opencode/AGENTS.mdProject-specific:
.opencode/commands/.opencode/agents/.opencode/prompts/.opencode/modes/./AGENTS.md---
description: Brief description for /help
---
Do X with $ARGUMENTS.
[Instructions for AI...]
---
description: Use when [trigger]. Do NOT use for [anti-trigger].
mode: subagent
model: inherit
tools:
write: false
edit: false
---
You are [role]. Focus on [responsibilities].
[Process steps...]
You are [role]. Your task is to [objective].
[Detailed instructions...]
Referenced by agent: "prompt": "{file:./prompts/name.md}"
---
description: Mode description
tools:
write: true
bash: false
---
[Instructions when in this mode...]
## Section Name
**Rule in bold.**
- Specific instruction
- Another instruction
[Keep concise, actionable]
argument-hint, allowed-tools)$ARGUMENTS or $1, $2 for command argumentsmode: subagent for non-primary agentsdevelopment
Guide technical communication for software developers. Covers email structure, team messaging etiquette, meeting agendas, and adapting messages for technical vs non-technical audiences. Use when drafting professional messages, preparing meeting communications, or improving written communication.
development
Senior-level Helm and Helm chart guidance for Kubernetes. Use when creating, reviewing, debugging, or operating Helm charts/releases: Chart.yaml, values.yaml, templates, dependencies, CRDs, hooks, RBAC, helm install/upgrade/rollback, OCI/provenance, Argo CD/Flux Helm workflows.
testing
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".
testing
Create, update, review, triage, and adopt Architecture Decision Records (ADRs) using MADR-style Markdown templates and senior ADR practice. Use when the user mentions ADR, Architecture Decision Record, decision record, MADR, architectural decision, docs/decisions, supersede ADR, stale ADRs, ADR review, or wants to record a technical decision in a repository.