obsidian-wechat-converter: Command for Codex

.codex/prompts/openprd-visual-compare.md

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

A visual comparison command for placing a reference image beside a screenshot of an implemented interface. It can also compare before-and-after screenshots.

In plain words
What is it for?
It is for comparing reference and implementation images, or screenshots before and after UI work, with locale-specific labels.
Why use it?
It makes UI differences easier to inspect when checking a design against the implementation or reviewing a change.

Command for Codex

Written for Codex: installed under .codex/. Also seen: mentions Codex.

This is DavidLam-oss/obsidian-wechat-converter's own configuration. It tells Codex 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/.codex/prompts/openprd-visual-compare.md
Clone the repo
git clone --depth 1 https://github.com/DavidLam-oss/obsidian-wechat-converter

Made for: Codex.

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 openprd-visual-compare

README.md
[![agentmods](https://agentmods.dev/badge/commands/davidlam-oss/obsidian-wechat-converter/openprd-visual-compare/github.svg)](https://agentmods.dev/commands/davidlam-oss/obsidian-wechat-converter/openprd-visual-compare)
Your own site
<a href="https://agentmods.dev/commands/davidlam-oss/obsidian-wechat-converter/openprd-visual-compare"><img src="https://agentmods.dev/badge/commands/davidlam-oss/obsidian-wechat-converter/openprd-visual-compare/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for openprd-visual-compare

Your own site · 80×15
<a href="https://agentmods.dev/commands/davidlam-oss/obsidian-wechat-converter/openprd-visual-compare"><img src="https://agentmods.dev/badge/commands/davidlam-oss/obsidian-wechat-converter/openprd-visual-compare.svg" alt="Reviewed on agentmods" width="80" 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 98% copy Near-identical to another mod 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 4d ago against content hash f17893802371, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

openprd-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 4d 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

This is a copy

98% identical to visual-compare — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.codex/prompts/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. 4d ago First seen · 25 lines · 0 tokens per session scan A f17893802371

Subscribe to this mod's changes

openprd-visual-compare is a command published in the GitHub repository DavidLam-oss/obsidian-wechat-converter (307 stars, last pushed yesterday), 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. It is 98% identical to visual-compare, differing in 2 lines, and is treated as a copy.