| name | pr-transcript |
| description | Export the current Pi session transcript to an HTML file for inclusion in a pull request. Use when the user is ready to submit a PR and wants to include an AI session transcript. |
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):
./export-transcript.sh <pr-number> <description> [output-dir]
Example:
./.pi/skills/pr-transcript/export-transcript.sh 21 replace-release-with-goreleaser
Manual Process
If the script doesn't work or you need more control:
-
Find the current session file:
SESSION_DIR="$HOME/.pi/agent/sessions/--$(pwd | tr '/' '-' | sed 's/^-//')--"
ls -t "$SESSION_DIR"/*.jsonl | head -1
-
Export the transcript:
pi --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 --export with 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)