Install
openclaw skills install @wufei-png/opencode-session-toolkit-cn安全查询、搜索、诊断并导出本地 OpenCode 会话记录。
openclaw skills install @wufei-png/opencode-session-toolkit-cn在本 skill 目录中使用内置只读 CLI:
./scripts/opencode_sessions.py --help
./scripts/opencode_sessions.py doctor。list:发现会话并过滤元数据。show:读取单个会话转录。search:按字面量搜索标题、目录或消息。export:将选定会话写为 Markdown 或 JSONL。schema:检查实时核心表和索引。<command> --help。--format json。mode=ro 或 PRAGMA query_only 防护。--include-sensitive。--overwrite,否则拒绝覆盖已有变更。account、control_account、credential 等凭证表。--all。references/cli.md。references/schema.md。references/queries.md。回退到原始 SQL 时,先用 opencode db path 解析路径,通过 sqlite3 -readonly 执行,参数化或安全转义用户值,并先检查实时 schema。