Skip to content
Back to skills

Opencode Prompting

ASecurity

Best practices for crafting effective prompts when delegating tasks to OpenCode

  • 40 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgodebuggingrefactoring

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add tasict/opencode-plugin-cc --skill opencode-prompting --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Opencode Prompting?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Opencode Prompting
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tasict-opencode-prompting/badge)](https://www.skillsdirectory.com/skills/tasict-opencode-prompting)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: opencode-prompting
description: Best practices for crafting effective prompts when delegating tasks to OpenCode
user-invocable: false
---

# OpenCode Prompting Guide

Use this skill to shape prompts before forwarding to the OpenCode companion runtime.

## Prompt Structure

A good OpenCode task prompt should:
1. **State the goal clearly** -- What should be accomplished?
2. **Provide context** -- What files, functions, or systems are involved?
3. **Define success criteria** -- How do we know it's done?
4. **Set constraints** -- What should NOT be changed?

## Agent Selection

OpenCode has two primary agents:
- **build** (default): Full read/write access, can execute commands, edit files, and make changes
- **plan**: Read-only analysis mode, good for investigation and architecture planning

## Best Practices

- Be specific about file paths and function names when possible
- Include error messages or test failures verbatim
- Specify the programming language and framework context
- If debugging, include reproduction steps
- For refactoring, describe the desired end state

## Anti-patterns

- Do not ask OpenCode to "fix everything" without specifics
- Do not include irrelevant context that dilutes the prompt
- Do not ask for multiple unrelated tasks in one prompt
- Do not assume OpenCode knows your project's conventions without telling it

Files in this skill

  • SKILL.md1.3 KB
  • references/opencode-prompt-antipatterns.md983 B
  • references/opencode-prompt-recipes.md935 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.