Skip to content
Agentmart
Submit a tool

opencode

Guidance for using OpenCode, the open-source AI coding agent.

Skill by MAHDTech

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/mahdtech-opencode

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Guidance for using OpenCode, the open-source AI coding agent. Use this skill when working with OpenCode CLI commands, keyboard shortcuts, agents (build/plan), slash commands, tools, skills, MCP servers, or configuration. Automatically triggered when OpenCode-specific questions or tasks are detected.

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/opencode

What's inside

Skill name
opencode
Description
Guidance for using OpenCode, the open-source AI coding agent. Use this skill when working with OpenCode CLI commands, keyboard shortcuts, agents (build/plan), slash commands, tools, skills, MCP servers, or configuration. Automatically triggered when OpenCode-specific questions or tasks are detected.
License
MIT
Metadata
group: opencode · archived: 2026-10-18
Instructions
269 lines in SKILL.md · view on GitHub

Before installing

  • Instructions read files in your home folder (~/.ssh, ~/.aws…)

Files (3)

  • SKILL.md
  • openai.yaml · agents/
  • docs.md · resources/auto/

SKILL.md (first lines)

# OpenCode Expert

Reference guide for OpenCode - the open-source AI coding agent.

## Quick Reference

| Task                  | Command/Action                         |
| --------------------- | -------------------------------------- |
| Start TUI             | `opencode`                             |
| Continue session      | `opencode -c` or `opencode --continue` |
| Run non-interactive   | `opencode run "message"`               |
| Start headless server | `opencode serve`                       |
| Web interface         | `opencode web`                         |
| Switch agent          | `Tab` key                              |
| File search           | `@` then type filename                 |
| Undo changes          | `/undo`                                |
| Redo changes          | `/redo`                                |
| Share conversation    | `/share`                               |
| Initialize project    | `/init`                                |
| Configure API keys    | `/connect`                             |

## Agents

OpenCode has two primary agents, switchable with `Tab`:

### Build Agent (Default)

- Full access to all tools
- Can edit files, run commands, make changes
- Use for active development work

### Plan Agent

- Read-only mode for analysis and exploration
- File edits and bash commands require approval (`ask` mode)
- Use for reviewing implementation strategy before changes

### Subagents

Invoke subagents with `@` mention:

- **@general** - Complex research and multi-step tasks with full tool access
- **@explore** - Fast read-only codebase searches and code questions

## Keyboard Shortcuts

| Key      | Action                               |
| -------- | ------------------------------------ |
| `Tab`    | Switch between Build and Plan agents |
| `@`      | Fuzzy file search                    |
| `Ctrl+C` | Cancel current operation             |

## Slash Commands

| Command    | Description                               |
| ---------- | ----------------------------------------- |
| `/connect` | Configure LLM provider API keys           |
| `/init`    | Initialize project and create `AGENTS.md` |
| `/undo`    | Revert recent changes (stackable)         |
| `/redo`    | Restore undone changes                    |
| `/share`   | Create shareable conversation link        |

## CLI Commands

### Interactive Mode

```bash
# Start TUI in current directory
opencode

# Start in specific project
opencode /path/to/project

# Continue previous session
opencode --continue
opencode -c

# Use specific session
opencode --session <id>
opencode -s <id>

# Start with specific model
opencode --model <model>
opencode -m <model>

# Start with specific agent
opencode --agent build
opencode --agent plan
```

### Non-Interactive Mode

```bash
# Run single prompt
opencode run "Fix the bug in auth.py"

# Run with file attachment
opencode run "Review this" --file README.md
opencode run "Review this" -f README.md

# Run and share result
opencode run "Explain this code" --share

# Run specific command
opencode run --command "npm test"
```

### Server Mode

```bash
# Start headless API server
opencode serve

# With custom port
opencode serve --port 3000

# With mDNS discovery
opencode serve --mdns

From MAHDTech/agent-skills, MIT.

More from MAHDTech/agent-skills

Signals

Stars
0
Forks
0
Open issues
30
Last commit (this folder)
Oct 24, 2026 (4 days ago)
Last release
Oct 23, 2026 (5 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from MAHDTech

Cite this page

opencode skill. Agent Mart. https://agentmart.dev/skills/mahdtech-opencode (last updated 2026-10-24)