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.
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:
# 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:
- Reads Claude Code session files from
~/.claude/projects/(JSONL format) - Converts them to paginated, mobile-friendly HTML pages
- Generates an index page with a timeline of prompts and commits
- Optionally publishes to GitHub Gist for easy sharing
Output Files
The tool generates:
index.html- Summary page with timeline of prompts and commitspage-001.html,page-002.html, etc. - Paginated transcript pages with full conversation details
Important Notes
-
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.
-
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.
-
GitHub Gist Publishing: The
--gistoption requires the GitHub CLI (gh) to be installed and authenticated. Rungh auth loginfirst 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 ghor 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
python scripts/save_transcript.py --output .
Save with auto-generated directory name based on session ID
python scripts/save_transcript.py --output ./transcripts --auto-name
Publish to gist and get shareable URL
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
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)
- Install GitHub CLI:
brew install ghor see https://cli.github.com/ - Authenticate:
gh auth login
"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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated 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.
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.
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).
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.
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.
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.
Didn't find tool you were looking for?