
conversation-json-to-md-cn
当用户需要将聊天导出 JSON 拆分为按会话保存的 Markdown,并保留用户与助手问答结构时使用。
- Installs
- 50
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/yangsonhung/awesome-agent-skills --skill conversation-json-to-md-cn- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads conversation-json-to-md-cn automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Conversation JSON 转 Markdown(中文)
Overview
将用户提供的聊天导出 JSON 转换为多个结构清晰的 Markdown 文件,并统一为问答结构。流程会按会话拆分文件,只保留用户与助手问答,保留回答中的 Markdown,并在导出后做一次命名和标题结构的二次整理。
何时使用
当用户有以下需求时使用本技能:
- 把一个对话导出 JSON 拆成多个
.md - 一个会话对应一个 Markdown 文件
- 只保留用户与助手问答内容
- 问题作为标题,回答统一为
回答 - 导出后再做一次命名和标题二次格式化
不要使用
以下场景不应使用本技能:
- 与 JSON 对话导出无关的普通文本改写
- 非会话数据结构处理任务
- 用户要的是语义总结而非结构化导出
使用说明
- 必须读取用户明确提供的输入文件路径,不假设默认文件名。
- 自动识别 JSON 结构并提取会话。
- 每个会话导出为一个 Markdown 文件。
- 仅保留用户/助手问答内容。
- 问答格式固定为:
## <问题文本>### 回答
- 保留回答正文的 Markdown,并将回答内部标题整体降级 1 级。
- 导出完成后执行一轮独立二次格式化检查与修正。
支持的输入结构
脚本可识别以下常见格式:
- DeepSeek/ChatGPT 类
mapping/root/children/fragments - Qwen 类
data[].chat.messages[]+content_list(优先phase=answer) - Claude 网页导出
list[{ name, chat_messages: [...] }] - 通用消息数组
messages/history/conversations/dialog/turns - 成对问答字段
question-answer、prompt-response、input-output
如果结构无法识别,停止并让用户提供样例片段,再扩展解析规则。
运行脚本
python3 scripts/convert_conversations.py \
--input /path/to/<用户提供>.json \
--output-dir /path/to/conversations_md \
--clean
输出格式(固定)
# <会话标题>
## <用户问题1>
### 回答
<助手回答 Markdown>
## <用户问题2>
### 回答
<助手回答 Markdown>
二次格式化流程(独立步骤)
导出后,对输出目录执行二次格式化:
- 文件名规范化:
- 保持“仅会话标题”命名
- 清理非法字符
- 重名补齐
(2)、(3)序号
- 标题结构规范化:
- 一级标题仅保留会话标题:
# <会话标题> - 每个问题必须是二级标题
- 每个回答必须是
### 回答
- 回答正文规范化:
- 保留 Markdown
- 内部标题降级 1 级,避免与外层结构冲突
- 结果复检:
- 发现不符合规则的文件时逐个修正后再交付
验证清单
- 导出文件数与识别到的会话数一致
- 文件名无随机后缀
- 文件中不出现
## REQUEST/## RESPONSE - 回答块统一为
### 回答 - Markdown 预览渲染正常
FAQ
What does the conversation-json-to-md-cn skill do?
当用户需要将聊天导出 JSON 拆分为按会话保存的 Markdown,并保留用户与助手问答结构时使用。
How do I install conversation-json-to-md-cn?
Run npx skills add https://github.com/yangsonhung/awesome-agent-skills --skill conversation-json-to-md-cn in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/conversation-json-to-md-cn/ (personal) or .claude/skills/conversation-json-to-md-cn/ (project).
Which AI agents can use conversation-json-to-md-cn?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is conversation-json-to-md-cn safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains conversation-json-to-md-cn?
It is published by yangsonhung in yangsonhung/awesome-agent-skills. It has 50 recorded installs.
More from yangsonhung/awesome-agent-skills
novel-writer-cn
yangsonhung/awesome-agent-skills
当用户需要创作、续写、修改小说,或设计角色和世界观时使用。
novel-writer
yangsonhung/awesome-agent-skills
Use when writing, continuing, revising, or planning novels, characters, and fictional worlds.
topic-bookmarks-reorganizer-cn
yangsonhung/awesome-agent-skills
当用户需要按主题整理浏览器书签导出、URL 去重并生成可导入 HTML 时使用。
mac-software-storage-cleanup
yangsonhung/awesome-agent-skills
Use when auditing macOS app storage, cleaning priority caches, or recommending reclaimable disk space.
conversation-json-to-md
yangsonhung/awesome-agent-skills
Use when converting chat export JSON into per-conversation Markdown files with preserved user-assistant Q/A and normalized headings.
topic-bookmarks-reorganizer
yangsonhung/awesome-agent-skills
Use when reorganizing a browser bookmarks export by topic, deduplicating URLs, and producing an importable HTML file.
Popular ai & agents skills
google-agents-cli-publish
google/agents-cli
This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).
google-agents-cli-eval
google/agents-cli
This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).
skill-creator
anthropics/skills
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
codex-pet
prime-skills/runcomfy-agent-skills
Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.
full-output-enforcement
leonxlnx/taste-skill
Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.
executing-plans
obra/superpowers
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available