canvas-to-code-auditor

canvas-to-code-auditor is an agent for Claude Code from opensesh/canvas-to-code. It costs 40 tokens per session (1,098 once invoked), scanned A, original, MIT.

A read-only tool that examines the code behind a specified website route, such as `/brand-hub`, and records its files, components, hooks, utilities, and child routes.

In plain words
What is it for?
Auditing a route before a visual redesign, migration, or feature change, and producing a structured report of the page’s implementation.
Why use it?
It shows what an existing page depends on before you redesign or move it, reducing the risk of overlooking code that the page needs.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the canvas-to-code plugin — 4 commands, 7 agents shipped together

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 agents/opensesh/canvas-to-code/canvas-to-code-auditor
Clone the repo
git clone --depth 1 https://github.com/opensesh/canvas-to-code

Made for: Claude Code.

Or install canvas-to-code, the plugin that ships this one along with the rest of its 4 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 canvas-to-code-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/opensesh/canvas-to-code/canvas-to-code-auditor.svg)](https://agentmods.dev/agents/opensesh/canvas-to-code/canvas-to-code-auditor)
Your own site
<a href="https://agentmods.dev/agents/opensesh/canvas-to-code/canvas-to-code-auditor"><img src="https://agentmods.dev/badge/agents/opensesh/canvas-to-code/canvas-to-code-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 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,098 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.00040 $0.01098
Opus 5 $0.00020 $0.00549
Sonnet 5 $0.00008 $0.00220
Haiku 4.5 $0.00004 $0.00110

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

Security

Grade A, and why

canvas-to-code-auditor 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 6d 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.

agents/canvas-to-code-auditor.md · 133 lines

How it starts

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

Design-to-Code Auditor

You audit the consumer's codebase for the target surface. Read-only — you never edit anything.

Inputs

  • targetRoute from status.json (e.g. /brand-hub).
  • isExistingRoute boolean.
  • Consumer config (.canvas-to-code/config.yaml) for components_dirs.

Output

Structured markdown at .canvas-to-code/state/<feature>/audit.md. Format:

# Audit: /brand-hub

## Route status

- **Exists:** yes
- **Rendering file:** `app/(dashboard)/brand-hub/page.tsx`
- **Layout:** `app/(dashboard)/brand-hub/layout.tsx` → `BrandHubLayout`
- **Page header:** `components/custom/pages/brand-hub/PageHeader.tsx` (retained as-is in redesigns)

## Components used (direct imports)

- `components/base/application/tabs/tabs.tsx` — `Tabs`, `Tab`, `TabPanel`
- `components/custom/pages/brand-hub/PillarCard.tsx`
- `components/custom/pages/brand-hub/OverviewBlock.tsx`
- … (full list)

## Hooks used

- `hooks/useBrandLogos.ts`
- `hooks/useBrandColors.ts`
- `hooks/useBrandFonts.ts`
- `hooks/useBrandHubPages.ts`

## Library / utility modules used

- `lib/supabase/brand-themes-service.ts`
- `lib/supabase/brand-theme-history.ts`
- `utils/cx.ts`

## Sub-routes underneath

- `app/(dashboard)/brand-hub/logo/page.tsx`
- `app/(dashboard)/brand-hub/colors/page.tsx`
- `app/(dashboard)/brand-hub/fonts/page.tsx`
- `app/(dashboard)/brand-hub/guidelines/page.tsx`
- `app/(dashboard)/brand-hub/design-tokens/page.tsx`
- `app/(dashboard)/brand-hub/textures/page.tsx` (drop candidate)
- `app/(dashboard)/brand-hub/resources/page.tsx` (drop candidate)

## Behaviors to port across the swap

- **OnboardingWizard trigger** — `app/(dashboard)/brand-hub/page.tsx:24` calls `triggerWizardOnNextVisit()`. Port to redesigned page or document removal.
- **AddPageModal** — `app/(dashboard)/brand-hub/page.tsx:67` opens dynamic-pillar creator. Decide retain/drop at swap.
- **404 redirect** for `/brand-hub/textures` and `/brand-hub/resources` if dropped.

## Data shape (existing)

- `brand_hub_pages` Supabase table → `useBrandHubPages` returns `{ pages: BrandHubPage[], isLoading, error }`.
- Color version history at `lib/supabase/brand-theme-history.ts` provides timestamped diffs.

## Notes

- BOS_APP_ROUTES had a `voice` entry that doesn't correspond to any actual route. Out of scope but flag for follow-up.

Read the full file on GitHub · 133 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. 6d ago First seen · 133 lines · 40 tokens per session scan A d3bff55deaed

Subscribe to this mod's changes

canvas-to-code-auditor is an agent published in the GitHub repository opensesh/canvas-to-code (6 stars, last pushed 3mo ago), licensed MIT. It adds 40 tokens to every session and 1,098 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-31.

Related

Other agents, from other repositories

gsp-project-reviewer

QA validates actual codebase implementation against design intent. Spawned by /gsp-project-review.

jubscodes/get-shit-pretty · 25 tokens

code-reviewer

Elite code review expert specializing in modern AI-powered code analysis, security vulnerabilities, performance optimization, and production reliability. Masters static analysis tools, security scanning, and configuration review with 2025/2026 best practices. Use PROACTIVELY for code quality assurance.

HermeticOrmus/LibreUIUX-Claude-Code · 57 tokens

php-reviewer

PHP 8.5 and Clean Architecture code review specialist — DDD, hexagonal, PSR-12, PHPStan, security analysis.

TheBeardedBearSAS/claude-craft · 32 tokens

architecture-analyst

Analyzes system architecture, identifies patterns/anti-patterns, and provides strategic recommendations. Use for architectural reviews, refactoring planning, or system design decisions.

travisjneuman/.claude · 36 tokens

ia-database-guardian

Reviews database schema, constraints, and migration code for safety. Use when PRs touch migrations, data models, ID mappings, enum conversions, backfills, or persistent data.

iliaal/whetstone · 41 tokens

review-rails

Rails conventions and architecture reviewer for PR audits. Spawned by /rpi:review-pr as subagenttype rpi:review-rails with artifact paths. Ensures existing framework features are used, not reinvented — reads changed files in full and compares them against siblings and the framework-native form.

hoblin/claude-ruby-marketplace · 64 tokens