opencode-agent
Delegate tasks to an opencode agent that uses alternative AI models (default: zai-coding-plan/glm-5-turbo). Use this skill whenever the user asks to "run opencode", "launch an opencode agent", "use opencode", or wants to delegate a task to opencode. Also use it when the user asks to run a task with a non-Claude model like GLM, or mentions opencode in any context where they want work done.
What this skill does
# Opencode Agent Delegate tasks to [opencode](https://opencode.ai), an alternative AI coding agent. This skill runs `opencode run` as a subprocess, letting you hand off work to models like zai-coding-plan/glm-5-turbo without leaving your Claude Code session. ## When to use this - The user explicitly asks to run something with opencode - The user wants to use a non-Claude model (GLM, etc.) for a specific task - The user says "launch an opencode agent" or similar phrasing ## How it works Run the user's task via `opencode run`, passing the task as the message argument. The default model is **zai-coding-plan/glm-5-turbo**. If the user specifies a different model, pass it with the `-m` flag. ### Basic execution ```bash opencode run -m zai-coding-plan/glm-5-turbo "<task description>" ``` ### With a specific model If the user requests a different model, override: ```bash opencode run -m <provider/model> "<task description>" ``` ### With a custom prompt/agent ```bash opencode run --prompt "<system prompt>" "<task description>" opencode run --agent <agent-name> "<task description>" ``` ## Step-by-step 1. **Parse the request.** Extract the task the user wants opencode to perform. If the user specified a model, note it. Otherwise default to zai-coding-plan/glm-5-turbo. 2. **Run opencode.** Execute the task using Bash. Choose the right execution strategy based on the task's expected duration: **Short tasks** (file creation, simple edits, quick scripts) — run inline with a 2-minute timeout: ```bash opencode run -m zai-coding-plan/glm-5-turbo "<task>" ``` **Medium tasks** (multi-file changes, test generation, refactoring) — use a longer timeout up to 10 minutes: ```bash opencode run -m zai-coding-plan/glm-5-turbo "<task>" # with timeout set to 600000 ``` **Long-running tasks** (large codebases, complex generation, full project scaffolding) — run in the background so the user isn't blocked: ```bash opencode run -m zai-coding-plan/glm-5-turbo "<task>" # with run_in_background: true ``` When running in the background, you'll be notified when the task completes. Let the user know the task is running and you'll report back when it finishes. Always pass `-m zai-coding-plan/glm-5-turbo` unless the user specified a different model. 3. **Verify the result.** After opencode finishes, check that the expected output was produced. If opencode created or modified files, read them to confirm. Report the outcome to the user. 4. **Handle errors.** If opencode fails or isn't installed, tell the user clearly. Common issues: - `opencode: command not found` — opencode isn't installed. Suggest `npm install -g opencode` or checking their PATH. - Timeout — increase the timeout or run in the background. If the task is genuinely too large, break it into smaller subtasks. - Model not available — the requested model may not be configured. Suggest running `opencode models` to see available options. ## Tips - You can continue a previous opencode session with `opencode run -c "<follow-up message>"`. - To see what models are available: `opencode models`. - The user's opencode configuration (API keys, providers) is managed separately from Claude Code — if a model isn't working, point them to `opencode providers` to set up credentials.
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.