CtrlK
BlogDocsLog inGet started
Tessl Logo

optimize-web-animations

Profile, audit, and optimize frontend page performance with emphasis on animation work, memory-leak risks, long-session slowdowns, CSS animations, canvas/WebGL requestAnimationFrame loops, marquees, skeletons, GSAP/Three/Matter effects, timers, listeners, and observers. Use when the user asks to make animations performant, pause offscreen animations, look for memory leaks, profile pages that slow the computer over time, fix janky scrolling, reduce CPU/GPU use, or repeat the "only play in view" optimization on React/Vite/Next/frontend pages using Codex Browser.

76

Quality

95%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

SKILL.md
Quality
Evals
Security

Quality

Content

92%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A tight, operational skill body: executable code and commands, a full baseline→patch→verify feedback loop with explicit pass criteria, and clean one-level-deep delegation of the browser profiler to a real reference file. The only improvement space is mild cross-section repetition of RAF-control and pseudo-element guidance across Workflow, Good Fix Patterns, and Avoid.

Suggestions

Trim the overlap between Workflow step 3, 'Good Fix Patterns', and 'Avoid': e.g., the RAF-vs-CSS point and the pseudo-element caveat each appear in all three sections; stating each once in the workflow and keeping 'Avoid' for failure modes only would cut tokens without losing guidance.

Consider collapsing the very long leak-hardening bullet list in step 3 into a short 'dispose everything created in the effect' principle plus the 3-4 non-obvious cases (GSAP mutable-object tweens, isDisposed async guards, ref capture in React cleanup), since the rest are instances Claude can derive.

DimensionReasoningScore

Conciseness

The body is dense and imperative with no conceptual padding — it never explains what animations or libraries are, and edge-case guidance ("If heap APIs return `null`... say so and rely on stable observable counts") is operational rather than filler. However, there is mild redundancy: RAF-loop control, pseudo-element coverage, and heap-counter caveats each restate across the Workflow, "Good Fix Patterns", and "Avoid" sections (e.g., "Direct RAF loop control for WebGL/canvas effects" repeats step 3). Efficient but trimmable, so 4 rather than the every-token-earns-its-place 5; clearly above the noticeably-verbose 2 and 3 anchors.

4 / 5

Actionability

Gives copy-paste-ready artifacts throughout: a concrete CSS pause rule (`animation-play-state: paused !important` with specific selectors), bash gates (`git diff --check`, `npm run lint`, `npm run build`), a complete temporary-index git commit sequence, and numeric targets (`offscreenRunningCount: 0`, IntersectionObserver threshold `0.01`, idle sample "after 10-30 seconds"). Common cases (CSS, canvas/WebGL, leaks, dirty worktree) are each covered with executable guidance.

5 / 5

Workflow Clarity

Seven clearly sequenced steps (inspect → baseline → patch → verify → local checks → commit → report) with a real feedback loop: step 2 captures the baseline, step 4 says "Reload the route and rerun the same top/mid/footer/mobile profiles" with an explicit pass criterion (`offscreenRunningCount: 0`), plus an interaction regression check and fresh-tab console check. Bounded stress testing ("Keep stress tests bounded") and crash-causality discipline add error-recovery guidance matching the anchor-5 checklist pattern.

5 / 5

Progressive Disclosure

SKILL.md stays a well-sectioned overview (Core Rule, Workflow, Good Fix Patterns, Avoid) and delegates the reusable tooling with a clearly signaled one-level-deep pointer: "See `references/browser-profiling.md` for a reusable Codex Browser evaluator" — verified to exist as a real 240-line reference, referenced once, no nested pointers. The 127-line inline workflow is appropriately main-file material; nothing that belongs in a reference is inlined as a wall of text.

5 / 5

Total

19

/

20

Passed

Description

95%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: third-person 'what' with comprehensive domain enumeration, an explicit and richly phrased 'Use when' trigger clause, and a well-delineated niche. The only soft spot is that the action verbs (profile/audit/optimize) are slightly fewer and more generic than the top anchor's pattern of many distinct concrete actions.

DimensionReasoningScore

Specificity

Opens with three concrete actions ("Profile, audit, and optimize frontend page performance") and comprehensively enumerates specific targets — "CSS animations, canvas/WebGL requestAnimationFrame loops, marquees, skeletons, GSAP/Three/Matter effects, timers, listeners, and observers" — but the verb list itself is thinner and slightly more generic than the anchor-5 pattern of multiple distinct concrete actions. Not 3 (far more than 1-2 actions and broad coverage); not quite 5 (the actions are less individually concrete than 'extract text, fill forms, merge documents, convert pages').

4 / 5

Completeness

Explicitly answers both questions: a clear third-person 'what' ("Profile, audit, and optimize frontend page performance with emphasis on animation work, memory-leak risks, long-session slowdowns...") followed by an explicit 'Use when...' clause with concrete trigger phrases — exactly the anchor-5 pattern. Not 4: the 'when' clause is already maximally explicit, not merely present.

5 / 5

Trigger Term Quality

The 'Use when' clause packs natural user phrasing — "make animations performant", "pause offscreen animations", "look for memory leaks", "profile pages that slow the computer over time", "fix janky scrolling", "reduce CPU/GPU use" — plus framework synonyms ("React/Vite/Next/frontend"). Coverage matches the comprehensive-with-synonyms anchor 5.

5 / 5

Distinctiveness Conflict Risk

Occupies a clear niche (offscreen-animation pausing, RAF/canvas loop gating, and leak auditing on frontend pages, tied to Codex Browser) with distinctive triggers like "only play in view" optimization and "pages that slow the computer over time". Minimal realistic conflict with adjacent profiling or review skills.

5 / 5

Total

19

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
MengTo/Skills
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.