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.
npx agentmods add skills/d-o-hub/github-template-ai-agents/css-render-performancenpx skills add d-o-hub/github-template-ai-agents --skill css-render-performancegit clone --depth 1 https://github.com/d-o-hub/github-template-ai-agentsWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00079 | $0.01039 |
| Opus 5 | $0.00039 | $0.00519 |
| Sonnet 5 | $0.00016 | $0.00208 |
| Haiku 4.5 | $0.00008 | $0.00104 |
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 2d 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.
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-changeis 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
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.
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.
- 2d ago First seen · 121 lines · 79 tokens per session scan A f6be04085def
css-render-performance is a skill published in the GitHub repository d-o-hub/github-template-ai-agents (2 stars, last pushed 2d ago), licensed MIT. It adds 79 tokens to every session and 1,039 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.
Other skills, from other repositories
css-architecture
CSS architecture, Tailwind patterns, responsive design, design tokens, and styling best practices. Use when implementing designs, setting up styling infrastructure, or debugging layout issues.
frontend-design
Create distinctive, production-grade frontend interfaces. Use when building landing pages, dashboards, marketing sites, or any UI that needs to look polished and intentional — not generic AI-generated.
tailwind-best-practices
Tailwind CSS patterns and conventions. Use when writing responsive designs, implementing dark mode, creating reusable component styles, configuring Tailwind, or migrating from v3 to v4. Triggers on tasks involving Tailwind classes, responsive design, dark mode, CSS styling, or "migrate to Tailwind v4".
design-review
Use when adding or restyling a Facet UI component, or before merging a UI PR — walks the component against DESIGN.md (tokens, states, a11y, contrast, responsive) so the design system is matched, not just remembered. The judgment check verify.sh can't grep.
tailwind-css
Tailwind CSS v4 patterns: CSS-first config, utility classes, component variants, v3 migration. Use when styling with Tailwind, configuring @theme tokens, using tailwind-variants/CVA, migrating v3 to v4, or fixing Tailwind styles and dark mode.
frontend-composition
Implement polished self-contained HTML interfaces with semantic structure, maintainable CSS, realistic content, and purposeful visual hierarchy.