obsidian-wechat-converter: Command for Claude Code

.claude/commands/openprd/visual-compare.md

visual-compare is a command for Claude Code from DavidLam-oss/obsidian-wechat-converter. It costs 0 tokens per session (1,167 once invoked), scanned A, original, MIT.

A command for comparing a reference UI image with a screenshot of the implemented interface. It can also compare screenshots taken before and after a change.

In plain words
What is it for?
Use it during interface work to review layout, styling, and other visible changes against a reference or earlier screenshot.
Why use it?
It helps reveal visual differences between an intended design and the page that was built, or between the old and new interface.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Codex.

This is DavidLam-oss/obsidian-wechat-converter's own configuration. It tells Claude Code how to work on obsidian-wechat-converter itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything obsidian-wechat-converter configures →

Reuse

Borrowing it

Nothing to install: this file belongs to DavidLam-oss/obsidian-wechat-converter. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/DavidLam-oss/obsidian-wechat-converter/main/.claude/commands/openprd/visual-compare.md
Clone the repo
git clone --depth 1 https://github.com/DavidLam-oss/obsidian-wechat-converter

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for visual-compare

README.md
[![agentmods](https://agentmods.dev/badge/commands/davidlam-oss/obsidian-wechat-converter/visual-compare.svg)](https://agentmods.dev/commands/davidlam-oss/obsidian-wechat-converter/visual-compare)
Your own site
<a href="https://agentmods.dev/commands/davidlam-oss/obsidian-wechat-converter/visual-compare"><img src="https://agentmods.dev/badge/commands/davidlam-oss/obsidian-wechat-converter/visual-compare.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,167 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01167
Opus 5 $0.00000 $0.00583
Sonnet 5 $0.00000 $0.00233
Haiku 4.5 $0.00000 $0.00117

Measured 3d ago against content hash 18c67caaf76e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

visual-compare scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/commands/openprd/visual-compare.md · 25 lines

How it starts

The opening of the file, as written. The whole thing — 25 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OpenPrd Visual Compare

When UI work has a confirmed reference effect image or user-provided design, capture the implemented UI screenshot, then run openprd visual-compare . --reference <effect-image> --actual <implementation-screenshot> --locale <zh-CN|en>. Treat newly generated images as candidate references until the user confirms they match expectations, should be used for later effect-image vs implementation comparison, and should drive implementation. The command creates a side-by-side JPG under .openprd/harness/visual-reviews/ by default. Labels follow the current user language: Chinese contexts use 效果图 / 实现截图; English contexts use Reference / Implementation. Pass --locale <zh-CN|en> when the conversation language is known. When UI work has no reference image, first distinguish new UI from existing UI changes. For new screens, return to the pre-implementation three-direction visual review. For existing UI changes, capture the before screenshot first, implement the change, capture the after screenshot from the same entry, viewport, account, and data state, then run openprd visual-compare . --before <before-screenshot> --after <after-screenshot> --locale <zh-CN|en> for a before/after self-check whose labels follow the current user language. When one reference image contains multiple sub-images, grid cells, or objects, run openprd visual-prepare . --reference <effect-image> --grid <columns>x<rows> or --boxes <plan.json> first so the agent compares item by item instead of comparing the whole board blindly. When local detail matters more than the whole screen, prepare a board JSON and run openprd visual-compare . --board <board.json> --locale <zh-CN|en> to generate a focus-board with overview boxes plus numbered zoom panels. When the agent explores multiple optimization directions in parallel, use openprd visual-compare . --board <board.json> --locale <zh-CN|en> with mode=parallel-board to assemble screenshots, GIF first frames, and key metrics into one review board. When ordinary screenshots or Computer/Browser/Playwright checks are used as visual or runtime evidence, use openprd visual-compare . --board <board.json> --locale <zh-CN|en> with mode=verification-board to assemble screenshots, checked path, and checkpoints into one screenshot verification board. Board-visible text such as title, summary, labels, notes, and checks must follow the current user language. Raw screenshots are inputs, not final visual closeout evidence. When a new feature or visible change contains repeated homogeneous cards, lists, grids, or tables, or when the user reports misalignment, capture the real UI, overlay guide lines, measure both container-track spread and internal content-slot spread, and use openprd visual-compare . --board <board.json> --locale <zh-CN|en> with mode=alignment-board to assemble the screenshot, guides, and metrics into one alignment evidence board. Internal content slots include titles, subtitles, descriptions, tags, status, prices, buttons, icons, and action areas; measuring only card edges, columns, rows, or outer frames is not enough. When a single logo, icon, avatar, badge, button graphic, or image crop needs internal centering, visual-centroid review, or off-center diagnosis, crop the target if needed and use openprd visual-compare . --board <board.json> --locale <zh-CN|en> with mode=centering-board. The board must show the red canvas center, green active subject bounds, yellow visual centroid, and metadata for bounding-box center offset plus visual-centroid offset; a raw screenshot or subjective “looks centered” note is not enough. Lightweight visible UI fixes such as card width, spacing, whitespace, alignment, colors, border radius, font size, buttons, or icons still need visual evidence before claiming the UI is done; state the aesthetic intent and memory point first, then use evidence to check tone, hierarchy, color, type, spacing, surface role, and memory point. Builds, packages, dev-check, unit tests, and raw single screenshots are not substitutes. Inspect the generated image and keep iterating until there are no obvious structural or aesthetic differences before claiming completion. If the user says the implementation looks wrong, ugly, inconsistent, or asks for replication, do not claim you already compared it without producing at least one visual evidence artifact. For large UI changes before implementation, decide from user goal, information architecture change, visual decision cost, and validation risk. If an existing screen is available, capture the current in-product screen with Codex Computer Use; if this is a cold-start screen, create a design brief from the confirmed PRD, audience, first slice, visual goal, intended tone, constraints, and memory point. Generate at least three Image 2 directions from that screenshot or brief, each with a distinct aesthetic claim and anti-slop check, combine them into one horizontal numbered contact sheet as a candidate effect-image board, and ask the user whether it matches expectations, should be used for later comparison, and should drive implementation before you store the chosen reference-set under .openprd/harness/visual-reviews/.

Read the full file on GitHub · 25 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 25 lines · 0 tokens per session scan A 18c67caaf76e

Subscribe to this mod's changes

visual-compare is a command published in the GitHub repository DavidLam-oss/obsidian-wechat-converter (306 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,167 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.