Install
npx skillscat add naicud/opencode-plugin-cc/opencode-result-handling Install via the SkillsCat registry.
SKILL.md
OpenCode Result Handling
Result Structure
OpenCode returns results as structured session data containing:
- Messages: The full conversation between the user prompt and OpenCode's agent
- Tool calls: All tool invocations (bash, edit, read, write, grep, glob, etc.)
- File changes: Diffs of all files modified during the session
- Status: Whether the session completed successfully, was aborted, or errored
Presenting Results
When displaying results from /opencode:result:
- Show the session ID for reference
- Present the final assistant message as the primary output
- If file changes were made, summarize which files were modified
- Include the session status (completed/aborted/error)
Resuming Sessions
OpenCode sessions can be resumed by sending additional messages to the same session.
The --resume-last flag in the companion script handles this by reusing the last session ID
from the current workspace state.