yida-export-conversation

yida-export-conversation is a skill for Claude Code, Codex from openyida/openyida. It costs 48 tokens per session (1,146 once invoked), scanned A, original, MIT.

A local tool workflow for exporting AI conversation records into a structured Markdown document. Markdown is a plain-text format commonly used for readable technical documents; the workflow supports Claude Code automatic detection and manual JSONL input elsewhere.

In plain words
What is it for?
Use it to save the latest AI conversation, list available records, choose a JSONL file, or write the export to a selected path. It is intended for documentation and archiving.
Why use it?
It preserves the conversation, tool activity, summary, and timing in a document that can be reviewed or shared. It also makes the input and output requirements explicit so exports do not silently fail.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/openyida/openyida/yida-export-conversation
Any agent
npx skills add openyida/openyida --skill yida-export-conversation
Clone the repo
git clone --depth 1 https://github.com/openyida/openyida

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for yida-export-conversation

README.md
[![agentmods](https://agentmods.dev/badge/skills/openyida/openyida/yida-export-conversation.svg)](https://agentmods.dev/skills/openyida/openyida/yida-export-conversation)
Your own site
<a href="https://agentmods.dev/skills/openyida/openyida/yida-export-conversation"><img src="https://agentmods.dev/badge/skills/openyida/openyida/yida-export-conversation.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,146 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.01146
Opus 5 $0.00024 $0.00573
Sonnet 5 $0.00010 $0.00229
Haiku 4.5 $0.00005 $0.00115

Measured 6d ago against content hash 30a4bbfec6fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

yida-export-conversation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

yida-skills/skills/yida-export-conversation/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

导出 AI 对话记录

严格禁止 (NEVER DO)

  • 不要在非 Claude Code 环境下省略 --input 参数(其他环境无法自动检测对话文件)

严格要求 (MUST DO)

  • 导出前确认当前环境(openyida env),Claude Code 环境可自动检测,其他环境需 --input 手动指定
  • 导出前必须确认输出路径有写权限,避免导出失败
  • 导出完成后必须告知用户文件路径和文件大小,方便用户确认
  • 遇到对话文件格式不支持时,必须明确告知用户支持的格式(.jsonl
  • 本技能不读写 memory:对话记录导出为本地 Markdown 文件,不依赖跨会话的 memory 状态

适用场景

用户需要"导出对话记录"、"保存 AI 对话"、"生成开发文档"时使用。 无需登录宜搭,为纯本地操作。

触发条件

正向触发

  • "导出对话记录"、"保存 AI 对话"
  • "生成开发文档"、"导出本次对话"
  • "把对话记录存下来"

注意:本技能为一次性导出,不支持实时同步。非 Claude Code 环境需通过 --input 手动指定对话文件。


将 AI 对话记录导出为结构化的 Markdown 文档,方便分享和存档。

命令

openyida export-conversation [options]
选项 说明
--output <path> 指定输出文件路径(默认 project/conversation-export.md
--input <file> 手动指定对话记录文件(覆盖自动检测)
--latest 仅导出最近一次对话(默认行为)
--list 列出可用的对话记录供选择

支持的 AI 工具环境

环境 支持方式
Claude Code 自动检测并读取对话记录
其他环境 通过 --input 手动指定对话文件

输出格式

生成的 Markdown 文档包含以下内容:

  1. 概要信息

    • 应用名称
    • AI 工具环境
    • 导出时间
    • 对话轮次
    • 工具调用次数
  2. 关键步骤摘要

    • 从工具调用中自动提取的操作步骤
  3. 完整对话记录

    • 用户消息
    • AI 回复
    • 工具调用及执行结果

使用示例

# 导出最近一次对话(自动检测环境)
openyida export-conversation

# 导出到指定文件
openyida export-conversation --output ./my-conversation.md

# 从指定文件导入对话记录
openyida export-conversation --input ./conversation.jsonl

# 列出可用的对话记录
openyida export-conversation --list

前置条件

  • 无需登录宜搭(对话导出是本地操作)
  • Node.js ≥ 18

注意事项

  1. 目前 MVP 版本主要支持 Claude Code 的对话记录自动检测
  2. 其他 AI 工具环境请使用 --input 手动指定对话文件
  3. 后续版本将支持发布到宜搭社区和钉钉群

异常处理

异常场景 处理方式
自动检测失败(非 Claude Code 环境) 使用 --input 手动指定对话文件路径
输出文件路径无写权限 使用 --output 指定有写权限的路径
对话文件格式不支持 确认文件格式为 .jsonl,其他格式暂不支持
导出内容为空 确认对话记录文件存在且非空,使用 --list 查看可用记录

Agent 错误处理策略

当 Agent 执行本技能遇到错误时,必须遵循以下默认行为:

错误类型 默认处理策略
命令执行失败 停止执行,向用户展示错误信息,询问是否重试或调整参数
环境检测失败 提示用户使用 --input 手动指定对话文件路径
文件写入失败 提示用户使用 --output 指定有写权限的路径,或检查磁盘空间
对话文件不存在 使用 --list 列出可用记录,引导用户选择正确文件
网络超时 本技能为纯本地操作,无网络依赖,检查文件系统权限
未知错误 停止执行,完整展示错误信息,建议用户反馈问题

Read the full file on GitHub · 125 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 125 lines · 48 tokens per session scan A 30a4bbfec6fb

Subscribe to this mod's changes

yida-export-conversation is a skill published in the GitHub repository openyida/openyida (210 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 1,146 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

docx

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of "Word doc", "word document", ".docx", or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when…

agentscope-ai/QwenPaw · 168 tokens

docx

当用户需要创建、读取、编辑或处理 Word 文档(.docx)时,使用此技能。触发场景包括提到“Word 文档”、“.docx”,或要求生成带目录、标题、页码、信头等格式的专业文档;也包括提取或重组 .docx 内容、插入或替换图片、在 Word 文件中查找替换、处理修订或批注,以及将内容整理为正式 Word 文档。如果用户要求生成“报告”“备忘录”“信函”“模板”等 Word / .docx 交付物,也应使用此技能。不要用于 PDF、电子表格、Google Docs,或与文档生成无关的一般编程任务。.

agentscope-ai/QwenPaw · 161 tokens

pptx

Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying…

agentscope-ai/QwenPaw · 152 tokens

pptx

当涉及到 .pptx 文件的任何操作时使用此技能——无论是作为输入、输出还是两者兼有。包括:创建幻灯片、演示文稿或路演材料;读取、解析或提取任何 .pptx 文件中的文本(即使提取的内容将用于其他地方,如邮件或摘要);编辑、修改或更新现有演示文稿;合并或拆分幻灯片文件;处理模板、布局、演讲者备注或批注。当用户提到“演示文稿”、”幻灯片“、”PPT“或引用 .pptx 文件名时触发,无论他们之后打算如何使用内容。如果需要打开、创建或操作 .pptx 文件,就使用此技能。.

agentscope-ai/QwenPaw · 165 tokens

xlsx

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or…

agentscope-ai/QwenPaw · 201 tokens

xlsx

当电子表格文件是主要输入或输出时使用此技能。这意味着用户想要:打开、读取、编辑或修复现有的 .xlsx、.xlsm、.csv 或 .tsv 文件(例如添加列、计算公式、格式化、制图、清理混乱数据);从头创建新的电子表格或从其他数据源创建;或在表格文件格式之间进行转换。当用户通过名称或路径引用电子表格文件时特别触发——即使是随意提及(如"我下载目录里的 xlsx")——并且想对其进行操作或从中生成内容。也适用于将混乱的表格数据文件(格式错误的行、错位的表头、垃圾数据)清理或重构为规范的电子表格。交付物必须是电子表格文件。当主要交付物是 Word 文档、HTML 报告、独立 Python 脚本、数据库管道或 Google Sheets…

agentscope-ai/QwenPaw · 232 tokens