Skip to content
Skills Library
AI & agents · Research

conversation-mining

/conversation-mining

统一检索和使用 Claude Code / Codex / AntiGravity 的历史对话。支持按日期、关键词、会话 ID、Conversation Reference、Conversation Prompt 找回原文,也支持在用户明确要求时,对指定会话或某天会话做提炼、总结、笔记整理。

Licence
MIT
Last repository change
23.06.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
10
Scripts
2
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 23.06.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 2 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: convs.py, export_all.py

What it does and when to use it

统一检索和使用 Claude Code / Codex / AntiGravity 的历史对话。支持按日期、关键词、会话 ID、Conversation Reference、Conversation Prompt 找回原文,也支持在用户明确要求时,对指定会话或某天会话做提炼、总结、笔记整理。

Original author description

统一检索和使用 Claude Code / Codex / AntiGravity 的历史对话。支持按日期、关键词、会话 ID、Conversation Reference、Conversation Prompt 找回原文,也支持在用户明确要求时,对指定会话或某天会话做提炼、总结、笔记整理。

How it works

  1. What This Skill Does
  2. Modes
  3. Main Files
  4. Common Commands
  5. Guidance
  6. 新增:增量导出 + 搜索索引
Original SKILL.md headings · 99 lines, 258 words
SKILL.md preview
---
name: conversation-mining
description: 统一检索和使用 Claude Code / Codex / AntiGravity 的历史对话。支持按日期、关键词、会话 ID、Conversation Reference、Conversation Prompt 找回原文,也支持在用户明确要求时,对指定会话或某天会话做提炼、总结、笔记整理。
---

# Conversation Mining

## What This Skill Does

- 找回某天 / 某条 / 某组历史对话
- 读取 `Conversation Reference` / `Conversation Prompt`
- 打开或更新本地对话查看器
- 在用户明确要求时,对指定会话做总结、提炼、笔记整理
- 翻译 AI 对话为人类可读的结构化摘要(翻译模式)

## Modes

### 搜索模式

- 默认模式
- 优先保留原文,不抢先摘要
- 适合:找回灵感、找原句、找上下文、找某天讨论

### 提炼模式

- 只有用户明确说“总结 / 提炼 / 整理笔记”时使用
- 必须基于明确范围:
  - 会话 ID
  - 日期
  - Conversation Reference
  - Conversation Prompt
  - 用户指定的一组会话

### 翻译模式

- 触发条件:用户粘贴对话文本片段并说"翻译/看不懂/解释/人话",或给对话 ID + 翻译请求
- 典型场景:用户在 Codex / Claude / AG 里看不懂一段对话,复制过来让你翻译

#### 流程

1. **导出最新对话**:运行 `python3 ~/.claude/skills/conversation-mining/export_all.py --days 7`,确保索引包含近一周内容(`--days 0` 会导出空列表,不要用)
2. **定位会话**(优先使用搜索索引):
   - 先读 `~/.claude/exported_conversations/search_index.json`,在 entries 中按 keywords/title 模糊匹配关键词(纯 JSON 读取,毫秒级)
   - 如果索引不够精确 → 再 fallback 到 `conversations.json` 的 messages 全文搜索,或在 `/Users/lizeyu/Documents/ZeYu-AI-Brain/LOCAL-LARGE-FILES/agent-context/conversation-transcripts/` 下的 md 文件中 Grep 搜索
   - 如果用户给了对话 ID(如 `codex-20260327-e35f554d`)→ 在 `conversations.json` 中按 id 字段查找
   - 取匹配度最高的会话
3. **读取完整 transcript**:从定位到的会话的 `transcript_path` 读取完整 markdown
4. **结合项目上下文翻译**:用 Grep/Read 查阅项目代码,理解术语实际含义

#### 输出结构

```markdown
## 核心意图
(一句话说清楚这段对话在做什么)

## 关键决策
| 决策 | 理由 | 状态 |
|------|------|------|
| ... | ... | 已确认/待定 |

## 架构图(如果涉及)
(用 Mermaid 或 ASCII 画图)

## 下一步行动
1. ...
2. ...

## 未决事项
- ...
```

#### 术语对照

- 项目特有术语(如 "106W" / "Nomos-era" / "projection primitives")必须用 Grep/Read 查阅项目代码确认实际含义,不能猜测
- 在输出中附上:术语 → 实际对应的文件/函数/概念

## Main Files

- 导出脚本:`~/.claude/skills/conversation-mining/export_all.py`
- 查看器:`~/.claude/skills/conversation-mining/viewer.html`
- 索引:`~/.claude/exported_conversations/conversations.json`

## Common Commands

```bash
python3 ~/.claude/skills/conversation-mining/export_all.py
python3 ~/.claude/skills/conversation-mining/export_all.py --date 2026-03-18
python3 ~/.claude/skills/conversation-mining/export_all.py --days 7
```

## Guidance

- 如果用户要”找”,先定位再给原文
- 如果用户要”总结”,先明确范围再总结
- 如果用户已经给了 `Conversation Reference` / `Conversation Prompt`,优先按它的 `conversation id` 和 transcript 路径处理
- AntiGravity 内容提取是尽力模式,部分会话可能只有标题或摘要

## 新增:增量导出 + 搜索索引

- 导出脚本现在支持增量模式:第二次运行 `--days 7` 只重写有变化的 transcript,不变化的不重写
- 每次导出自动生成 `search_index.json`(轻量关键词索引),搜索时优先用它而不是全量 Grep
- `--clean` 参数可清理 conversations.json 中不存在的孤立 transcript 文件
Files in this package (10)
  • .gitignore 1 KB
  • AI_INSTALL.md 2 KB
  • LICENSE 1 KB
  • README.md 5 KB
  • README_CN.md 5 KB
  • SKILL.md 4 KB
  • convs.py 1 KB
  • export_all.py 26 KB
  • pyproject.toml 1 KB
  • viewer.html 92 KB

Versions

The database has no other skills named conversation-mining.

Database snapshot: 13.11.2026 · package version 53bb7dd1324d (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100claude-history-ingest
    Ingest Claude Code conversation/session history into Obsidian as distilled knowledge. Use for importing or mining past Claude sessions, .claude data, project/session history, or audit logs.
  • 100session-history
    Search and summarize Claude Code, Codex, and opencode session history. Use when the user wants to look at past conversations, find sessions about a topic, or reconstruct a debugging narrative.
  • 100friction-mining
    Mines the user's local Claude Code and Codex history for recurring agent friction such as failed tool calls, retries, denials, interruptions and corrections. Use when asked what agents keep struggling with in a project or across projects. Step 0 of `skill-authoring`.
  • 100agent-bridge
    Connects Claude Code, OpenAI Codex, and Google Antigravity into a bidirectional Local Agent Mesh (:8765). Activate this skill whenever the user asks to generate images, icons, illustrations, or MP4 videos (delegated to Antigravity), or when the user asks to discover or call…
  • 100agent-session-resume
    Use when continuing, resuming, locating, reading, inspecting, auditing, or reviewing a previous AI coding-agent session, handoff transcript, chat log, exported conversation, saved artifact set, or session summary, on any platform (Claude Code, Codex, Cursor, Antigravity,…
  • 90local-conversation-history
    Entry point for local AI conversation history across Claude Code, Codex and Kimi CLI: routes each request to the reader or continuation skill that owns it and keeps the cross-provider inventory. Use when the platform is unknown or plural ("what was I working on", "we discussed…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.