opencode-zen
Invoke the 'opencode' CLI in headless mode for AI-powered code analysis, reviews, and second opinions. Use when you need a different AI perspective, the user mentions opencode, or requests batch code analysis.
npx skills add majiayu000/claude-skill-registry --skill opencode-zen --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Opencode CLI Skill ## Overview This skill enables invocation of the `opencode` CLI in headless mode for automated AI analysis, code reviews, and generating insights without launching the TUI. Use opencode for: - Second opinions on code or architecture - Batch analysis of multiple files - Alternative AI perspectives (different model families) - Scenarios where the user explicitly requests opencode ## Available Providers Check current providers with `opencode models`. Common options: | Provider | Models | Notes | |----|----|----| | `groq/*` | qwen-qwq-32b, llama-3.3-70b-versatile, deepseek-r1-distill-llama-70b | Fast inference via Groq | | `opencode/*` | big-pickle, gpt-5-nano, grok-code | Opencode's hosted models | **Note**: The `opencode-zen` alias referenced in examples is a custom provider configuration. Until configured, substitute with an available model (e.g., `groq/qwen-qwq-32b`). ## Instructions ### Basic Headless Invocation ```bash # Basic prompt (uses default model) opencode run "Your prompt here" # With specific model opencode run -m groq/qwen-qwq-32b "Your prompt here" # With file context opencode run -m groq/llama-3.3-70b-versatile "Analyze this file" -f src/main.rs #
- Overview
- Available Providers
- Instructions
- Basic Headless Invocation
- Output Control
- Configuration Options
- Examples
- Example 1: Code Review
- Example 2: Batch Analysis
- Example 3: Tech Debt Report
- Example 4: Architecture Review
- Example 5: Multi-turn Session
- Best Practices
- Piping and Composition
Basic prompt (uses default model) opencode run "Your prompt here" With specific model opencode run -m groq/qwen-qwq-32b "Your prompt here" With file context opencode run -m groq/llama-3.3-70b-versatile "Analyze this file" -f src/main.rs Multiple files opencode run "Compare these two implementations" -f src/v1.rs -f src/v2.rs JSON output for parsing opencode run "Your prompt" --format json
What does the opencode-zen skill do?
Invoke the 'opencode' CLI in headless mode for AI-powered code analysis, reviews, and second opinions. Use when you need a different AI perspective, the user mentions opencode, or requests batch code analysis.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill opencode-zen --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
