build-from-screenshot

build-from-screenshot is a command for Claude Code from PMDevSolutions/Aurelius. It costs 0 tokens per session (3,355 once invoked), scanned A, original, MIT.

A workflow that turns screenshots or a live web address into a working application, choosing among React, Vue, Svelte, or React Native during setup. It includes test-first development, visual image comparisons, and browser-based end-to-end tests; TDD means writing tests before the code, while end-to-end tests check complete user flows.

In plain words
What is it for?
It is for recreating web pages or apps from screenshots or URLs, selecting an app type, building the interface, comparing its appearance, and checking user journeys.
Why use it?
It coordinates the many steps that are easy to miss when recreating an interface from a visual reference. Automated comparisons and tests help detect visual and behavioural differences during the build.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the TodoWrite tool.

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.

agentmods
npx agentmods add commands/pmdevsolutions/aurelius/build-from-screenshot
Clone the repo
git clone --depth 1 https://github.com/PMDevSolutions/Aurelius

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 build-from-screenshot

README.md
[![agentmods](https://agentmods.dev/badge/commands/pmdevsolutions/aurelius/build-from-screenshot.svg)](https://agentmods.dev/commands/pmdevsolutions/aurelius/build-from-screenshot)
Your own site
<a href="https://agentmods.dev/commands/pmdevsolutions/aurelius/build-from-screenshot"><img src="https://agentmods.dev/badge/commands/pmdevsolutions/aurelius/build-from-screenshot.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 3,355 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.03355
Opus 5 $0.00000 $0.01677
Sonnet 5 $0.00000 $0.00671
Haiku 4.5 $0.00000 $0.00335

Measured yesterday against content hash a102a3ce6b6e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

build-from-screenshot 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 yesterday.

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.

.claude/commands/build-from-screenshot.md · 262 lines

How it starts

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

/build-from-screenshot — Autonomous Screenshot/URL-to-Working-App Pipeline

You are the master orchestrator for converting screenshots or a live URL into a fully working, tested application. You receive one or more image file paths OR a URL and guide the entire process through 12 phases, using specialized skills and agents. The output target (React, Vue, Svelte, React Native) is determined during intake and drives agent selection in the build phase.

Key enforcement rules:

  • TDD is mandatory — Phase 3 (TDD) MUST complete before Phase 4 (Build). No exceptions.
  • Visual QA uses pixel diff — Phase 5 uses scripts/visual-diff.js for programmatic comparison, not manual eyeballing.
  • E2E tests are generated — Phase 6 generates and runs Playwright E2E tests appropriate to the app type.
  • App-type aware — Chrome extensions, PWAs, and web apps each get tailored test strategies.
  • Token inference requires confirmation — Phase 2 extracts tokens via AI vision and MUST get user confirmation before locking.
  • Renderer-driven — Phase 4 dispatches the converter agent named by the resolved renderer manifest (renderer-registry.js resolve <renderer>), not a hardcoded outputTarget table.

Input

The user provides: $ARGUMENTS (a URL or one or more image file paths)

Detect input type:

  • If $ARGUMENTS starts with http:// or https://URL capture mode
    • The pipeline will navigate to the URL and capture screenshots automatically
    • Store the original URL for the build report
  • Otherwise → File paths mode
    • Treat $ARGUMENTS as one or more image file paths (space-separated or glob)
    • Verify each file exists before proceeding

URL capture mode steps:

  1. Use Chrome DevTools MCP to navigate to the URL: mcp__chrome-devtools__navigate_page
  2. Resize to standard viewports (desktop 1440px, tablet 768px, mobile 375px): mcp__chrome-devtools__resize_page
  3. Take screenshots at each viewport: mcp__chrome-devtools__take_screenshot
  4. Save screenshots to .claude/visual-qa/screenshots/source/

Read the full file on GitHub · 262 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. yesterday First seen · 262 lines · 0 tokens per session scan A a102a3ce6b6e

Subscribe to this mod's changes

build-from-screenshot is a command published in the GitHub repository PMDevSolutions/Aurelius (8 stars, last pushed 21d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,355 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.

Related

Other commands, from other repositories