Agent skill

transcript-saver

Save and export the current Claude Code session as a shareable HTML transcript. Use this skill when the user asks to save, export, archive, or publish their current Claude Code conversation or session. Triggers on phrases like "save this transcript", "export this session", "create a transcript", "archive this conversation", "publish to gist", or "share this session". Wraps Simon Willison's claude-code-transcripts tool for in-session use.

Stars 2
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/fpl9000/ai-skills/tree/main/transcript-saver

SKILL.md

Claude Code Transcript Saver

Save the current Claude Code session as clean, browsable HTML pages with optional GitHub Gist publishing.

Quick Start

To save the current session transcript:

bash
# Save to a local directory (opens in browser by default)
python /path/to/skill/scripts/save_transcript.py

# Save to a specific output directory
python /path/to/skill/scripts/save_transcript.py --output ./my-transcript

# Publish to GitHub Gist (requires gh CLI authenticated)
python /path/to/skill/scripts/save_transcript.py --gist

# Both: save locally AND publish to gist
python /path/to/skill/scripts/save_transcript.py --output ./my-transcript --gist

How It Works

This skill wraps Simon Willison's claude-code-transcripts tool, which:

  1. Reads Claude Code session files from ~/.claude/projects/ (JSONL format)
  2. Converts them to paginated, mobile-friendly HTML pages
  3. Generates an index page with a timeline of prompts and commits
  4. Optionally publishes to GitHub Gist for easy sharing

Output Files

The tool generates:

  • index.html - Summary page with timeline of prompts and commits
  • page-001.html, page-002.html, etc. - Paginated transcript pages with full conversation details

Important Notes

  1. Session Timing: The transcript captures the session state at the moment of export. Any conversation that happens after running the script won't be included in that transcript.

  2. Current Session Detection: The script automatically detects the most recent session in the current project directory. If run from within Claude Code, it will typically find the active session.

  3. GitHub Gist Publishing: The --gist option requires the GitHub CLI (gh) to be installed and authenticated. Run gh auth login first if needed.

Installation Requirements

The script uses uvx to run claude-code-transcripts without permanent installation. Requirements:

  • uv: The fast Python package manager. Install via curl -LsSf https://astral.sh/uv/install.sh | sh
  • gh (optional): GitHub CLI for gist publishing. Install via brew install gh or see https://cli.github.com/

If uv is not available, the script falls back to pip install claude-code-transcripts.

Usage Examples

Save transcript to current directory

bash
python scripts/save_transcript.py --output .

Save with auto-generated directory name based on session ID

bash
python scripts/save_transcript.py --output ./transcripts --auto-name

Publish to gist and get shareable URL

bash
python scripts/save_transcript.py --gist
# Outputs something like:
# Preview: https://gistpreview.github.io/?abc123def456/index.html

Include the original JSON session file in output

bash
python scripts/save_transcript.py --output ./archive --include-json

Command Reference

save_transcript.py [OPTIONS]

Options:
  --output, -o DIR      Output directory for HTML files
  --gist                Upload to GitHub Gist and output preview URL
  --auto-name, -a       Auto-name output subdirectory based on session ID
  --include-json        Include original session JSON/JSONL in output
  --open                Open generated HTML in browser (default if no --output)
  --session-id ID       Specific session ID to export (default: most recent)
  --help                Show help message

Troubleshooting

"No sessions found"

  • Ensure you're running from within a Claude Code session
  • Check that ~/.claude/projects/ exists and contains session files

"gh: command not found" (when using --gist)

"uv: command not found"

  • Install uv: curl -LsSf https://astral.sh/uv/install.sh | sh
  • Or the script will attempt to use pip as fallback

Expand your agent's capabilities with these related and highly-rated skills.

fpl9000/ai-skills

bluesky

Read from and post to Bluesky social network using the AT Protocol. Use this skill when the user wants to interact with Bluesky including posting text/images/links, replying to posts, reading their timeline, searching posts, viewing profiles, following/unfollowing users, checking notifications, or viewing reply threads. All scripts use PEP 723 inline metadata for dependencies and run via `uv run`. Requires BLUESKY_HANDLE and BLUESKY_PASSWORD environment variables.

2 0
Explore
fpl9000/ai-skills

ai-messaging

Communicate with the local stateful agent system via the GitHub relay. Use this skill when the user wants to interact with their local machine remotely — reading memory files, running shell commands, or delegating tasks to the local Claude Desktop agent. Triggers include phrases like: "on my local machine", "check my local files", "run this on my home computer", "ask my local Claude", "read my memory files", "what's in my core memory", "what's on my home machine", "run this locally". Requires the github skill for relay transport scripts.

2 0
Explore
fpl9000/ai-skills

github

Access GitHub repositories via the GitHub REST API. Use this skill when the user wants to interact with GitHub including reading files, creating/updating files, listing repos, managing branches, viewing commits, working with issues, or managing pull requests. All scripts use PEP 723 inline metadata for dependencies and run via `uv run`. Requires GITHUB_TOKEN environment variable (a Personal Access Token with appropriate scopes).

2 0
Explore
fpl9000/ai-skills

drawio

Generate draw.io diagrams programmatically using Python. Creates flowcharts, architecture diagrams, tree structures, network diagrams, and more. Use when the user requests a .drawio file, diagram, flowchart, or visual documentation.

2 0
Explore
fpl9000/ai-skills

load-skill

Load, activate, and optionally install an AI skill from a .skill file. Use this skill when the user wants to load, activate, or use a skill file. The user can invoke this skill with slash command `/load-skill [ --install | -i ] SKILLFILE`, where SKILLFILE is the path to a .skill file.

2 0
Explore
mattpocock/skills

edit-article

Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.

111,310 9,758
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results