gallery — Claude Code command: what it does, how to install
Turns fidelity reports into a static gallery with score cards and a page for each clone. Use it to publish design comparison results.
MIT ★ 5,183 updated 2026-10-23
/plugin marketplace add Manavarya09/design-extract
/plugin install designlang@designlangWhat gallery does
The command scans a directory for fidelity.json files and builds a static site from them. Its home page contains score cards ordered by the best result along with summary figures. Each clone gets its own page with the score card, a motion metrics table, and a correction plan.
The generated folder contains index.html, <slug>/index.html, and <slug>/card.svg. You can set the destination with --out <dir>, change the heading with --title <title>, and provide --base-url <url> for absolute OG image links after deployment. With no directory argument, the command reads ./design-extract-output and writes to ./gallery.
Create the reports first with /fidelity <original> --clone <clone>. The pages include OG and Twitter metadata, so the output can be uploaded to a static host such as Vercel, Netlify, or GitHub Pages.
What it helps with
- turn
fidelity.jsonfiles into a static gallery - sort score cards on an index page
- give every clone its own permalink page
- generate an SVG card for sharing
- show motion metrics and a correction plan
Example prompts for the agent
- Run
designlang galleryagainst reports in./design-extract-output. - Build a gallery from
reportsand write it topublic/gallerywith--out public/gallery. - Set the gallery heading to
Design reviewand pass--base-url <url>.
How to install gallery
1Plugin marketplace
/plugin marketplace add Manavarya09/design-extract/plugin install designlang@designlang2Manually: put the files in place
.claude/commands/gallery.mdCall it with /gallery. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/gallery.mdCall it with /prompts:gallery. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/gallery.prompt.mdManually: put the files in place
.gemini/commands/gallery.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about gallery
How do I install gallery in Claude Code?
Run these steps in order: /plugin marketplace add Manavarya09/design-extract, then /plugin install designlang@designlang, then add .claude/commands/gallery.md.
What does gallery do?
It scans for fidelity.json, creates an index of score cards, and generates a permalink page for each clone. Those pages include an SVG card plus OG and Twitter metadata.
What does gallery need before it runs?
It needs generated fidelity.json reports. Create them with /fidelity <original> --clone <clone> before building the gallery.
Source text
gallery.md · MIT
--- description: Build a static, shareable gallery from your fidelity reports — an index of score cards plus a permalink page (with an OG card) per clone. argument-hint: [dir] [--out <dir>] [--title <title>] [--base-url <url>] --- Run **designlang gallery** to turn the fidelity reports you've generated into a deployable static site. It scans a directory for `fidelity.json` files (one per clone), then writes an index grid of score cards plus a permalink page for each clone — every page embeds the SVG score card and OG/Twitter tags, so a shared link unfurls the measured number. ```bash npx designlang gallery $ARGUMENTS ``` If no directory is given it scans `./design-extract-output`. Generate the reports first with `/fidelity <original> --clone <clone>`. Outputs (under `--out`, default `./gallery`): | Path | What it is | |---|---| | `index.html` | the gallery grid, best-score first, with summary stats | | `<slug>/index.html` | a clone's permalink page (card + motion table + correction plan) | | `<slug>/card.svg` | the shareable score card | Useful flags via `$ARGUMENTS`: | Flag | Effect | |---|---| | `--out <dir>` | where to write the static site | | `--title <title>` | gallery heading | | `--base-url <url>` | absolute base URL so OG image links resolve when deployed | Deploy the output folder to any static host (Vercel, Netlify, GitHub Pages). Pair with `/fidelity` to keep the gallery fresh. Full reference: https://github.com/Manavarya09/design-extract#full-cli-reference
© Manavarya Singh · MIT · Manavarya09/design-extract