PR Transcript Export
This skill exports the current Pi session to an HTML file for PR documentation.
Quick Usage
Use the helper script (relative to this skill directory):
bash
./export-transcript.sh <pr-number> <description> [output-dir]
Example:
bash
./.pi/skills/pr-transcript/export-transcript.sh 21 replace-release-with-goreleaser # Exports to: transcripts/21-replace-release-with-goreleaser.html
Manual Process
If the script doesn't work or you need more control:
- •
Find the current session file:
bash# Session files are stored based on the working directory SESSION_DIR="$HOME/.pi/agent/sessions/--$(pwd | tr '/' '-' | sed 's/^-//')--" # List sessions to find the current one (most recent) ls -t "$SESSION_DIR"/*.jsonl | head -1
- •
Export the transcript:
bashpi --export <session_file> transcripts/<pr_number>-<description>.html
Workflow
When the user says they're ready to submit a PR or asks for a transcript:
- •Find the most recent session file for the current directory
- •Ask for PR number and a short description (if not provided)
- •Create the transcripts directory if it doesn't exist
- •Run
pi --exportwith the session file and output path - •Confirm the file was created
- •Suggest adding the transcript to the PR description
Example
User: "I'm ready to submit a PR, please export the transcript"
- •Find session:
~/.pi/agent/sessions/--Users-llimllib-code-mdriver-goreleaser--/2026-01-16T15-41-47-921Z_abc123.jsonl - •Ask: "What's the PR number and a short description?"
- •User: "PR 21, replace-release-with-goreleaser"
- •Run:
pi --export <session> transcripts/21-replace-release-with-goreleaser.html - •Output: "Transcript exported to transcripts/21-replace-release-with-goreleaser.html"
Notes
- •The session directory is named after the current working directory with slashes replaced by dashes
- •Multiple session files may exist; use the most recent one (sorted by timestamp in filename)
- •Create
transcripts/directory if it doesn't exist - •The description should be kebab-case (lowercase with hyphens)