opencode-expert▌
s-hiraoku/synapse-a2a · updated May 28, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
Comprehensive guide for OpenCode - the open-source AI coding agent.
OpenCode Expert
Comprehensive 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 (
askmode) - 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
# 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
# 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
# Start headless API server
opencode serve
# With custom port
opencode serve --port 3000
# With mDNS discovery
opencode serve --mdns
# Web interface
opencode web
Management Commands
# Authentication
opencode auth login
opencode auth list
opencode auth logout
# Models
opencode models # List available models
opencode models --refresh # Refresh model cache
# Agents
opencode agent create # Create custom agent
opencode agent list # List agents
# MCP servers
opencode mcp add <server>
opencode mcp list
opencode mcp auth
opencode mcp debug
# Sessions
opencode session list
opencode session list -n 10 # Last 10 sessions
# Statistics
opencode stats
opencode stats --days 7
opencode stats --tools
opencode stats --models
# Export/Import
opencode export <sessionID>
opencode import <file>
# Upgrade
opencode upgrade
opencode upgrade <version>
Built-in Tools
OpenCode provides these tools to agents:
| Tool | Description |
|---|---|
| read | Read file contents with optional line ranges |
| write | Create new files or overwrite existing |
| edit | Modify files using exact string replacements |
| patch | Apply patch files |
| grep | Search file contents with regex |
| glob | Find files by pattern (**/*.js) |
| list | List files and directories |
| bash | Execute shell commands |
| lsp | Language Server Protocol integration (experimental) |
| todowrite | Create/update task lists |
| todoread | Read current todo state |
| skill | Load skill files into conversation |
| webfetch | Fetch and read web pages |
| question | Ask user clarifying questions |
Skills
File Locations
Skills are discovered from (in order):
.agents/skills/<name>/SKILL.md(project, shared with Codex).claude/skills/<name>/SKILL.md(Claude-compatible project)~/.config/opencode/skills/<name>/SKILL.md(global)~/.claude/skills/<name>/SKILL.md(Claude-compatible global)
Skill Format
---
name: my-skill
description: Description of what this skill does and when to use it.
---
# Skill Content
Instructions and documentation here...
Name Rules
- Lowercase alphanumeric with single hyphens
- Cannot start/end with hyphens
- No consecutive hyphens (
--) - Must match directory name
Configuration
Config Locations
- Project:
.opencode/oropencode.json - Global:
~/.config/opencode/
Environment Variables
| Variable | Description |
|---|---|
OPENCODE_CONFIG |
Custom config path |
OPENCODE_PERMISSION |
Permission mode |
OPENCODE_SERVER_PASSWORD |
Server auth password |
OPENCODE_DISABLE_AUTOUPDATE |
Disable auto-updates |
OPENCODE_EXPERIMENTAL |
Enable experimental features |
OPENCODE_ENABLE_EXA |
Enable Exa search |
Custom Agents
Create agents via opencode agent create or define in:
opencode.json~/.config/opencode/agents/.opencode/agents/
Agent config options: description, temperature, model, tool permissions, system prompts.
Best Practices
Use Plan Mode First
Switch to Plan agent (Tab) to review implementation strategy before making changes.
File References
Use @filename to fuzzy search and reference files in prompts.
Undo Stack
Use /undo liberally - changes are stackable and reversible with /redo.
Session Management
Use --continue or -c to resume previous sessions and maintain context.
References
For detailed documentation, see:
references/cli.md- Complete CLI referencereferences/tools.md- Tool details and permissionsreferences/agents.md- Agent configuration guide
How to use opencode-expert on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add opencode-expert
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches opencode-expert from GitHub repository s-hiraoku/synapse-a2a and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate opencode-expert. Access the skill through slash commands (e.g., /opencode-expert) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
User Story & Requirements Generation
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Competitive Analysis
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Roadmap Prioritization
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
Make data-driven prioritization decisions faster
Stakeholder Communication
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client
- ›Access to product documentation and roadmap tools (Jira, Notion, etc.)
- ›Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
- ›Stakeholder contact information and communication channels
Time Estimate
30-60 minutes to see productivity improvements
Installation Steps
- 1.Install product management skill
- 2.Start with user story generation for known feature
- 3.Progress to competitive analysis: research 2-3 competitors
- 4.Use for roadmap prioritization: apply RICE/ICE scoring
- 5.Draft stakeholder communications and refine based on feedback
- 6.Build template library for recurring PM tasks
- 7.Share effective prompts with product team
Common Pitfalls
- ⚠Not validating competitive research—verify facts before sharing
- ⚠Accepting user stories without involving engineering team
- ⚠Over-relying on frameworks without qualitative judgment
- ⚠Not customizing outputs to company culture and communication style
- ⚠Skipping stakeholder validation of generated requirements
Best Practices▌
✓ Do
- +Validate research and competitive analysis with real data
- +Collaborate with engineering when generating technical requirements
- +Customize frameworks and templates to your company context
- +Use skill for first drafts, refine with stakeholder input
- +Document successful prompt patterns for PM tasks
- +Combine AI efficiency with human judgment and intuition
✗ Don't
- −Don't publish competitive analysis without fact-checking
- −Don't finalize user stories without engineering review
- −Don't make prioritization decisions solely on AI scoring
- −Don't skip customer validation of generated requirements
- −Don't ignore company-specific context and culture
💡 Pro Tips
- ★Provide context: company goals, constraints, customer feedback
- ★Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
- ★Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
- ★Use skill for 70% generation + 30% customization to company needs
When to Use This▌
✓ Use When
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid When
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
Learning Path▌
- 1Basic: user stories, feature specs, status updates
- 2Intermediate: competitive analysis, prioritization frameworks, PRDs
- 3Advanced: product strategy, go-to-market planning, OKR setting
- 4Expert: product vision, market positioning, business model innovation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.8★★★★★27 reviews- ★★★★★Benjamin Yang· Dec 24, 2024
opencode-expert reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Isabella Gupta· Dec 20, 2024
opencode-expert fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Isabella Jackson· Nov 15, 2024
We added opencode-expert from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Aarav Srinivasan· Oct 6, 2024
Keeps context tight: opencode-expert is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Henry Shah· Sep 21, 2024
opencode-expert reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Arjun Nasser· Sep 13, 2024
I recommend opencode-expert for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Piyush G· Sep 9, 2024
Keeps context tight: opencode-expert is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Shikha Mishra· Aug 28, 2024
We added opencode-expert from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Yuki Rahman· Aug 12, 2024
opencode-expert is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Omar Singh· Aug 4, 2024
Solid pick for teams standardizing on skills: opencode-expert is focused, and the summary matches what you get after install.
showing 1-10 of 27