image-preview

by ezou · ★ 0 · updated 19 days ago

ReskinsCommandsvalidates

0

Render image paths inline: a thumbnail in the user's prompt row (aspect-fill, max 10 rows) and in agent reply rows when the model mentions a path. Recognises a file path ending in a supported image extension (quoted or with escaped spaces too), or an [Image #N] token for a pasted picture.

install image-preview

Install

/plugin marketplace add ezoushen/claude-mods
/plugin install image-preview@claude-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
ui.rendersession.startcommand.run
API calls
$.command.register$.env.get$.process.run$.session.cwd$.session.messages$.state.get$.state.set$.ui.resolve
Draws
UserMessageAssistantMessage
Reach
level 2 of 3 runs processesreads env varsreads the transcriptreads mod statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/ezoushen/claude-mods
Path in repo
image-preview
Source commit
8cf9fdd the exact code the scan read
Author
ezou @ezoushen
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from ezoushen/claude-mods

mermaid-pane

ezoushen/claude-mods

Renders mermaid code blocks inline as ASCII art (beautiful-mermaid, termaid) or images with an open-full-size button; /mermaid switches modes; mermaid.ink is opt-in via /mermaid external on.

★ 0ReskinsCommands

prompt-redact

ezoushen/claude-mods

Replaces secrets and credentials with stable placeholders inside Claude Code before the model or the session file ever sees them — prompts, tool results and replies, plus attachments and compaction summaries where the platform lets this mod see them — and restores real values only in Edit/Write/NotebookEdit arguments. 220-rule corpus plus checksum detectors, a benign-shape allowlist...

★ 0BandsGuardsCommands