canon-performance

canon-performance is a skill for Claude Code, Codex from Dragoon0x/canon. It costs 74 tokens per session (2,895 once invoked), scanned A, original, MIT.

A guide to making web interfaces load quickly and respond promptly. It explains Core Web Vitals—standard measures of loading, interaction response, and unwanted layout movement—as well as server response, images, scripts, fonts, and lazy loading.

In plain words
What is it for?
Use it to review LCP, INP, CLS, TTFB, image delivery, CSS and JavaScript loading, fonts, lazy loading, and perceived speed.
Why use it?
It helps identify the causes of slow pages and poor interaction, especially for people on slower phones or networks.

Skill for Claude CodeCodex

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

Good fit Use it to review LCP, INP, CLS, TTFB, image delivery, CSS and…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dragoon0x/canon/canon-performance
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 Dragoon0x/canon --skill canon-performance
Clone the repo
git clone --depth 1 https://github.com/Dragoon0x/canon

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 canon-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/dragoon0x/canon/canon-performance.svg)](https://agentmods.dev/skills/dragoon0x/canon/canon-performance)
Your own site
<a href="https://agentmods.dev/skills/dragoon0x/canon/canon-performance"><img src="https://agentmods.dev/badge/skills/dragoon0x/canon/canon-performance.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,895 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.00074 $0.02895
Opus 5 $0.00037 $0.01448
Sonnet 5 $0.00015 $0.00579
Haiku 4.5 $0.00007 $0.00290

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

Security

Grade A, and why

canon-performance 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.

source/skills/canon-performance/SKILL.md · 309 lines

How it starts

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

CANON · Performance

Performance is design. A slow interface fails accessibility, fails conversion, and fails users on slow networks. The targets below are the bar.

Core Web Vitals (the only metrics that matter for ranking and UX)

Metric Good Needs Improvement Poor Source
LCP (Largest Contentful Paint) ≤ 2.5s 2.5–4.0s > 4.0s web.dev
INP (Interaction to Next Paint) ≤ 200ms 200–500ms > 500ms web.dev
CLS (Cumulative Layout Shift) ≤ 0.1 0.1–0.25 > 0.25 web.dev

Targets are 75th-percentile across mobile devices on slow 4G. "Works on my MacBook" is irrelevant.

TTFB (Time to First Byte) — the prerequisite

Threshold Status
≤ 800ms Good
> 1.8s Poor (LCP cannot be good with this TTFB)

Bad TTFB ceilings everything else. Fix server response and CDN before anything else.

LCP — Largest Contentful Paint

Most LCP failures come from one of:

  1. Large unoptimized hero image
  2. Render-blocking CSS / JS
  3. Slow server (TTFB)
  4. Web fonts that delay text paint

Hero Image Rules

<img
  src="hero-1200.webp"
  srcset="hero-400.webp 400w, hero-800.webp 800w, hero-1200.webp 1200w"
  sizes="100vw"
  fetchpriority="high"
  decoding="async"
  width="1200"
  height="600"
  alt="..."
/>
Attribute Why
fetchpriority="high" Tells browser this is the LCP candidate
srcset + sizes Right size per viewport
width + height Reserves space (prevents CLS)
Format: WebP/AVIF 25–50% smaller than JPEG
loading="lazy" NEVER for the LCP image. Lazy = late paint.

Render-Blocking Resources

Only load critical CSS in <head>. Defer everything else.

<!-- Critical CSS inline -->
<style>/* above-the-fold styles only */</style>

<!-- Non-critical CSS deferred -->
<link rel="preload" href="/styles/full.css" as="style" onload="this.rel='stylesheet'">

<!-- Scripts deferred -->
<script src="/main.js" defer></script>
<script src="/analytics.js" async></script>

Read the full file on GitHub · 309 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 · 309 lines · 74 tokens per session scan A 4fe69c901452

Subscribe to this mod's changes

canon-performance is a skill published in the GitHub repository Dragoon0x/canon (5 stars, last pushed 4mo ago), licensed MIT. It adds 74 tokens to every session and 2,895 once invoked, about $0.0004 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 skills, from other repositories

accessibility

Accessibility (a11y) workflow skill. Use this skill when the user needs Audit and improve web accessibility following WCAG 2.1 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible". Do NOT use for SEO (use seo)…

diegosouzapw/awesome-omni-skills · 119 tokens

accessibility

Use when making a web UI conform to WCAG 2.2 Level AA — axe-core or Lighthouse a11y violations, keyboard operability, focus management, ARIA roles/names/live regions, contrast, tap-target size. NOT palette or visual intent (that is design), NOT test-runner setup (that is testing-web), NOT LCP/page-speed (that is…

ericrisco/rsc-harness · 86 tokens

accessibility-audit

Use when wCAG compliance audit — semantic HTML, ARIA, keyboard navigation, color contrast, and screen reader testing. Use when working with accessibility audit.

oyi77/1ai-skills · 37 tokens

accessibility-audit

Fast, high-signal accessibility triage for pages, components, or PRs targeting WCAG 2.2 AA compliance.

NickCrew/Claude-Cortex · 31 tokens

vue-gen

Vue 3 Composition API code generation — transforms Mémoire component specs into Vue SFCs with script setup, Tailwind styling, and composable patterns.

memi-design/design-skills · 33 tokens

token-architecture

Design token architecture — multi-tier token systems, semantic naming, theme switching, CSS custom properties, Tailwind mapping, and Figma variable sync.

memi-design/design-skills · 32 tokens