terminal screenshot

Other Community

Skill notes

Why this exists

When a command's output arrives as a tool result, Claude sees plain text plus raw escape codes like \x1b[48;2;92;30;34m — not the rendered colors. That makes it impossible to honestly answer "is the diff's add/remove contrast strong enough?" or "did this theme come out too dark?". Reading hex values is guessing. This skill turns the output into an image so the judgement is based on what a human would

The method: capture, then render

Two separate steps. Keep them separate — that separation is the whole trick.

Step 1 — Capture full-fidelity ANSI to a file

Most CLIs drop or downgrade colors when they detect they're not writing to a real terminal (a pipe or a child process). Force full coloring and save to a .ansi file. The exact flag depends on the tool — recipes below. The single most important rule: never let the renderer run the command for you. freeze --execute "git diff | delta" looks convenient but produces a degraded

Step 2 — Render the ANSI file to PNG, then read it

Use the bundled wrapper, which prefers freeze and falls back to a stdlib renderer + headless Chrome: Then read the PNG with the Read tool and judge the colors. Background color must match the real terminal, or a dark theme verified on a white page looks wrong. On macOS with Ghostty:

Capture recipes per tool

Pick a --width close to the real terminal (≈100–120) so wrapping matches. Tool · Capture command (writes full-color ANSI) delta (git diff) · git --no-pager diff \ · delta --dark --line-numbers --width=110 > /tmp/x.ansi git diff (native) · git -c color.ui=always --no-pager diff > /tmp/x.ansi bat · bat --color=always --style=numbers <file> > /tmp/x.ansi

Fluxly profile Runtime and permissions are inferred by Fluxly static checks, not author declarations or runtime test results.
Domain
Other
Author-declared agents
No explicit declaration found; this is not inferred or tested compatibility
Static check
88 / 100 · heuristic scan, not runtime safety proof
Runtime evidence
Not run; no isolated runtime test evidence is currently recorded
Author / version / license
@daymade · no license declared
Token usage
Lean
Setup complexity
Guided setup
External API key
Not required
Operating systems
macOS
Runtime requirements
No explicit requirements detected
Detected file/system behavior
  • Read-only
  • Shell exec
Network behavior
Local-only
Install commands
None (reference only)

Heads up: Tool permissions are not declared; actual access depends on the runtime.

Output preview terminal-screenshot.preview
# Full example: verify a delta color change

# after editing [delta] colors in gitconfig, in any repo with a diff:
git --no-pager diff | delta --dark --line-numbers --width=110 > /tmp/diff.ansi
scripts/render_ansi.sh /tmp/diff.ansi /tmp/diff.png "#282c34"
# then: Read /tmp/diff.png and judge whether add/remove contrast is clear

Discussion

Powered by GitHub Discussions. Sign in with GitHub to comment, react, or subscribe.