重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
opencode-conversation-analysis by connorads/dotfiles
npx skills add https://github.com/connorads/dotfiles --skill opencode-conversation-analysis分析来自 OpenCode 会话的用户消息,以识别重复出现的主题、沟通模式和引导行为。
~/.agents/skills/opencode-conversation-analysis/scripts/extract.sh
此脚本:
~/.local/share/opencode/opencode.db (SQLite) 读取~/.local/share/opencode/storage//tmp/opencode-analysis/chunk_*.jsonl查看输出摘要以了解创建了多少个分块。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
对于每个分块文件,使用以下提示模板生成一个 general 子代理:
Read the file /tmp/opencode-analysis/chunk_N.jsonl which contains user messages from coding sessions (JSONL format with fields: session_id, session_title, timestamp, text).
Analyze these messages to identify recurring themes in how the user steers/guides AI coding assistants. Look for patterns like:
- How they give feedback
- How they correct mistakes
- How they scope/refine requests
- Communication style preferences
- Technical approaches they emphasize
For each theme you identify, provide:
1. Theme name (short, descriptive)
2. Description (1-2 sentences)
3. 2-3 direct quote examples from the messages
Return ONLY valid JSON in this format:
{
"themes": [
{
"name": "Theme Name",
"description": "Description of the pattern",
"examples": ["quote 1", "quote 2"]
}
]
}
并行启动所有分块子代理(单条消息,多个 Task 工具调用)。
所有子代理返回后:
将最终分析结果以 Markdown 格式呈现,结构如下:
# Themes in How You Steer AI Coding Assistants
Analysis of N messages across M sessions (date range)
---
## 1. Theme Name
Description of the pattern.
**Examples:**
- "direct quote 1"
- "direct quote 2"
- "direct quote 3"
---
## 2. Next Theme
...
直接输出给用户 - 除非被要求,否则不要写入文件。
用户可能要求:
CHUNK_SIZE(默认 320000 字符)extract.sh 中的 MIN_TEXT_LEN(默认 10 字符)parent_id IS NULL (SQLite) 和 parentID (旧版) 过滤器有关 OpenCode 对话存储结构的详细信息,请参阅 references/storage-format.md。
每周安装数
47
仓库
GitHub Stars
7
首次出现
Jan 25, 2026
安全审计
安装于
codex47
opencode47
gemini-cli46
cursor45
claude-code44
amp44
Analyze user messages from OpenCode sessions to identify recurring themes, communication patterns, and steering behaviours.
~/.agents/skills/opencode-conversation-analysis/scripts/extract.sh
This script:
~/.local/share/opencode/opencode.db (SQLite) when available~/.local/share/opencode/storage/ for older OpenCode installs/tmp/opencode-analysis/chunk_*.jsonlReview the output summary to see how many chunks were created.
For each chunk file, spawn a general subagent with this prompt template:
Read the file /tmp/opencode-analysis/chunk_N.jsonl which contains user messages from coding sessions (JSONL format with fields: session_id, session_title, timestamp, text).
Analyze these messages to identify recurring themes in how the user steers/guides AI coding assistants. Look for patterns like:
- How they give feedback
- How they correct mistakes
- How they scope/refine requests
- Communication style preferences
- Technical approaches they emphasize
For each theme you identify, provide:
1. Theme name (short, descriptive)
2. Description (1-2 sentences)
3. 2-3 direct quote examples from the messages
Return ONLY valid JSON in this format:
{
"themes": [
{
"name": "Theme Name",
"description": "Description of the pattern",
"examples": ["quote 1", "quote 2"]
}
]
}
Launch ALL chunk subagents in parallel (single message, multiple Task tool calls).
Once all subagents return:
Present the final analysis as markdown with this structure:
# Themes in How You Steer AI Coding Assistants
Analysis of N messages across M sessions (date range)
---
## 1. Theme Name
Description of the pattern.
**Examples:**
- "direct quote 1"
- "direct quote 2"
- "direct quote 3"
---
## 2. Next Theme
...
Output directly to the user - don't write to a file unless asked.
The user may request:
CHUNK_SIZE in extract.sh (default 320000 chars)MIN_TEXT_LEN in extract.sh (default 10 chars)parent_id IS NULL (SQLite) and parentID (legacy) filters in extract.shSee references/storage-format.md for details on OpenCode's conversation storage structure.
Weekly Installs
47
Repository
GitHub Stars
7
First Seen
Jan 25, 2026
Security Audits
Gen Agent Trust HubWarnSocketWarnSnykFail
Installed on
codex47
opencode47
gemini-cli46
cursor45
claude-code44
amp44
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
76,800 周安装