---
name: exporting-terminal-coding-sessions-into-pull-request
description: "Converts terminal coding session transcripts into a clean markdown recap of prompts, tool calls, shell commands, and file diffs for pull request review. Use when a reviewer needs the context behind an agent session."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, GitHub, Docs."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/exporting-terminal-coding-sessions-into-pull-request/"
  kind: workflow
  hermes:
    tags: ["developer-tools", "code-review", "git", "terminal"]
    category: coding
    requires_toolsets: ["terminal", "file"]
---
# Exporting terminal coding sessions into pull request notes

Convert raw agent commands, prompts, and file diffs into clean review documentation

## When to use

Long interactive terminal coding sessions often leave behind valuable context like tool calls, shell commands, and file edits that reviewers need to see. This workflow inspects session transcripts, formats the key decisions and generated diffs, and creates a concise summary ready to attach to your pull request.

## Inputs

- `session_log`: Terminal session log or transcript containing prompts, tool invocations, shell executions, and file changes.
- `pull_request` (optional): Pull request where the formatted session recap will be attached.

## Steps

1. When you ask: Session log provided (A person provides a terminal session log or transcript in chat.)
2. Extract prompts and diffs
3. Draft PR audit note

## Instructions

When given a terminal session log or transcript, extract the prompt sequence, tool invocations, shell executions, and resulting file changes. Remove redundant outputs and sensitive credentials. Format the extracted history into a markdown recap highlighting main technical choices and testing commands. Present the formatted summary to the user and wait for explicit approval before publishing comments or updating descriptions on GitHub.

## Approvals

- Publishing comments on GitHub must wait for explicit user approval.
- Updating pull request descriptions on GitHub must wait for explicit user approval.

## Output

Markdown recap of session prompts, commands, and file diffs, ready to attach to a pull request. (format: markdown)

## Harness notes

- Claude Code: Save this file as ~/.claude/skills/exporting-terminal-coding-sessions-into-pull-request/SKILL.md (or .claude/skills/exporting-terminal-coding-sessions-into-pull-request/SKILL.md in the repo). Claude Code loads it when the task matches; run /exporting-terminal-coding-sessions-into-pull-request to start it directly.

## Source

Summarized in our own words from [Show HN: Claudebin – Share and resume Claude Code sessions with a single link](https://news.ycombinator.com/item?id=47073488) (Hacker News, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/exporting-terminal-coding-sessions-into-pull-request/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
