Agent Skills: Working with Pi Coding Agent Shared Sessions

Use when you need to find, review, open, or remove Pi shared-session gists created via mono sharing, especially when session exports clutter gist history; this provides a repeatable workflow and script-driven actions for listing, opening, and deleting safely.

UncategorizedID: zenobi-us/dotfiles/working-with-pi-coding-agent-shared-sessions

Install this agent skill to your local

pnpm dlx add-skill https://github.com/zenobi-us/dotfiles/tree/HEAD/mise/conf.d/devtools-agent/bundles/platform/skills/devtools/pi-mono/working-with-pi-coding-agent-shared-sessions

Skill Files

Browse the full folder contents for working-with-pi-coding-agent-shared-sessions.

Download Skill

Loading file tree…

mise/conf.d/devtools-agent/bundles/platform/skills/devtools/pi-mono/working-with-pi-coding-agent-shared-sessions/SKILL.md

Skill Metadata

Name
working-with-pi-coding-agent-shared-sessions
Description
Use when you need to find, review, open, or remove Pi shared-session gists created via mono sharing.

Working with Pi Coding Agent Shared Sessions

Use scripts/pi-session-gists.ts to manage Pi session-export gists. Filter first, verify with evidence, then delete intentionally.

Rules

  • You MUST run list first before any open or delete action.
  • You MUST ask for an explicit gist_id for follow-up actions.
  • You MUST NOT use row numbers or inferred index selection.
  • Delete-all MUST require explicit confirmation unless --yes is supplied.

Commands

Run the executable directly. It uses the exact mise x -- bun --install=fallback shebang.

./scripts/pi-session-gists.ts --help
./scripts/pi-session-gists.ts doctor
./scripts/pi-session-gists.ts list
./scripts/pi-session-gists.ts open <gist_id>
./scripts/pi-session-gists.ts delete <gist_id> --yes
./scripts/pi-session-gists.ts delete-all
./scripts/pi-session-gists.ts delete-all --yes

gh and GitHub authentication are required. PI_SESSION_GIST_LIMIT sets the list limit (default 200).

The list command checks the first 40 lines of each gist for <title>Session Export</title>, reads metadata with gh api, and prints the gist ID, update date, size, title, and visibility.

Verification

Run ./scripts/pi-session-gists.ts list. Confirm that the table and next actions are visible. Use explicit gist IDs only.