opencode-session-investigation

仓库创建 2026年1月20日最近提交 21 天前SkillHot 收录 20 天前
▸ 精选理由

适合排查 agent 漂移、工具滥用与交接问题

▸ 风险提示

可能处理敏感会话数据,注意隐私与授权

这个 Skill 做什么

解析 OpenCode 会话导出,重建行为并建议修复

把 OpenCode 会话导出文件还原成可读的事件流,分清事实行为和 prompt 风险,最后给出修复建议。在调查 agent drift、未交接、工具误用或需要基于会话导出做根因分析时使用。重点是重建 parent/child session 的实际执行路径,并给出 prompt、权限和流程层面的可操作改进。

▸ 展开 SKILL.md 英文原文

Use when investigating opencode sessions, subsessions, agent drift, missed handoffs, tool misuse, or feedback grounded in opencode session exports.

Skill 开发管理opencode会话调查调试通用
3
Stars
0
Forks
14
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/ton-anywhere/my-favorite-prompts/main/skills/opencode-session-investigation/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/ton-anywhere/my-favorite-prompts/main/skills/opencode-session-investigation/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# OpenCode Session Investigation

## Purpose

Reconstruct what actually happened in an opencode session from exported parent and child sessions. Separate confirmed behavior from prompt risk, then recommend prompt, permission, or workflow fixes.

## Quick Workflow

1. **Start with the best source available.**
   Priority order:
   - **User-provided export:** inspect the provided JSON or markdown first.
   - **CLI JSON export:** if no export was provided, create JSON and use it as the canonical investigation artifact.
   - **TUI markdown export:** create markdown only when a readable transcript/report artifact is useful.

   If the available artifact is JSON, proceed from it directly. Use JSON
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有