opencode-expert

Guide developers on OpenCode CLI commands, agents, and configuration.

1|Updated Sep 11, 2023
One-click install
npx skills add https://github.com/vcntttt/dotfiles --skill opencode-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode-expert
Source: https://github.com/vcntttt/dotfiles/tree/main/.agents/skills/opencode-expert
Command: npx skills add https://github.com/vcntttt/dotfiles --skill opencode-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides comprehensive guidance for using OpenCode, the open-source AI coding agent. It covers CLI commands, keyboard shortcuts, agent modes (build/plan), slash commands, tools, skills, MCP servers, and configuration. It is automatically triggered when OpenCode-specific questions or tasks are detected.

Core Features & Use Cases

  • Comprehensive OpenCode usage guide covering TUI, server, and non-interactive modes.
  • Quick references for switching between Build and Plan agents, fuzzy file search, and common slash commands.
  • Practical examples and checklists for configuring models, agents, and MCP servers in real-world workflows.

Quick Start

Start OpenCode in the current directory with opencode. Switch between Build and Plan agents using Tab. Initialize a project and configure keys with /init and /connect respectively.

Frequently Asked Questions about opencode-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use OpenCode CLI commands for coding workflows?

OpenCode CLI commands support coding workflows by offering TUI, server, and non-interactive modes. You can start a session, switch between Build and Plan agents using Tab, and execute slash commands to manage projects.

What are the differences between Build and Plan agents in OpenCode?

Build and Plan agents in OpenCode provide distinct development modes. You can switch between them using the Tab key to either plan project architecture or execute build tasks directly within your workflow.

How do I configure MCP servers and models in OpenCode?

Configuring MCP servers and models in OpenCode involves using slash commands like /connect for keys and /init for project setup. This integrates external tools and sets up your AI models for development.

Can I use OpenCode for non-interactive coding tasks?

Yes, OpenCode supports non-interactive coding tasks through its server and non-interactive CLI modes. This allows you to automate workflows and integrate the AI agent into scripts without using the TUI.

What keyboard shortcuts are available in the OpenCode TUI?

The OpenCode TUI provides keyboard shortcuts like Tab for switching agents and fuzzy file search functionality. These shortcuts streamline navigation and project configuration within the terminal interface.