ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 3/5

opencode

OpenCode AI - AI-driven code editor/IDE (CLI/TUI version of Cursor/Windsurf). Use when: (1) AI-assisted coding tasks, (2) Code refactoring with AI, (3) GitHub PR review/fixes, (4) Multi-file edits requiring context, (5) Running AI agents on codebases. NOT for: simple one-line edits (use edit tool), reading files (use read tool).

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/csuwl/opencode
Or

What This Skill Does

OpenCode AI is a powerful, terminal-based AI-native code editor designed to bring the capabilities of sophisticated IDEs like Cursor or Windsurf directly into your command-line interface. It functions as an intelligent pair programmer, capable of navigating complex codebases, understanding contextual relationships between multiple files, and executing multi-step coding tasks. By utilizing a session-based TUI, OpenCode allows developers to maintain long-running context, switch between specialized agent modes (plan, build, explore, general), and toggle between high-performance AI models, all while staying within the terminal environment.

Installation

To integrate this skill into your environment, use the OpenClaw management command: clawhub install openclaw/skills/skills/csuwl/opencode

Important System Configuration: OpenCode relies on system-level utilities to function correctly. Ensure the following path configuration exists in your ~/.zshrc to prevent errors related to missing sysctl dependencies: export PATH="/usr/sbin:/usr/bin:/sbin:/bin:$PATH" After modifying your profile, run source ~/.zshrc to apply the changes.

Use Cases

This tool is best suited for complex development lifecycle tasks. Use OpenCode for:

  • Refactoring: Executing deep structural changes across an entire repository while maintaining logic integrity.
  • Feature Implementation: Generating code based on complex requirements that involve multiple classes or modules.
  • PR Assistance: Performing automated code reviews and generating fixes for GitHub pull requests.
  • Exploration: Using the 'explore' agent to map out unfamiliar, legacy, or undocumented codebases to accelerate onboarding.

Example Prompts

  1. "OpenCode, please analyze the current project and create a 'plan' to migrate our authentication logic from JWT to OAuth2 across all API controllers."
  2. "Switch to the 'build' agent and implement the data validation middleware we just discussed in the plan, ensuring you update the associated unit tests."
  3. "OpenCode, use the 'explore' agent to identify why the integration test in tests/auth_test.py is failing and suggest a fix."

Tips & Limitations

  • The Plan-Build Workflow: Never skip the planning phase. High-quality output is directly correlated to your willingness to refine the plan before switching to the build agent. If the AI asks clarifying questions, move back to the 'plan' agent to ensure the roadmap is solid.
  • Tool Boundaries: Do not use this skill for trivial tasks. Use the dedicated 'edit' tool for single-line changes and the 'read' tool for simple file inspection. This preserves agent tokens and keeps your terminal session clean.
  • Session Management: Utilize the /sessions command to manage separate project contexts. Using distinct sessions prevents the AI from becoming overwhelmed by unrelated project history.

Metadata

Author@csuwl
Stars3409
Views3
Updated2026-03-25
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-csuwl-opencode": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#coding#terminal#ai-ide#refactoring#developer-productivity
Safety Score: 3/5

Flags: file-write, file-read, code-execution, external-api