Index of every page on this site: llms.txt
All skills
benwaffle avatar

/session-render

@d518105
Run it yourself

Render a single Claude Code session transcript (.jsonl) as a self-contained, minimal HTML file — left-aligned threaded log with syntax-highlighted code/bash and collapsible tool output, no external assets. Use when the user wants to view, export, share, or "render" a session by id or .jsonl path as HTML.

  • 2 files
  • 22.2 KB
  • Updated 4 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/benwaffle/skills/session-render

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈81 tokens for metadata: the name and description. ≈574 when used: this file.

Description uses 4.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈322 characters, or 4.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

session-render

Turns one Claude Code session log into a standalone HTML page you can open, archive, or email. The output is fully self-contained — syntax highlighting is done at build time with Pygments, so there is zero CDN/JS dependency and it works offline.

How to run

Dependencies (markdown, pygments) are declared inline via PEP 723 script metadata, so uv run installs them automatically — no --with flags needed:

uv run "${CLAUDE_PLUGIN_ROOT:-$(dirname "$0")}/render.py" \
  <session-id | path/to/session.jsonl> [output.html]
  • First arg: a bare session id (resolved by globbing ~/.claude/projects/**/<id>*.jsonl) or a direct path to a .jsonl.
  • Second arg (optional): output path. Defaults to /tmp/claude-session-<id>.html.
  • --claude-dir DIR overrides the search root (defaults to $CLAUDE_DIR or ~/.claude).

Then open it: open <output.html> (macOS) / xdg-open (Linux).

Layout

Left-aligned threaded log, intentionally minimal (no avatars/bubbles/shadows):

  • You and Claude messages are top-level, rendered from markdown.
  • Tool calls nest one level deeper under a hairline guide rail: a monospace caption (› Bash — description), the syntax-highlighted command, and the output. Tool output is expanded by default (collapsible); errors are flagged red.
  • Thinking and injected skill/context blocks are collapsed <details>.
  • Model-fallback and refusal notices render as quiet left-aligned system notes.
  • Sticky-free header shows title, session id, start/end time, and model(s).

Notes

  • Empty/stripped thinking blocks are skipped.
  • tool_use ↔ tool_result are linked by id, so each result renders inline under its call.
  • Bash commands highlight with the bash lexer; fenced code blocks highlight by their language; Write content highlights by file extension. Plain stdout is shown as-is in a dark block.
  • Code style is github-dark (set PYG_STYLE near the top of render.py to change it).
  • The script prints the output path, byte size, and block count when done.

Finding a session id

# by recent activity
ls -t ~/.claude/projects/*/*.jsonl | head
# by title/content
grep -l "some text" ~/.claude/projects/*/*.jsonl

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at d518105. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 4 months ago
What it can do
Runs commands Reads files
user-invocable
true
All 4 allowed tools
Bash(uv run *)Bash(open *)Bash(find *)Read

README badge

README badge for benwaffle/skills/session-render