design-compare

design-compare is a command for Claude Code from Adityaraj0421/naksha-studio. It costs 32 tokens per session (1,264 once invoked), scanned A, original, MIT.

A command that captures two websites with Playwright, a browser-automation tool, and compares their visual design. It reviews layout, color, typography, navigation, and ideas worth adapting.

In plain words
What is it for?
Use it to compare two websites from their domains or URLs and produce design recommendations based on their differences.
Why use it?
It turns a side-by-side website review into a structured comparison. It also captures both desktop and mobile views to reveal responsive differences.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the naksha-studio plugin — 47 commands, 7 agents shipped together

Good fit Use it to compare two websites from their domains or URLs and produce design recommendations based on their differences.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/adityaraj0421/naksha-studio/design-compare
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Adityaraj0421/naksha-studio

Made for: Claude Code.

Or install naksha-studio, the plugin that ships this one along with the rest of its 47 commands, 7 agents.

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 design-compare

README.md
[![agentmods](https://agentmods.dev/badge/commands/adityaraj0421/naksha-studio/design-compare.svg)](https://agentmods.dev/commands/adityaraj0421/naksha-studio/design-compare)
Your own site
<a href="https://agentmods.dev/commands/adityaraj0421/naksha-studio/design-compare"><img src="https://agentmods.dev/badge/commands/adityaraj0421/naksha-studio/design-compare.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 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,264 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.00032 $0.01264
Opus 5 $0.00016 $0.00632
Sonnet 5 $0.00006 $0.00253
Haiku 4.5 $0.00003 $0.00126

Measured 8d ago against content hash a940d0889e6c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

design-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 8d 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.

commands/design-compare.md · 159 lines

How it starts

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

/design-compare

Step 1 — Parse Arguments

$ARGUMENTS may be one of:

  • Two bare domains: stripe.com canva.com
  • Two full URLs: https://stripe.com https://canva.com
  • Mixed: stripe.com https://canva.com
  • One URL only → ask the user for the second before proceeding
  • Empty → ask the user for both URLs before proceeding

Normalize each value: if it doesn't start with http:// or https://, prepend https://.

Store as URL1 and URL2.


Step 2 — Capture Site 1 (URL1)

  1. Resize viewport to 1440×900 (desktop):

    • mcp__plugin_playwright_playwright__browser_resize → width: 1440, height: 900
  2. Navigate to URL1:

    • mcp__plugin_playwright_playwright__browser_navigate → url: URL1
  3. Take desktop screenshot:

    • mcp__plugin_playwright_playwright__browser_take_screenshot
    • Label this: site1-desktop
  4. Resize viewport to 390×844 (mobile):

    • mcp__plugin_playwright_playwright__browser_resize → width: 390, height: 844
  5. Take mobile screenshot:

    • mcp__plugin_playwright_playwright__browser_take_screenshot
    • Label this: site1-mobile
  6. Take accessibility snapshot (to read nav links, headings, landmark structure):

    • mcp__plugin_playwright_playwright__browser_snapshot
    • Label this: site1-snapshot

Step 3 — Capture Site 2 (URL2)

Repeat the exact same sequence as Step 2 for URL2:

  1. Resize to 1440×900
  2. Navigate to URL2
  3. Desktop screenshot → site2-desktop
  4. Resize to 390×844
  5. Mobile screenshot → site2-mobile
  6. Accessibility snapshot → site2-snapshot

Step 4 — Analyze with Vision

Examine all six captures (four screenshots + two snapshots). Evaluate each site across these dimensions:

Layout & Grid

  • Header pattern (full-width / contained / transparent)
  • Hero / above-the-fold treatment
  • Content columns and card grid density
  • Footer structure

Color System

  • Primary brand color(s)
  • Secondary / accent colors
  • Background tone (stark white / off-white / dark / gradient)
  • Text color hierarchy (H1 → body → muted)

Read the full file on GitHub · 159 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. 8d ago First seen · 159 lines · 32 tokens per session scan A a940d0889e6c

Subscribe to this mod's changes

design-compare is a command published in the GitHub repository Adityaraj0421/naksha-studio (316 stars, last pushed 2mo ago), licensed MIT. It adds 32 tokens to every session and 1,264 once invoked, about $0.0002 per session on Opus 5. 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-08-30.