Token导航 LogoToken导航TokenDH.com
AI 工具执行命令github未标认证来源可访问clear审计异常

opencode-conversation-analysisopencode conversation analysis 命令行

Agent Skill

opencode-conversation-analysis 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,758

周安装

74

GitHub Stars

14

下载量

616
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:opencode-conversation-analysis(opencode conversation analysis 命令行)
来源仓库:https://github.com/connorads/dotfiles
仓库路径:skills/opencode-conversation-analysis
安装命令:
npx skills add https://github.com/connorads/dotfiles --skill opencode-conversation-analysis
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/connorads/dotfiles --skill opencode-conversation-analysis

简介

opencode-conversation-analysis 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。

  • 它可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 可通过 npx skills add 命令从 GitHub 仓库安装。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Conversation Analysis

Analyze user messages from OpenCode sessions to identify recurring themes, communication patterns, and steering behaviours.

Critical Rules

  1. NEVER cat or read chunk files directly - they're huge and will explode your context
  2. Pass file paths to subagents - let them read and analyze independently
  3. Use parallel subagents - one per chunk, they run concurrently
  4. Subagents return structured JSON - you synthesize at the end

Workflow

Step 1: Run Extraction

~/.agents/skills/opencode-conversation-analysis/scripts/extract.sh

This script:

  • Reads from ~/.local/share/opencode/opencode.db (SQLite) when available
  • Falls back to ~/.local/share/opencode/storage/ for older OpenCode installs
  • Extracts user messages from main sessions with metadata (session_id, title, timestamp, text)
  • Filters out messages < 10 characters
  • Chunks into ~320k char files (~80k tokens each)
  • Outputs to /tmp/opencode-analysis/chunk_*.jsonl

Review the output summary to see how many chunks were created.

Step 2: Launch Parallel Subagents

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).

Step 3: Synthesize Results

Once all subagents return:

  1. Collect all theme objects from all chunks
  2. Group similar themes (same name or overlapping descriptions)
  3. Merge examples from duplicate themes
  4. Rank themes by how many chunks they appeared in
  5. Pick the best 2-3 examples per theme

Step 4: Output Format

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.

Customisation Options

The user may request:

  • Different chunk sizes: Edit CHUNK_SIZE in extract.sh (default 320000 chars)
  • Different message filter: Edit MIN_TEXT_LEN in extract.sh (default 10 chars)
  • Include subagent sessions: Remove the parent_id IS NULL (SQLite) and parentID (legacy) filters in extract.sh
  • Time period filtering: Add timestamp filtering in extract.sh

Storage Format Reference

See references/storage-format.md for details on OpenCode's conversation storage structure.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

windsurf

31.47%
按下载量换算194

OpenCode

23.39%
按下载量换算144

Codex

17.36%
按下载量换算107

Claude Code

11.08%
按下载量换算68

Antigravity

7.71%
按下载量换算47

Gemini CLI

3.33%
按下载量换算21

安全审计

Gen Agent Trust Hub

可疑

Socket

可疑

Snyk

未通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/connorads/dotfiles --skill opencode-conversation-analysis;npx skills add connorads/dotfiles --skill "opencode-conversation-analysis" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills