.opencode/
├── AGENTS.md # (or sometimes project-level rules/instructions; often auto-generated by /init)
├── opencode.json # (or opencode.jsonc) — Main project configuration (models, providers, permissions, etc.)
│
├── agents/ # Custom agents and sub-agents (Markdown files)
│ ├── review.md # Example: code-reviewer agent
│ ├── security.md # Example: security auditor
│ ├── workflow-orchestrator.md
│ └── ... # One .md file per agent (filename = agent name)
│
├── skills/ # Reusable agent skills (loaded on-demand)
│ ├── deploy/ # One folder per skill
│ │ └── SKILL.md # Required: contains name, description, instructions, and optional resources/scripts
│ ├── git-release/
│ │ └── SKILL.md
│ ├── review/
│ │ └── SKILL.md
│ └── .../
│
├── commands/ # Custom slash commands (e.g. /test, /deploy)
│ ├── test.md # Example command definition
│ └── ... # Markdown files; filename becomes the command name
│
├── plugins/ # Custom plugins (JS/TS files or configs for extending tools/hooks)
│ └── my-plugin.js
│
├── tools/ # (Less common) Custom tool definitions if extending the native tools
│
├── modes/ # Custom modes (if any)
│
└── themes/ # (Optional) Custom TUI themes
Back to top