anachb
Austrian public transport (VOR AnachB) for all of Austria. Query real-time departures, search…
Load and parse session transcripts from shittycodingagent.ai/buildwithpi.ai/buildwithpi.com/pi.dev (pi-share) URLs. Fetches gists, decodes embedded session data, and extracts conversation history.
$ npx -y skills add mitsuhiko/agent-stuff --skill pi-share --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/pi-shareContext preview
The summary Claude sees to decide when to auto-load this skill.
Load and parse session transcripts from shittycodingagent.ai/buildwithpi.ai/buildwithpi.com/pi.dev (pi-share) URLs. Fetches gists, decodes embedded session data, and extracts conversation history.
name: pi-share description: "Load and parse session transcripts from shittycodingagent.ai/buildwithpi.ai/buildwithpi.com/pi.dev (pi-share) URLs. Fetches gists, decodes embedded session data, and extracts conversation history."
Load and parse session transcripts from pi-share URLs (shittycodingagent.ai, buildwithpi.ai, buildwithpi.com, pi.dev).
**Loading sessions:** Use this skill when the user provides a URL like:
**Human summaries:** Use `--human-summary` when the user asks you to:
The human summary focuses on: initial goals, re-prompts, steering/corrections, interventions, and overall prompting style.
1. Session exports are stored as GitHub Gists 2. The URL contains a gist ID after the `?` 3. The gist contains a `session.html` file with base64-encoded session data 4. The helper script fetches and decodes this to extract the full conversation
# Get full session data (default) node ~/.pi/agent/skills/pi-share/fetch-session.mjs "<url-or-gist-id>" # Get just the header node ~/.pi/agent/skills/pi-share/fetch-session.mjs <gist-id> --header # Get entries as JSON lines (one entry per line) node ~/.pi/agent/skills/pi-share/fetch-session.mjs <gist-id> --entries # Get the system prompt node ~/.pi/agent/skills/pi-share/fetch-session.mjs <gist-id> --system # Get tool definitions node ~/.pi/agent/skills/pi-share/fetch-session.mjs <gist-id> --tools # Get human-centric summary (what did the human do in this session?) node ~/.pi/agent/skills/pi-share/fetch-session.mjs <gist-id> --human-summary
The `--human-summary` flag generates a ~300 word summary focused on the human's experience:
This uses claude-haiku-4-5 via `pi -p` to analyze the condensed session transcript.
The decoded session contains:
interface SessionData {
header: {
type: "session";
version: number;
id: string; // Session UUID
timestamp: string; // ISO timestamp
cwd: string; // Working directory
};
entries: SessionEntry[]; // Conversation entries (JSON lines format)
leafId: string | null; // Current branch leaf
systemPrompt?: string; // System prompt text
tools?: { name: string; description: string }[];
}Entry types include:
Message content block types:
# Pipe entries through jq to filter node ~/.pi/agent/skills/pi-share/fetch-session.mjs "<url>" --entries | jq 'select(.type == "message" and .message.role == "user")' # Count tool calls node ~/.pi/agent/skills/pi-share/fetch-session.mjs "<url>" --entries | jq -s '[.[] | select(.type == "message") | .message.content[]? | select(.type == "toolCall")] | length'
Armin's personal Pi Coding Agent package: reusable skills, extensions, prompt commands, themes, and a few supporting utilities that I use across projects. The package is published to npm as mitsupi.
Repo: mitsuhiko/agent-stuff
Austrian public transport (VOR AnachB) for all of Austria. Query real-time departures, search…
Search, read, and extract attachments from Apple Mail's local storage. Query emails by…
Transcribe local audio/video and Apple Voice Memos quickly with cached MLX Whisper models,…
Reverse engineer binaries using Ghidra's headless analyzer. Decompile executables, extract…
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for…