opencode-session-debugging
Installation
SKILL.md
OpenCode Session Debugging
Use this skill to investigate a broken OpenCode session from evidence first, then fix the responsible code only after the failure mechanism is pinned by a test.
Non-Negotiables
- Inspect the latest OpenCode source before relying on OpenCode behavior.
- Find every child session recursively. A parent transcript alone is incomplete evidence.
- Build a timestamped timeline from transcripts, OpenCode logs, plugin logs, and background-task state.
- Use git history and blame for the failing subsystem before changing code.
- If a fix is needed, switch to
work-with-pr: create a new worktree, write the failing test first, open a PR, and do not merge until all required gates pass. - Treat raw
session.promptandsession.promptAsyncpaths as suspect until the shared prompt gate has been audited.
Phase 0: Capture Inputs
Accept any of these as the starting point: