Export the current session and post it to a GitHub PR or issue as a structured comment with a Gist link.
-
Export the session transcript:
python3 .claude/skills/gh-weld-export/scripts/export-session.py --out .weld/tmp/session-export.md
-
Upload as a secret Gist:
gh gist create --filename "session-export.md" .weld/tmp/session-export.md > .weld/tmp/gist-url.txt
Read .weld/tmp/gist-url.txt with the Read tool to get <gist-url>.
-
From session memory, identify 5–10 key events. Include an event if it answers "so what?" for a future reader:
- A design or approach decision was made
- An issue was created, closed, or had its state changed
- A blocker was encountered or resolved
- A constraint or non-obvious fact was discovered
- A file was created or significantly restructured (not just edited)
Exclude: read-only exploration, repeated failed attempts, minor formatting/cleanup changes, file reads with no outcome.
-
For each key event, find its line number in the transcript:
grep -n "<distinctive string from event>" .weld/tmp/session-export.md
Run each grep as a separate Bash call. If no match, include the entry without a line anchor.
-
Use the Write tool to write the summary to .weld/tmp/export-summary.md:
## Session Summary
- **<event description>** — [line N](<gist-url>#file-session-export-md-LN)
The Gist anchor format for session-export.md is #file-session-export-md-L<N>.
-
Read the first 100 lines of .weld/tmp/session-export.md with the Read tool (limit: 100) as the inline snippet.
-
Use the Write tool to write the comment body to .weld/tmp/export-comment.md:
## Session Summary
- **<event>** — [line N](<gist-url>#file-session-export-md-LN)
...
---
<first 100 lines of transcript>
---
[Full session context](<gist-url>)
---
*Created with [gh-weld](https://github.com/WrathZA/github-weld)*
-
Post the comment:
-
Clean up:
rm .weld/tmp/session-export.md .weld/tmp/export-comment.md .weld/tmp/export-summary.md
If invoked by another skill (caller mode), do not delete .weld/tmp/gist-url.txt — leave it for the caller to read and remove. If invoked standalone, also remove it:
rm .weld/tmp/gist-url.txt