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 agentsdocumentation
Create senior-level deep research dossiers and roadmap companions. Use when the user asks for a dossier, senior research, deep research, in-depth research, mental models for a topic, senior perspective on a topic, how something actually works, ramp up on a topic, architectural deep dive, tradeoffs, failure modes, or what a senior would notice. Produces current-directory research-* and roadmap-* markdown artifacts, not a tutorial or short summary.
development
Senior-level Knative and OpenShift Serverless guidance for Serving, Eventing, Functions, autoscaling, scale-to-zero, CloudEvents, RabbitMQ/Kafka sources, Lambda migration, Harbor/OCI images, debugging, operations, and production rollout. Use when working with Knative Service, Revision, Route, KPA, activator, queue-proxy, Broker, Trigger, Source, Sink, kn func, OpenShift Serverless, Kourier, eventing-rabbitmq, Knative Kafka, or serverless workloads on Kubernetes/OpenShift.
development
Senior-level RHEL-family Linux operations. Use when running, debugging, hardening, patching, installing, upgrading, or operating Red Hat Enterprise Linux, Rocky Linux, AlmaLinux, CentOS Stream, Fedora-as-upstream, or related enterprise Linux hosts: systemd, RPM/DNF, SELinux, NetworkManager, firewalld, storage, kernel/kdump, FIPS/STIG, Satellite, IdM, Podman, bootc, air-gapped fleets.
development
Senior-level Proxmox VE guidance for VM creation, templates, storage, ZFS, Ceph, networking, clusters, HA, PBS backups, debugging, upgrades, security, and production/homelab operations. Use when working with Proxmox, PVE, Proxmox VE, qm, pct, pvesm, pvecm, pmxcfs, HA manager, Proxmox Backup Server, VM migration, Proxmox incidents, or Ceph/ZFS/Corosync/VLAN bridges in a Proxmox VE context.