opencode

Execute OpenCode CLI for AI code analysis, refactoring, and automated changes.

1|1|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/SwimmingLiu/easy-skills --skill opencode-swimmingliu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode
Source: https://github.com/SwimmingLiu/easy-skills/tree/main/skills/subagent/opencode
Command: npx skills add https://github.com/SwimmingLiu/easy-skills --skill opencode-swimmingliu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates complex code analysis, refactoring, and changes by leveraging advanced AI models, saving developers significant time and effort on intricate coding tasks.

Core Features & Use Cases

  • AI-driven Code Tasks: Executes code analysis, refactoring, and automated changes using various AI models.
  • File References: Supports referencing files directly within the task description using @ syntax.
  • Multi-model & Provider Support: Integrates with multiple AI providers (GitHub Copilot, Google, OpenAI, Zhipu) and models.
  • Session Management: Allows resuming previous conversations for continued task execution.
  • Use Case: Refactor a large codebase for performance improvements by providing the script with a task like "refactor @src/utils for performance" and specifying a powerful model like "claude-opus-4.6".

Quick Start

Use the opencode skill to explain the code in the file named 'src/main.ts'.

Frequently Asked Questions about opencode

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

FAQPage Schema
How do I use AI to refactor a specific file in my codebase?

To refactor code, you can execute an AI-powered analysis by referencing files directly using @syntax in your task description, such as "refactor @src/utils for performance", to automate complex changes.

Can I use GitHub Copilot or Google models for code analysis and generation?

Yes, AI code generation and analysis support multi-model execution across multiple providers including GitHub Copilot, Google, OpenAI, and Zhipu, allowing you to specify models like claude-opus-4.6 for your tasks.

Do I need to install anything before running AI-powered code changes?

Yes, you need to install the OpenCode CLI before executing AI-powered code changes. The skill requires this environment setup to function properly.

What is the best way to resume a previous AI coding session?

Session management allows you to resume previous conversations for continued task execution. This feature lets you pick up complex code analysis or refactoring tasks exactly where you left off.

How does Python script execution work with AI code analysis?

Python script execution for AI code analysis can be run via uv run or direct invocation, providing flexible options to integrate automated code generation and refactoring into your workflow.

Does automated code refactoring work with large codebases?

Yes, automated code refactoring supports large codebases by allowing you to specify powerful models and reference entire directories or files using @syntax to handle intricate coding tasks.