一键导入
past-conversations
Find and inspect past conversations. Use when the user asks you to recall a previous conversation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Find and inspect past conversations. Use when the user asks you to recall a previous conversation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | past-conversations |
| description | Find and inspect past conversations. Use when the user asks you to recall a previous conversation. |
All past conversations with the user exist in the sqlite3 database located at ~/.local/share/opencode/opencode.db.
Query the database with the sqlite3 program. All text from conversations are store in the part table which has this schema:
CREATE TABLE `part` (
`id` text PRIMARY KEY,
`message_id` text NOT NULL,
`session_id` text NOT NULL,
`time_created` integer NOT NULL,
`time_updated` integer NOT NULL,
`data` text NOT NULL,
);
data is JSON object representing the message parts. You should only search JSON objects with type: "text", and you should search the text field. Sort the messages by the time_created field, and group them by session_id which represents the conversation.