css-render-performance

css-render-performance is a skill for Claude Code, Codex from d-o-hub/github-template-ai-agents. It costs 79 tokens per session (1,039 once invoked), scanned A, original, MIT.

A guide to finding and improving slow CSS rendering, the browser work that turns styles and animations into visible pixels.

In plain words
What is it for?
Use it to review animations, transitions, scroll-heavy interfaces, and long lists, including choices of CSS properties, GPU compositing, and content visibility.
Why use it?
It helps identify animations and scrolling patterns that cause delayed frames, layout work, or excessive painting on users’ devices.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to review animations, transitions, scroll-heavy interfaces, and long lists, including choices of CSS properties, GPU compositing, and content visibility.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/d-o-hub/github-template-ai-agents/css-render-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 d-o-hub/github-template-ai-agents --skill css-render-performance
Clone the repo
git clone --depth 1 https://github.com/d-o-hub/github-template-ai-agents

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 css-render-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/d-o-hub/github-template-ai-agents/css-render-performance/github.svg)](https://agentmods.dev/skills/d-o-hub/github-template-ai-agents/css-render-performance)
Your own site
<a href="https://agentmods.dev/skills/d-o-hub/github-template-ai-agents/css-render-performance"><img src="https://agentmods.dev/badge/skills/d-o-hub/github-template-ai-agents/css-render-performance/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 css-render-performance

Your own site · 80×15
<a href="https://agentmods.dev/skills/d-o-hub/github-template-ai-agents/css-render-performance"><img src="https://agentmods.dev/badge/skills/d-o-hub/github-template-ai-agents/css-render-performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,039 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.00079 $0.01039
Opus 5.5 $0.00032 $0.00416
Sonnet 5.5 $0.00016 $0.00208
Haiku 4.5 $0.00008 $0.00104

Measured 1mo ago against content hash f6be04085def, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

css-render-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 1mo 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/skills/css-render-performance/SKILL.md · 121 lines

How it starts

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

CSS Render Performance

Guide CSS render performance analysis and optimization for smooth, jank-free user interfaces.

When to Use

  • User asks about CSS animation performance or janky transitions
  • Reviewing scroll-heavy UIs or long lists for render performance
  • Even if they just say "this animation is janky" or "optimize the CSS"

Quick Check

  • Profile with Chrome DevTools Performance tab (look for Long Frames)
  • Check which CSS properties trigger layout vs paint vs composite
  • Verify will-change is used sparingly (max 2-3 elements simultaneously)
  • Test on throttled CPU (4x) and slow network to simulate user devices
  • Confirm no layout-triggering properties in animations (width, height, top, left)

Core Concepts

Phase What It Does Cost CSS Properties That Trigger It
Layout Calculate geometry Expensive width, height, margin, padding, border, position, display, flex, grid
Paint Fill in pixels Expensive color, background, box-shadow, visibility, border-radius
Composite Layer on GPU Cheap transform, opacity

Goal: Animate only composite-layer properties (transform, opacity) to avoid layout and paint.

Optimization Strategies

Promote Layers

Force elements onto their own compositing layer for GPU-accelerated animation:

.animated-element {
  transform: translateZ(0); /* or will-change: transform */
}

Use will-change sparingly — it tells the browser to pre-allocate GPU memory.

CSS Containment

Isolate DOM sub-trees to limit layout/paint scope:

.card {
  contain: layout paint;
}

Content Visibility

Skip rendering for off-screen content in long lists:

.offscreen-item {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

Decision Flowchart

Is the element animating?
├── Yes → Which property?
│   ├── transform or opacity → ✓ Safe (composite only)
│   ├── width, height, top, left → ✗ Triggers layout — refactor
│   ├── background, color → ⚠ Triggers paint — use contain or promote layer
│   └── Multiple properties → Consider FLIP technique or Web Animations API
└── No → Is it in a scrollable container?
    ├── Yes → Apply content-visibility: auto
    └── No → Check for unnecessary repaints on state changes

Read the full file on GitHub · 121 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 121 lines · 79 tokens per session scan A f6be04085def

Subscribe to this mod's changes

css-render-performance is a skill published in the GitHub repository d-o-hub/github-template-ai-agents (2 stars, last pushed yesterday), licensed MIT. It adds 79 tokens to every session and 1,039 once invoked, about $0.0003 per session on Opus 5.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

slopmop

Trigger when you would normally reach for pytest, gh, mypy, black, or other raw repo tooling. Redirect to sm swab, sm scour, sm buff, sm sail, sm refit, or sm doctor so remediation follows the established rails. Also trigger when asked to "install" or "set up" slop-mop in a repo, or when you find a repo with sm…

ScienceIsNeato/slop-mop · 186 tokens

performance-patterns

Use when user asks about N+1 queries, performance optimization, query optimization, reduce API calls, improve render performance, fix slow code, optimize database, or reduce bundle size. Provides guidance on identifying and fixing performance anti-patterns across database, backend, frontend, and API layers.

hculap/better-code · 61 tokens

Divi 5 Compatibility

Use this skill when validating CSS for Divi 5 / Divi 5.13 compatibility, checking unsupported features or units, troubleshooting Divi CSS that isn't applying, debugging plugin conflicts (WP Rocket, LiteSpeed, Wordfence, WooCommerce, Perfmatters), migrating from Divi 4 to Divi 5, understanding breakpoints, applying the…

cjsimon2/Divi5-ToolKit · 314 tokens

performance-profiling

A measurement-first approach to finding and fixing performance problems in web apps, covering Core Web Vitals targets, a baseline-isolate-fix-verify loop, bundle and runtime/memory analysis, and prioritized quick wins. Use it when diagnosing slow loads or interactions, running Lighthouse audits, inspecting bundle…

phuonghx/aim-cli · 76 tokens

codebase-refactoring

Three-part workflow to improve overall codebase health with jscpd — find and fix duplicated code, find and remove or refactor dead code, then find and simplify the largest/most complex files. Starts from --dashboard/--health to prioritize and ends by re-measuring the score.

kucherenko/jscpd · 63 tokens

report-issue-local

File a bug or feature request against this MCP server's own repo. Use for server-specific issues — tool logic, service integrations, config problems, or domain bugs that aren't caused by the framework.

cyanheads/obsidian-mcp-server · 44 tokens