Token导航 LogoToken导航TokenDH.com
研究检索权限需确认github未标认证来源可访问许可证需确认审计异常

save-conversation保存对话

Agent Skill

save-conversation 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

535

周安装

23

GitHub Stars

公开资料未说明

下载量

188
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/hartreeworks/skill--save-conversation --skill save-conversation

简介

用于查找、检索和筛选相关信息,支持基于关键词或任务场景快速定位结果。

  • 适合在需要根据线索快速获取候选信息时使用。
  • 可结合来源仓库与原始 README 进一步验证具体功能与使用方式。
  • 安装通过 GitHub,适用于 Codex、Claude、Cursor、Gemini CLI 等宿主环境。
  • 使用前应确认权限范围、维护状态,避免触发联网、命令执行或文件读写操作。

SKILL.md

Save conversation

Export the current Claude Code conversation to a clean, readable markdown file.

How it works

Claude Code automatically stores conversation history in .jsonl files at ~/.claude/projects/[project-folder]/[session-id].jsonl. This skill parses those logs and transforms them into nicely formatted markdown.

Usage

When the user invokes this skill:

  1. Identify the current session ID and project folder path
  2. Run the export script with appropriate arguments
  3. Report the saved file path to the user

Basic invocation

python3 ~/.claude/skills/save-conversation/scripts/export.py \
  --session-id SESSION_UUID \
  --project-path PROJECT_FOLDER_NAME \
  --topic "optional-topic-slug"

Arguments

ArgumentRequiredDescription
--session-idYesThe current session UUID
--project-pathYesThe encoded project folder name (e.g., -Users-ph--claude-skills)
--topicNoTopic slug for filename; defaults to session slug from the log

Finding the arguments

Session ID: Available from the conversation context. Look for the sessionId field in the conversation or check the most recently modified .jsonl file in the project folder.

Project path: Derived from the current working directory by replacing / with - and prefixing with -. For example:

  • /Users/ph/.claude/skills-Users-ph--claude-skills

Output format

The script produces a markdown file with this structure:

# Conversation: {topic}

**Date:** YYYY-MM-DD HH:MM
**Session:** {session-id}

---

## User

{user message content}

---

## Claude

{assistant response}

> Used tool: ToolName

---

## User

{next user message}

...

What gets included

  • User messages: Full text content
  • Assistant text responses: All prose/explanation content
  • Tool usage: Single-line summaries (e.g., > Used tool: Bash)

What gets excluded

  • Thinking blocks (internal reasoning)
  • Tool outputs (keeps transcript clean)
  • File history snapshots (internal state)
  • Raw JSON metadata

Output location

Saved files go to:

~/.claude/skills/save-conversation/data/transcripts/YYYY-MM-DD-{topic}.md

Workflow

To save the current conversation:

  1. Note the session ID from context (or find via ls -lt ~/.claude/projects/[project-path]/*.jsonl | head -1)
  2. Determine the project path from the current working directory
  3. Run the export script
  4. Confirm the file was saved and report the path

Example

# For a conversation in /Users/ph/.claude/skills with session 50e09818-de5f-4fa8-8769-92f3ea6f974c
python3 ~/.claude/skills/save-conversation/scripts/export.py \
  --session-id "50e09818-de5f-4fa8-8769-92f3ea6f974c" \
  --project-path "-Users-ph--claude-skills" \
  --topic "save-conversation-skill"

Scripts

scripts/export.py

Main export script. Parses .jsonl conversation logs and outputs clean markdown.

Features:

  • Extracts user messages and assistant text responses
  • Summarises tool usage without verbose output
  • Skips thinking blocks and internal metadata
  • Generates timestamped filenames with topic slugs
  • Creates the transcripts directory if needed

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.57%
按下载量换算73

Claude

32.04%
按下载量换算60

Cursor

17.45%
按下载量换算33

Gemini CLI

9.92%
按下载量换算19

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

未通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills