ワンクリックで
opencode-prompting
How to compose effective prompts for OpenCode workers. Include context inline, be specific, set output format.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
How to compose effective prompts for OpenCode workers. Include context inline, be specific, set output format.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Delegate one or more tasks to OpenCode workers (Haiku subagents). Single worker for focused tasks, multiple workers in parallel for complex ones. No tmux required.
How Claude should process and present OpenCode worker results — validate, synthesize, present. Token-efficient.
Spawn a Haiku worker to run a task via OpenCode. The worker calls oc-run.sh which executes opencode run headlessly. No tmux, no server, no custom UI.
| name | opencode-prompting |
| description | How to compose effective prompts for OpenCode workers. Include context inline, be specific, set output format. |
| user-invocable | false |
Workers can't read files — all context must be in the prompt. A good prompt = a good result.
## Task
[One clear sentence: what to do]
## Context
[Paste the relevant code, diff, error message, or file content directly here]
## Output Format
[Exact shape: "List as bullets with severity", "Max 500 words", "Steps in order"]
cat files — include the relevant excerpt.## Task
Review this code for bugs, security issues, and code quality problems.
## Code
<paste diff or file content here>
## Output Format
Bullet list: [SEVERITY] file:line — description
SEVERITY: CRITICAL | HIGH | MEDIUM | LOW
Max 10 findings, CRITICAL first.
## Task
Create an implementation plan for: <description>
## Current state
<paste relevant file structure or existing code>
## Output Format
1. Files to create/modify (with paths)
2. Key decisions and tradeoffs
3. Step-by-step order
4. Risks
Max 600 words.
## Task
<specific question>
## Context
<error message, stack trace, or relevant code>
## Output Format
1. Root cause (one sentence)
2. Fix (code snippet if applicable)
3. Why this works (one sentence)
The worker uses the model configured via /swarm-code:init. Pass model="haiku" to the Agent tool — Haiku is cheap and fast, sufficient for most delegation tasks.
For complex tasks (security audit, architecture review), pass the prompt directly to Claude instead of delegating — the token savings don't justify the quality tradeoff for high-stakes decisions.
Claude should NOT forward the raw user message to the worker. Always:
Then pass the enriched prompt to the worker.