对话导出为 Markdown
export-conversation
将当前对话导出为 markdown 文件。当用户要求将对话"导出"、"保存"或"写入"文件,或说出"export this conversation to X.md"之类的话时使用。
- License 许可
- MIT
- 所属仓库
- gurdiga/dotfiles
- 最近更新
- 2026-10-10
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- export-conversation
- description
- Export the current conversation to a markdown file. Use this whenever the user asks to "export", "save", or "write" the conversation to a file, or says something like "export this conversation to X.md".
- disable-model-invocation
- true
02 资源文件 2
- 脚本scripts/find-session-jsonl.sh974 B
- 脚本scripts/parse-session-jsonl.py4.0 KB
03 SKILL.md 正文
Export Conversation
Export the current Claude Code session as a readable markdown file.
Steps
1. Find the session JSONL
Run the bundled script to locate the current session file:
${CLAUDE_SKILL_DIR}/scripts/find-session-jsonl.sh <project-path>
Where <project-path> is the working directory (e.g. /Users/vlad/src/my-project). It prints the path to the newest .jsonl in the project's Claude storage directory — which is the current session.
2. Parse and extract
Run the bundled script:
python3 ${CLAUDE_SKILL_DIR}/scripts/parse-session-jsonl.py <session.jsonl> <output.md> [--from HH:MM:SS] [--until HH:MM:SS]
The script writes # Conversation followed by one section per turn. Each section header shows the role and a human-friendly local time as a subdued subtitle (## user <sub>2:17 pm</sub>). Tool calls that share a record with assistant prose are inlined as brief notes — Bash includes the command, Read/Write/Edit include the file path. Assistant records containing only tool calls are omitted.
Notes
- The JSONL grows during the session. Running this early yields a partial export — that's fine, just note it if relevant.
- The newest
.jsonlis used as a proxy for "current session." This is reliable as long as you run the script promptly; a new session started in another window would produce a newer file. - Agent tool results embedded in the conversation (large code dumps, file contents) should be omitted — they're derivable from the codebase and bloat the export.
04 同仓库更多 Skills
Claude Code 技能编写
write-skill
创建或改进 Claude Code Agent Skill(SKILL.md)。当用户要求将某个工作流沉淀为技能、创建可重用技能,或将我们刚一起完成的工作变成技能时使用。
SSH 持久连接复用
ssh-controlmaster
当对同一远程主机运行多个命令时,通过 ControlMaster 使用持久 SSH 连接,以避免重复的认证开销。在要对一台主机连续运行多个 ssh 命令时使用。
会话复盘与 CLAUDE.md 优化
reflect
分析当前项目最近的会话记录,并提出 CLAUDE.md 改进建议。每月手动调用一次,或在完成大量工作后调用。
方案质询与决策压力测试
grill-me
就某个计划或设计对用户进行不懈的追问,直到达成共识,解决决策树的每个分支。当用户想要对计划进行压力测试、接受对其设计的质询,或提到 "grill me" 时使用。
Git 提交信息与 PR 描述规范
git-message-style
Vlad 个人编写提交信息和 PR 描述的约定——主题格式、正文规则、词汇用法和 PR 正文结构。在 Vlad 的个人仓库(而非有自身约定的团队仓库)中编写提交信息或 PR 描述时使用。
Ruby Gem 安全漏洞修复
gem-security-update
修复 Ruby gems 的 Dependabot 安全告警。当用户分享 GitHub Dependabot URL、要求修复 gem 漏洞,或提到需要版本升级的 gem CVE 时使用。