From swarm-code
Guides crafting effective prompts for OpenCode workers: inline context, specific tasks, output formats. Templates for code review, implementation planning, debugging.
npx claudepluginhub apoapps/swarm-code-plugin --plugin swarm-codeThis skill uses the workspace's default tool permissions.
<!-- Made by Alejandro Apodaca Cordova (apoapps.com) -->
Use when the user asks to run Claude Code CLI (`claude`, `claude resume`) for review, analysis, implementation, refactoring, debugging, or follow-up specifically through Claude Code.
Internal guidance for composing Copilot prompts for coding, review, diagnosis, and research tasks across GPT-5.4, GPT-5.3-Codex, and Gemini 3.1 Pro inside the Copilot Claude Code plugin
Guides structured prompt composition for Codex/GPT-5.4 in coding, review, diagnosis, and research tasks within Claude Code plugin.
Share bugs, ideas, or general feedback.
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.