build-from-canva

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

A workflow that converts a Canva design into a working React application. It coordinates design-value extraction, implementation, visual comparison, and automated tests; TDD means writing tests before the implementation, and E2E tests check a complete user flow in a running app.

In plain words
What is it for?
Building Chrome extensions, progressive web apps, or web apps from a Canva URL, then running test-driven development, pixel-based visual comparisons, and Playwright browser tests.
Why use it?
It provides an ordered process for moving from a visual design to code while checking both behavior and appearance. It also prevents the build from skipping its required test stages.

Command for Claude Code

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-canva
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-canva

README.md
[![agentmods](https://agentmods.dev/badge/commands/pmdevsolutions/aurelius/build-from-canva.svg)](https://agentmods.dev/commands/pmdevsolutions/aurelius/build-from-canva)
Your own site
<a href="https://agentmods.dev/commands/pmdevsolutions/aurelius/build-from-canva"><img src="https://agentmods.dev/badge/commands/pmdevsolutions/aurelius/build-from-canva.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 2,998 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.02998
Opus 5 $0.00000 $0.01499
Sonnet 5 $0.00000 $0.00600
Haiku 4.5 $0.00000 $0.00300

Measured today against content hash 67bcec54a542, 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-canva 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 today.

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-canva.md · 271 lines

How it starts

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

/build-from-canva — Autonomous Canva-to-Working-App Pipeline

You are the master orchestrator for converting a Canva design into a fully working, tested React application. You receive a Canva URL and guide the entire process through 12 phases, using specialized skills and agents.

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.

Input

The user provides: $ARGUMENTS (a Canva design URL)

Parse the Canva URL to extract:

  • designId from the URL path (e.g., https://www.canva.com/design/DAGxyz.../...DAGxyz...)

Configuration

Load .claude/pipeline.config.json at the start. This provides:

  • Visual diff thresholds and iteration limits
  • TDD enforcement settings
  • E2E strategy per app type
  • Quality gate thresholds
  • Lighthouse score minimums
  • Canva-specific settings (export format, scale, inference confidence threshold)

Progress Tracking

Use TodoWrite to create a master checklist. Update each item as phases complete. This enables interrupted sessions to resume.

[ ] Phase 0: Token Sync — sync-tokens.sh → check for drift (if lockfile exists)
[ ] Phase 1: Intake — canva-intake skill → build-spec.json
[ ] Phase 2: Token Inference — canva-token-inference skill → lockfile + tailwind config (requires user confirmation)
[ ] Phase 3: TDD Scaffold — tdd-from-figma skill → failing tests (RED)
[ ] Phase 4: Component Build — converter agent (per resolved renderer manifest) → tests pass (GREEN)
[ ] Phase 4.5: Storybook — generate-stories.sh → auto-generated stories
[ ] Phase 5: Visual Verification — pixel-diff loop (max N iterations, against Canva screenshots)
[ ] Phase 5.5: Dark Mode — check-dark-mode.sh → dark mode visual verification
[ ] Phase 6: E2E Tests — e2e-test-generator skill → Playwright tests
[ ] Phase 7: Cross-Browser — screenshots in Firefox/WebKit (non-blocking)
[ ] Phase 8: Quality Gate — coverage, types, build, tokens, Lighthouse
[ ] Phase 8.5: Responsive — check-responsive.sh → screenshots at 5 breakpoints
[ ] Phase 9: Report — build-report.md

Read the full file on GitHub · 271 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. today First seen · 271 lines · 0 tokens per session scan A 67bcec54a542

Subscribe to this mod's changes

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