canvas

canvas is a skill for Claude Code, Codex from subhansh-dev/agent-maxxing. It costs 23 tokens per session (583 once invoked), scanned A, original, MIT.

A tool for displaying HTML on connected computers or mobile devices and interacting with the page.

In plain words
What is it for?
Use it to present pages, navigate, run JavaScript, capture screenshots, and investigate display or interaction problems.
Why use it?
It helps inspect how a web page behaves and appears on another device.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to present pages, navigate, run JavaScript, capture screenshots, and investigate display or interaction problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/subhansh-dev/agent-maxxing/12-canvas
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.

Any agent
npx skills add subhansh-dev/agent-maxxing --skill 12-canvas
Clone the repo
git clone --depth 1 https://github.com/subhansh-dev/agent-maxxing

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/subhansh-dev/agent-maxxing/12-canvas/github.svg)](https://agentmods.dev/skills/subhansh-dev/agent-maxxing/12-canvas)
Your own site
<a href="https://agentmods.dev/skills/subhansh-dev/agent-maxxing/12-canvas"><img src="https://agentmods.dev/badge/skills/subhansh-dev/agent-maxxing/12-canvas/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for canvas

Your own site · 80×15
<a href="https://agentmods.dev/skills/subhansh-dev/agent-maxxing/12-canvas"><img src="https://agentmods.dev/badge/skills/subhansh-dev/agent-maxxing/12-canvas.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 583 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.00023 $0.00583
Opus 5 $0.00012 $0.00292
Sonnet 5 $0.00005 $0.00117
Haiku 4.5 $0.00002 $0.00058

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

Security

Grade A, and why

canvas 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 5d 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.

visual/12-CANVAS/SKILL.md · 79 lines

How it starts

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

Canvas

Use canvas to show HTML on connected Mac/iOS/Android nodes.

Model

  • Canvas host serves files from plugins.entries.canvas.config.host.root.
  • Canvas routes live on the Gateway HTTP port (gateway.port, default 18789).
  • Node bridge sends canvas URLs to connected node apps.
  • Node apps render URLs in a WebView.
  • Host name follows gateway.bind: loopback local only, LAN IP for LAN, Tailscale host for tailnet, auto picks best route.
  • Localhost URLs only work for a node on the same machine.
  • Paired nodes normally receive node-scoped pluginSurfaceUrls.canvas capability URLs; prefer those when available.

Config

Active config: $AGENT_CONFIG_PATH or ~/.agent/config.json.

{
  "plugins": {
    "entries": {
      "canvas": {
        "config": {
          "host": {
            "enabled": true,
            "root": "~/.agent/canvas",
            "liveReload": true
          }
        }
      }
    }
  },
  "gateway": { "bind": "auto" }
}

Actions

  • present: show canvas, optional URL.
  • hide: hide canvas.
  • navigate: open new URL.
  • eval: run JavaScript in current canvas.
  • snapshot: capture screenshot.

Workflow

  1. Ensure Canvas plugin host is enabled.
  2. Put HTML/CSS/JS under plugins.entries.canvas.config.host.root or the default state canvas dir.
  3. Use a route reachable by the target node.
  4. Present the hosted URL: /<canvas-route>/<file>.html.
  5. Use snapshot when the user needs proof.

URL shape

http://<gateway-host>:<gateway.port>/<canvas-route>/index.html
http://<gateway-host>:<gateway.port>/<canvas-route>/games/snake.html

Path mapping:

  • /<canvas-route>/index.html -> <canvas host root>/index.html
  • /<canvas-route>/games/snake.html -> <canvas host root>/games/snake.html

Troubleshooting

  • Node sees localhost but is remote: fix gateway.bind or public URL, regenerate URL.
  • LAN node cannot load: verify same network, firewall, Gateway port, and auth/capability URL.
  • Tailnet node cannot load: verify Tailscale status and advertised host.
  • Blank page: open URL locally, check browser console, then snapshot node.
  • Live reload missing: verify liveReload and file write under root.

Read the full file on GitHub · 79 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. 5d ago First seen · 79 lines · 23 tokens per session scan A 1df2e3ac0fab

Subscribe to this mod's changes

canvas is a skill published in the GitHub repository subhansh-dev/agent-maxxing (2 stars, last pushed 1mo ago), licensed MIT. It adds 23 tokens to every session and 583 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories

ux-capture

Capture playbook for the pi-ux render-and-inspect loop: screenshotting a UI you just built via local headless Chrome vs webscreenshot, daemon reachability (localhost vs LAN IP vs host.docker.internal), SSRF-protected daemons, and cloudflared tunnels. Load when setting up render inspection or when a UI screenshot…

bacnh85/pi-extensions · 76 tokens

url-to-code

Recreate an authorized live website or app URL as a faithful, runnable, frontend-only local implementation.

evoelsewhere/evoflux · 24 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

a11y-debugging

Uses Chrome DevTools MCP for accessibility (a11y) debugging and auditing based on web.dev guidelines. Use when testing semantic HTML, ARIA labels, focus states, keyboard navigation, tap targets, and color contrast.

ChromeDevTools/chrome-devtools-mcp · 50 tokens