Creator · MengTo
Last updated · Sep 2, 2026
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
Creator · MengTo
Last updated · Sep 2, 2026
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
Creator · MengTo
Last updated · Sep 2, 2026
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
Creator · MengTo
Last updated · Sep 2, 2026
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
Sandbox only
Install targets
Codex install prompt
Install the "optimize-web-animations" agent skill from https://github.com/MengTo/Skills/tree/main/agent-skills/codex/optimize-web-animations. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: 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. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"mengto-optimize-web-animations","task":"Install optimize-web-animations","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Testing and QA
I need my agent to test a web app, reproduce bugs, and verify fixes.
Agent fit
Claude Code + OpenAI Agents + Browser agents
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add MengTo/Skills --skill optimize-web-animations
Maintenance
fresh
8d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
5.7K
85/100 Quality · 80/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
ExcellentHigh-confidence pick with strong adoption and healthy maintenance signals.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
5.7K GitHub stars
Repo activity
5.7K stars, 689 forks
Maintenance
8d since push
License
MIT
Install
npx skills add MengTo/Skills --skill optimize-web-animations
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add MengTo/Skills --skill optimize-web-animationsDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20optimize-web-animations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20optimize-web-animations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/mengto-optimize-web-animations/install
Agent should check
Copy prompt
Task: Use optimize-web-animations in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20optimize-web-animations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/mengto-optimize-web-animations/install
Install command: npx skills add MengTo/Skills --skill optimize-web-animations
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/mengto-optimize-web-animations/install
LLM text format
/api/skills/mengto-optimize-web-animations/install?format=text
Find alternatives
/api/skills/search?q=optimize-web-animations&limit=3
Agent prompt
Use optimize-web-animations for this task. Review https://www.openagentskill.com/api/skills/mengto-optimize-web-animations/install, then install with: npx skills add MengTo/Skills --skill optimize-web-animationsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/mengto-optimize-web-animations
LLM text
/api/registry/manifest/mengto-optimize-web-animations?format=text
Install alias
/api/registry/install/mengto-optimize-web-animations
Recommend
/api/registry/recommend?task=Use%20optimize-web-animations%20in%20an%20agent%20workflow&limit=3
Agent fit
Browser automation
Use-case tags
Platforms
Claude Code, OpenAI Agents, Browser agents
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Browser automation
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS5.7K GitHub stars
Stars/forks activity
PASS5.7K stars, 689 forks; issue activity unavailable in current metadata
Recent maintenance
PASS8d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
High-confidence pick with strong adoption and healthy maintenance signals.
Workflow fit
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Verify behavior
I need my agent to test a web app, reproduce bugs, and verify fixes.
Workflow fit
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Alternative shortlist
Similar skills that may fit this task.
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
Infisical is the open-source platform for secrets, certificates, and privileged access management.
--- name: optimize-web-animations description: 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. ---
# Optimize Web Animations
## Core Rule
Measure the real page before editing. The goal is not to remove motion; it is to make offscreen work stop, visible motion resume correctly, and route/unmount cleanup release long-lived resources.
Use Codex Browser when available, especially for localhost pages. Do not use Chrome unless the user explicitly asks for it.
## Workflow
1. Inspect repo context. - Read `AGENTS.md` or local instructions. - Run `git status --short` early. - Find page components, animation hooks, CSS keyframes, `requestAnimationFrame`, `setInterval`, `setTimeout`, canvas/WebGL/physics components, media elements, GSAP timelines/tweens, and existing visibility utilities. - Search effect cleanup for event listeners, observers, RAF loops, intervals, timers, external scripts, media streams, WebGL textures/materials/geometries/renderers, and async work that can complete after unmount. - If the worktree is dirty, plan narrow staging from the start.
2. Capture a baseline in the browser. - Open the exact route the user named. - Profile at top, mid-page, footer/lower content, and one mobile viewport when layout could differ. - Count CSS animations by computed `animationName`, `animationPlayState`, and visibility. Include `::before` and `::after`. - Inspect canvases/WebGL elements separately; CSS profiling does not prove RAF loops have stopped. - Record which animation names are running offscreen and the DOM owners responsible. - For memory/leak asks, also record element/canvas/image/iframe counts, exposed JS heap metrics when available, an idle sample after 10-30 seconds, and a short route-cycle sample. If heap APIs return `null` or the Browser sandbox blocks monkey-patching, say so and rely on stable observable counts plus source audit. - Keep stress tests bounded. A Browser tab crash during profiling is evidence of overload, but do not over-attribute the cause unless reproduced by a minimal test. - See `references/browser-profiling.md` for a reusable Codex Browser evaluator.
3. Patch the smallest owner that controls the motion. - Prefer an existing page reveal/visibility hook if the app has one. - Otherwise add an `IntersectionObserver` that toggles a stable class such as `is-offscreen` on sections and animated child elements. - Pause CSS animations with targeted rules:
```css main > section.is-offscreen .expensive-animation, .expensive-animation.is-offscreen { animation-play-state: paused !important; } ```
- For repeated cards or placeholders, observe the card shell and the animated descendants, not the whole document. - For marquee/ticker tracks, pause the track when its section is offscreen. - For skeleton loaders and pseudo-element glimmers, include `::before` and `::after` pause selectors where needed. - For canvas/WebGL/physics loops, gate the RAF loop directly: - Start when the canvas/container intersects. - Cancel `requestAnimationFrame` when offscreen. - Resume on re-entry. - Disconnect observers and cancel frames on cleanup. - Add a non-visual debug marker such as `data-animation-active` when it helps browser verification. - Respect `prefers-reduced-motion` if the component already does, and avoid introducing React render loops for scroll/animation state. - For leak hardening: - Clear every timeout/interval created by the effect. - Cancel RAF before unmount and before restarting a loop. - Disconnect `IntersectionObserver`, `ResizeObserver`, `MutationObserver`, and custom subscriptions. - Remove global/window/document listeners with the same handler reference. - Dispose Three/WebGL textures, materials, geometries, renderers, and remove renderer DOM nodes. - Kill GSAP tweens/timelines for DOM nodes and mutable objects such as shader uniforms. - Stop media streams and pause detached video/audio sources. - Guard async loaders with an `isDisposed` flag and dispose loaded resources if they resolve after unmount. - In React cleanup, capture `ref.current` values inside the effect before returning cleanup if lint warns the ref may change. - Cap physics or simulation frame deltas after visibility pauses so delayed frames do not run oversized updates.
4. Verify behavior, not just builds. - Reload the route and rerun the same top/mid/footer/mobile profiles. - Target result: `offscreenRunningCount: 0` for the page sections under test. - Confirm visible animations still run or resume when scrolled into view. - Confirm RAF/canvas loops report inactive offscreen and active in view, or otherwise prove cancellation from source/runtime state. - For leak audits, compare before/after route cycles and idle samples. DOM/canvas/image counts should return to the same baseline after repeated navigation, allowing for small expected async content changes. - Exercise a normal page interaction such as search/filter/navigation so the observer does not break dynamic content. - Check fresh-tab console warnings/errors.
5. Run local checks. - Use the repo's normal gates. For React/Vite apps this is often:
```bash git diff --check npm run lint npm run build ```
- Mention known non-fatal warnings separately from failures.
6. Commit narrowly when requested by repo/user instructions. - If unrelated dirty changes exist, use an isolated index:
```bash rm -f /tmp/<task>-index GIT_INDEX_FILE=/tmp/<task>-index git read-tree HEAD # Apply only the intended hunks to the temporary index. GIT_INDEX_FILE=/tmp/<task>-index git diff --cached --check GIT_INDEX_FILE=/tmp/<task>-index git commit -m "Pause offscreen <page> animations" git restore --staged <files> 2>/dev/null || true ```
- Never stage broad files from a dirty worktree unless every hunk belongs to the task.
7. Report with evidence. - Lead with findings: what was still running, what looked leak-prone, and what could not be measured. - Separate source-audit risks from live Browser measurements. - Include the exact sampled route(s), offscreen animation counts, DOM/canvas count stability, route-cycle result, and local checks. - State limitations plainly, especially unavailable heap counters or blocked Browser instrumentation.
## Good Fix Patterns
- Section-level `is-offscreen` plus element-level `is-offscreen` for long sections where below-the-fold child animations can still run. - Shared visibility selector constants per route, such as `COURSES_PAGE_ANIMATION_VISIBILITY_SELECTOR`. - `IntersectionObserver` thresholds around `0.01` for animation gating. - Direct RAF loop control for WebGL/canvas effects; CSS `animation-play-state` cannot pause JavaScript render loops. - Frame delta caps for physics loops that resume after a paused or delayed frame. - Captured cleanup nodes for React refs used by GSAP/WebGL effects. - `isDisposed` guards for image/video/texture/data loaders that may resolve after unmount. - Short idle and route-cycle probes to catch accumulating DOM nodes, canvases, iframes, or unreleased media.
## Avoid
- Removing all animations to make the profile pass. - Pausing visible hero motion because an ancestor selector is too broad. - Assuming `animation-play-state` covers pseudo-elements or JavaScript RAF loops. - Trusting a single top-of-page measurement on long pages. - Treating unavailable heap counters as proof there is no memory leak. - Running unbounded stress loops in the Browser; use bounded cycles and record crashes without overstating causality. - Using screenshots alone as performance proof. - Letting unrelated local hunks ride along in the commit.
Source provenance
Decision snapshot
5,727 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for optimize-web-animations, ready for a manual X post.
A practical pick for a web workflow: optimize-web-animations: Profile, audit, and optimize frontend page performance with emphasis on animation work, memory-leak risks, long-session slo... 5.7K stars https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=x
Listing + install path for optimize-web-animations: https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=x Install: npx skills add MengTo/Skills --skill optimize-web-animations
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to MengTo but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/mengto-optimize-web-animations/audit)
[](https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)MengTo
@mengto
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
16.3K StarsMaigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
32.9K StarsNuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
29.2K StarsInfisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
27.4K StarsSandbox only
Install targets
Codex install prompt
Install the "optimize-web-animations" agent skill from https://github.com/MengTo/Skills/tree/main/agent-skills/codex/optimize-web-animations. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: 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. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"mengto-optimize-web-animations","task":"Install optimize-web-animations","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Testing and QA
I need my agent to test a web app, reproduce bugs, and verify fixes.
Agent fit
Claude Code + OpenAI Agents + Browser agents
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add MengTo/Skills --skill optimize-web-animations
Maintenance
fresh
8d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
5.7K
85/100 Quality · 80/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
ExcellentHigh-confidence pick with strong adoption and healthy maintenance signals.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
5.7K GitHub stars
Repo activity
5.7K stars, 689 forks
Maintenance
8d since push
License
MIT
Install
npx skills add MengTo/Skills --skill optimize-web-animations
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add MengTo/Skills --skill optimize-web-animationsDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20optimize-web-animations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20optimize-web-animations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/mengto-optimize-web-animations/install
Agent should check
Copy prompt
Task: Use optimize-web-animations in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20optimize-web-animations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/mengto-optimize-web-animations/install
Install command: npx skills add MengTo/Skills --skill optimize-web-animations
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/mengto-optimize-web-animations/install
LLM text format
/api/skills/mengto-optimize-web-animations/install?format=text
Find alternatives
/api/skills/search?q=optimize-web-animations&limit=3
Agent prompt
Use optimize-web-animations for this task. Review https://www.openagentskill.com/api/skills/mengto-optimize-web-animations/install, then install with: npx skills add MengTo/Skills --skill optimize-web-animationsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/mengto-optimize-web-animations
LLM text
/api/registry/manifest/mengto-optimize-web-animations?format=text
Install alias
/api/registry/install/mengto-optimize-web-animations
Recommend
/api/registry/recommend?task=Use%20optimize-web-animations%20in%20an%20agent%20workflow&limit=3
Agent fit
Browser automation
Use-case tags
Platforms
Claude Code, OpenAI Agents, Browser agents
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Browser automation
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS5.7K GitHub stars
Stars/forks activity
PASS5.7K stars, 689 forks; issue activity unavailable in current metadata
Recent maintenance
PASS8d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
High-confidence pick with strong adoption and healthy maintenance signals.
Workflow fit
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Verify behavior
I need my agent to test a web app, reproduce bugs, and verify fixes.
Workflow fit
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Alternative shortlist
Similar skills that may fit this task.
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
Infisical is the open-source platform for secrets, certificates, and privileged access management.
--- name: optimize-web-animations description: 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. ---
# Optimize Web Animations
## Core Rule
Measure the real page before editing. The goal is not to remove motion; it is to make offscreen work stop, visible motion resume correctly, and route/unmount cleanup release long-lived resources.
Use Codex Browser when available, especially for localhost pages. Do not use Chrome unless the user explicitly asks for it.
## Workflow
1. Inspect repo context. - Read `AGENTS.md` or local instructions. - Run `git status --short` early. - Find page components, animation hooks, CSS keyframes, `requestAnimationFrame`, `setInterval`, `setTimeout`, canvas/WebGL/physics components, media elements, GSAP timelines/tweens, and existing visibility utilities. - Search effect cleanup for event listeners, observers, RAF loops, intervals, timers, external scripts, media streams, WebGL textures/materials/geometries/renderers, and async work that can complete after unmount. - If the worktree is dirty, plan narrow staging from the start.
2. Capture a baseline in the browser. - Open the exact route the user named. - Profile at top, mid-page, footer/lower content, and one mobile viewport when layout could differ. - Count CSS animations by computed `animationName`, `animationPlayState`, and visibility. Include `::before` and `::after`. - Inspect canvases/WebGL elements separately; CSS profiling does not prove RAF loops have stopped. - Record which animation names are running offscreen and the DOM owners responsible. - For memory/leak asks, also record element/canvas/image/iframe counts, exposed JS heap metrics when available, an idle sample after 10-30 seconds, and a short route-cycle sample. If heap APIs return `null` or the Browser sandbox blocks monkey-patching, say so and rely on stable observable counts plus source audit. - Keep stress tests bounded. A Browser tab crash during profiling is evidence of overload, but do not over-attribute the cause unless reproduced by a minimal test. - See `references/browser-profiling.md` for a reusable Codex Browser evaluator.
3. Patch the smallest owner that controls the motion. - Prefer an existing page reveal/visibility hook if the app has one. - Otherwise add an `IntersectionObserver` that toggles a stable class such as `is-offscreen` on sections and animated child elements. - Pause CSS animations with targeted rules:
```css main > section.is-offscreen .expensive-animation, .expensive-animation.is-offscreen { animation-play-state: paused !important; } ```
- For repeated cards or placeholders, observe the card shell and the animated descendants, not the whole document. - For marquee/ticker tracks, pause the track when its section is offscreen. - For skeleton loaders and pseudo-element glimmers, include `::before` and `::after` pause selectors where needed. - For canvas/WebGL/physics loops, gate the RAF loop directly: - Start when the canvas/container intersects. - Cancel `requestAnimationFrame` when offscreen. - Resume on re-entry. - Disconnect observers and cancel frames on cleanup. - Add a non-visual debug marker such as `data-animation-active` when it helps browser verification. - Respect `prefers-reduced-motion` if the component already does, and avoid introducing React render loops for scroll/animation state. - For leak hardening: - Clear every timeout/interval created by the effect. - Cancel RAF before unmount and before restarting a loop. - Disconnect `IntersectionObserver`, `ResizeObserver`, `MutationObserver`, and custom subscriptions. - Remove global/window/document listeners with the same handler reference. - Dispose Three/WebGL textures, materials, geometries, renderers, and remove renderer DOM nodes. - Kill GSAP tweens/timelines for DOM nodes and mutable objects such as shader uniforms. - Stop media streams and pause detached video/audio sources. - Guard async loaders with an `isDisposed` flag and dispose loaded resources if they resolve after unmount. - In React cleanup, capture `ref.current` values inside the effect before returning cleanup if lint warns the ref may change. - Cap physics or simulation frame deltas after visibility pauses so delayed frames do not run oversized updates.
4. Verify behavior, not just builds. - Reload the route and rerun the same top/mid/footer/mobile profiles. - Target result: `offscreenRunningCount: 0` for the page sections under test. - Confirm visible animations still run or resume when scrolled into view. - Confirm RAF/canvas loops report inactive offscreen and active in view, or otherwise prove cancellation from source/runtime state. - For leak audits, compare before/after route cycles and idle samples. DOM/canvas/image counts should return to the same baseline after repeated navigation, allowing for small expected async content changes. - Exercise a normal page interaction such as search/filter/navigation so the observer does not break dynamic content. - Check fresh-tab console warnings/errors.
5. Run local checks. - Use the repo's normal gates. For React/Vite apps this is often:
```bash git diff --check npm run lint npm run build ```
- Mention known non-fatal warnings separately from failures.
6. Commit narrowly when requested by repo/user instructions. - If unrelated dirty changes exist, use an isolated index:
```bash rm -f /tmp/<task>-index GIT_INDEX_FILE=/tmp/<task>-index git read-tree HEAD # Apply only the intended hunks to the temporary index. GIT_INDEX_FILE=/tmp/<task>-index git diff --cached --check GIT_INDEX_FILE=/tmp/<task>-index git commit -m "Pause offscreen <page> animations" git restore --staged <files> 2>/dev/null || true ```
- Never stage broad files from a dirty worktree unless every hunk belongs to the task.
7. Report with evidence. - Lead with findings: what was still running, what looked leak-prone, and what could not be measured. - Separate source-audit risks from live Browser measurements. - Include the exact sampled route(s), offscreen animation counts, DOM/canvas count stability, route-cycle result, and local checks. - State limitations plainly, especially unavailable heap counters or blocked Browser instrumentation.
## Good Fix Patterns
- Section-level `is-offscreen` plus element-level `is-offscreen` for long sections where below-the-fold child animations can still run. - Shared visibility selector constants per route, such as `COURSES_PAGE_ANIMATION_VISIBILITY_SELECTOR`. - `IntersectionObserver` thresholds around `0.01` for animation gating. - Direct RAF loop control for WebGL/canvas effects; CSS `animation-play-state` cannot pause JavaScript render loops. - Frame delta caps for physics loops that resume after a paused or delayed frame. - Captured cleanup nodes for React refs used by GSAP/WebGL effects. - `isDisposed` guards for image/video/texture/data loaders that may resolve after unmount. - Short idle and route-cycle probes to catch accumulating DOM nodes, canvases, iframes, or unreleased media.
## Avoid
- Removing all animations to make the profile pass. - Pausing visible hero motion because an ancestor selector is too broad. - Assuming `animation-play-state` covers pseudo-elements or JavaScript RAF loops. - Trusting a single top-of-page measurement on long pages. - Treating unavailable heap counters as proof there is no memory leak. - Running unbounded stress loops in the Browser; use bounded cycles and record crashes without overstating causality. - Using screenshots alone as performance proof. - Letting unrelated local hunks ride along in the commit.
Source provenance
Decision snapshot
5,727 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for optimize-web-animations, ready for a manual X post.
A practical pick for a web workflow: optimize-web-animations: Profile, audit, and optimize frontend page performance with emphasis on animation work, memory-leak risks, long-session slo... 5.7K stars https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=x
Listing + install path for optimize-web-animations: https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=x Install: npx skills add MengTo/Skills --skill optimize-web-animations
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to MengTo but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/mengto-optimize-web-animations/audit)
[](https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)MengTo
@mengto
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
16.3K StarsMaigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
32.9K StarsNuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
29.2K StarsInfisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
27.4K StarsSandbox only
Install targets
Codex install prompt
Install the "optimize-web-animations" agent skill from https://github.com/MengTo/Skills/tree/main/agent-skills/codex/optimize-web-animations. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: 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. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"mengto-optimize-web-animations","task":"Install optimize-web-animations","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Testing and QA
I need my agent to test a web app, reproduce bugs, and verify fixes.
Agent fit
Claude Code + OpenAI Agents + Browser agents
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add MengTo/Skills --skill optimize-web-animations
Maintenance
fresh
8d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
5.7K
85/100 Quality · 80/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
ExcellentHigh-confidence pick with strong adoption and healthy maintenance signals.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
5.7K GitHub stars
Repo activity
5.7K stars, 689 forks
Maintenance
8d since push
License
MIT
Install
npx skills add MengTo/Skills --skill optimize-web-animations
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add MengTo/Skills --skill optimize-web-animationsDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20optimize-web-animations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20optimize-web-animations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/mengto-optimize-web-animations/install
Agent should check
Copy prompt
Task: Use optimize-web-animations in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20optimize-web-animations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/mengto-optimize-web-animations/install
Install command: npx skills add MengTo/Skills --skill optimize-web-animations
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/mengto-optimize-web-animations/install
LLM text format
/api/skills/mengto-optimize-web-animations/install?format=text
Find alternatives
/api/skills/search?q=optimize-web-animations&limit=3
Agent prompt
Use optimize-web-animations for this task. Review https://www.openagentskill.com/api/skills/mengto-optimize-web-animations/install, then install with: npx skills add MengTo/Skills --skill optimize-web-animationsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/mengto-optimize-web-animations
LLM text
/api/registry/manifest/mengto-optimize-web-animations?format=text
Install alias
/api/registry/install/mengto-optimize-web-animations
Recommend
/api/registry/recommend?task=Use%20optimize-web-animations%20in%20an%20agent%20workflow&limit=3
Agent fit
Browser automation
Use-case tags
Platforms
Claude Code, OpenAI Agents, Browser agents
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Browser automation
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS5.7K GitHub stars
Stars/forks activity
PASS5.7K stars, 689 forks; issue activity unavailable in current metadata
Recent maintenance
PASS8d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
High-confidence pick with strong adoption and healthy maintenance signals.
Workflow fit
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Verify behavior
I need my agent to test a web app, reproduce bugs, and verify fixes.
Workflow fit
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Alternative shortlist
Similar skills that may fit this task.
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
Infisical is the open-source platform for secrets, certificates, and privileged access management.
--- name: optimize-web-animations description: 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. ---
# Optimize Web Animations
## Core Rule
Measure the real page before editing. The goal is not to remove motion; it is to make offscreen work stop, visible motion resume correctly, and route/unmount cleanup release long-lived resources.
Use Codex Browser when available, especially for localhost pages. Do not use Chrome unless the user explicitly asks for it.
## Workflow
1. Inspect repo context. - Read `AGENTS.md` or local instructions. - Run `git status --short` early. - Find page components, animation hooks, CSS keyframes, `requestAnimationFrame`, `setInterval`, `setTimeout`, canvas/WebGL/physics components, media elements, GSAP timelines/tweens, and existing visibility utilities. - Search effect cleanup for event listeners, observers, RAF loops, intervals, timers, external scripts, media streams, WebGL textures/materials/geometries/renderers, and async work that can complete after unmount. - If the worktree is dirty, plan narrow staging from the start.
2. Capture a baseline in the browser. - Open the exact route the user named. - Profile at top, mid-page, footer/lower content, and one mobile viewport when layout could differ. - Count CSS animations by computed `animationName`, `animationPlayState`, and visibility. Include `::before` and `::after`. - Inspect canvases/WebGL elements separately; CSS profiling does not prove RAF loops have stopped. - Record which animation names are running offscreen and the DOM owners responsible. - For memory/leak asks, also record element/canvas/image/iframe counts, exposed JS heap metrics when available, an idle sample after 10-30 seconds, and a short route-cycle sample. If heap APIs return `null` or the Browser sandbox blocks monkey-patching, say so and rely on stable observable counts plus source audit. - Keep stress tests bounded. A Browser tab crash during profiling is evidence of overload, but do not over-attribute the cause unless reproduced by a minimal test. - See `references/browser-profiling.md` for a reusable Codex Browser evaluator.
3. Patch the smallest owner that controls the motion. - Prefer an existing page reveal/visibility hook if the app has one. - Otherwise add an `IntersectionObserver` that toggles a stable class such as `is-offscreen` on sections and animated child elements. - Pause CSS animations with targeted rules:
```css main > section.is-offscreen .expensive-animation, .expensive-animation.is-offscreen { animation-play-state: paused !important; } ```
- For repeated cards or placeholders, observe the card shell and the animated descendants, not the whole document. - For marquee/ticker tracks, pause the track when its section is offscreen. - For skeleton loaders and pseudo-element glimmers, include `::before` and `::after` pause selectors where needed. - For canvas/WebGL/physics loops, gate the RAF loop directly: - Start when the canvas/container intersects. - Cancel `requestAnimationFrame` when offscreen. - Resume on re-entry. - Disconnect observers and cancel frames on cleanup. - Add a non-visual debug marker such as `data-animation-active` when it helps browser verification. - Respect `prefers-reduced-motion` if the component already does, and avoid introducing React render loops for scroll/animation state. - For leak hardening: - Clear every timeout/interval created by the effect. - Cancel RAF before unmount and before restarting a loop. - Disconnect `IntersectionObserver`, `ResizeObserver`, `MutationObserver`, and custom subscriptions. - Remove global/window/document listeners with the same handler reference. - Dispose Three/WebGL textures, materials, geometries, renderers, and remove renderer DOM nodes. - Kill GSAP tweens/timelines for DOM nodes and mutable objects such as shader uniforms. - Stop media streams and pause detached video/audio sources. - Guard async loaders with an `isDisposed` flag and dispose loaded resources if they resolve after unmount. - In React cleanup, capture `ref.current` values inside the effect before returning cleanup if lint warns the ref may change. - Cap physics or simulation frame deltas after visibility pauses so delayed frames do not run oversized updates.
4. Verify behavior, not just builds. - Reload the route and rerun the same top/mid/footer/mobile profiles. - Target result: `offscreenRunningCount: 0` for the page sections under test. - Confirm visible animations still run or resume when scrolled into view. - Confirm RAF/canvas loops report inactive offscreen and active in view, or otherwise prove cancellation from source/runtime state. - For leak audits, compare before/after route cycles and idle samples. DOM/canvas/image counts should return to the same baseline after repeated navigation, allowing for small expected async content changes. - Exercise a normal page interaction such as search/filter/navigation so the observer does not break dynamic content. - Check fresh-tab console warnings/errors.
5. Run local checks. - Use the repo's normal gates. For React/Vite apps this is often:
```bash git diff --check npm run lint npm run build ```
- Mention known non-fatal warnings separately from failures.
6. Commit narrowly when requested by repo/user instructions. - If unrelated dirty changes exist, use an isolated index:
```bash rm -f /tmp/<task>-index GIT_INDEX_FILE=/tmp/<task>-index git read-tree HEAD # Apply only the intended hunks to the temporary index. GIT_INDEX_FILE=/tmp/<task>-index git diff --cached --check GIT_INDEX_FILE=/tmp/<task>-index git commit -m "Pause offscreen <page> animations" git restore --staged <files> 2>/dev/null || true ```
- Never stage broad files from a dirty worktree unless every hunk belongs to the task.
7. Report with evidence. - Lead with findings: what was still running, what looked leak-prone, and what could not be measured. - Separate source-audit risks from live Browser measurements. - Include the exact sampled route(s), offscreen animation counts, DOM/canvas count stability, route-cycle result, and local checks. - State limitations plainly, especially unavailable heap counters or blocked Browser instrumentation.
## Good Fix Patterns
- Section-level `is-offscreen` plus element-level `is-offscreen` for long sections where below-the-fold child animations can still run. - Shared visibility selector constants per route, such as `COURSES_PAGE_ANIMATION_VISIBILITY_SELECTOR`. - `IntersectionObserver` thresholds around `0.01` for animation gating. - Direct RAF loop control for WebGL/canvas effects; CSS `animation-play-state` cannot pause JavaScript render loops. - Frame delta caps for physics loops that resume after a paused or delayed frame. - Captured cleanup nodes for React refs used by GSAP/WebGL effects. - `isDisposed` guards for image/video/texture/data loaders that may resolve after unmount. - Short idle and route-cycle probes to catch accumulating DOM nodes, canvases, iframes, or unreleased media.
## Avoid
- Removing all animations to make the profile pass. - Pausing visible hero motion because an ancestor selector is too broad. - Assuming `animation-play-state` covers pseudo-elements or JavaScript RAF loops. - Trusting a single top-of-page measurement on long pages. - Treating unavailable heap counters as proof there is no memory leak. - Running unbounded stress loops in the Browser; use bounded cycles and record crashes without overstating causality. - Using screenshots alone as performance proof. - Letting unrelated local hunks ride along in the commit.
Source provenance
Decision snapshot
5,727 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for optimize-web-animations, ready for a manual X post.
A practical pick for a web workflow: optimize-web-animations: Profile, audit, and optimize frontend page performance with emphasis on animation work, memory-leak risks, long-session slo... 5.7K stars https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=x
Listing + install path for optimize-web-animations: https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=x Install: npx skills add MengTo/Skills --skill optimize-web-animations
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to MengTo but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/mengto-optimize-web-animations/audit)
[](https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)MengTo
@mengto
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
16.3K StarsMaigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
32.9K StarsNuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
29.2K StarsInfisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
27.4K StarsSandbox only
Install targets
Codex install prompt
Install the "optimize-web-animations" agent skill from https://github.com/MengTo/Skills/tree/main/agent-skills/codex/optimize-web-animations. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: 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. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"mengto-optimize-web-animations","task":"Install optimize-web-animations","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Testing and QA
I need my agent to test a web app, reproduce bugs, and verify fixes.
Agent fit
Claude Code + OpenAI Agents + Browser agents
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add MengTo/Skills --skill optimize-web-animations
Maintenance
fresh
8d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
5.7K
85/100 Quality · 80/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
ExcellentHigh-confidence pick with strong adoption and healthy maintenance signals.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
5.7K GitHub stars
Repo activity
5.7K stars, 689 forks
Maintenance
8d since push
License
MIT
Install
npx skills add MengTo/Skills --skill optimize-web-animations
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add MengTo/Skills --skill optimize-web-animationsDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20optimize-web-animations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20optimize-web-animations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/mengto-optimize-web-animations/install
Agent should check
Copy prompt
Task: Use optimize-web-animations in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20optimize-web-animations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/mengto-optimize-web-animations/install
Install command: npx skills add MengTo/Skills --skill optimize-web-animations
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/mengto-optimize-web-animations/install
LLM text format
/api/skills/mengto-optimize-web-animations/install?format=text
Find alternatives
/api/skills/search?q=optimize-web-animations&limit=3
Agent prompt
Use optimize-web-animations for this task. Review https://www.openagentskill.com/api/skills/mengto-optimize-web-animations/install, then install with: npx skills add MengTo/Skills --skill optimize-web-animationsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/mengto-optimize-web-animations
LLM text
/api/registry/manifest/mengto-optimize-web-animations?format=text
Install alias
/api/registry/install/mengto-optimize-web-animations
Recommend
/api/registry/recommend?task=Use%20optimize-web-animations%20in%20an%20agent%20workflow&limit=3
Agent fit
Browser automation
Use-case tags
Platforms
Claude Code, OpenAI Agents, Browser agents
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Browser automation
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS5.7K GitHub stars
Stars/forks activity
PASS5.7K stars, 689 forks; issue activity unavailable in current metadata
Recent maintenance
PASS8d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
High-confidence pick with strong adoption and healthy maintenance signals.
Workflow fit
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Verify behavior
I need my agent to test a web app, reproduce bugs, and verify fixes.
Workflow fit
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Alternative shortlist
Similar skills that may fit this task.
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
Infisical is the open-source platform for secrets, certificates, and privileged access management.
--- name: optimize-web-animations description: 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. ---
# Optimize Web Animations
## Core Rule
Measure the real page before editing. The goal is not to remove motion; it is to make offscreen work stop, visible motion resume correctly, and route/unmount cleanup release long-lived resources.
Use Codex Browser when available, especially for localhost pages. Do not use Chrome unless the user explicitly asks for it.
## Workflow
1. Inspect repo context. - Read `AGENTS.md` or local instructions. - Run `git status --short` early. - Find page components, animation hooks, CSS keyframes, `requestAnimationFrame`, `setInterval`, `setTimeout`, canvas/WebGL/physics components, media elements, GSAP timelines/tweens, and existing visibility utilities. - Search effect cleanup for event listeners, observers, RAF loops, intervals, timers, external scripts, media streams, WebGL textures/materials/geometries/renderers, and async work that can complete after unmount. - If the worktree is dirty, plan narrow staging from the start.
2. Capture a baseline in the browser. - Open the exact route the user named. - Profile at top, mid-page, footer/lower content, and one mobile viewport when layout could differ. - Count CSS animations by computed `animationName`, `animationPlayState`, and visibility. Include `::before` and `::after`. - Inspect canvases/WebGL elements separately; CSS profiling does not prove RAF loops have stopped. - Record which animation names are running offscreen and the DOM owners responsible. - For memory/leak asks, also record element/canvas/image/iframe counts, exposed JS heap metrics when available, an idle sample after 10-30 seconds, and a short route-cycle sample. If heap APIs return `null` or the Browser sandbox blocks monkey-patching, say so and rely on stable observable counts plus source audit. - Keep stress tests bounded. A Browser tab crash during profiling is evidence of overload, but do not over-attribute the cause unless reproduced by a minimal test. - See `references/browser-profiling.md` for a reusable Codex Browser evaluator.
3. Patch the smallest owner that controls the motion. - Prefer an existing page reveal/visibility hook if the app has one. - Otherwise add an `IntersectionObserver` that toggles a stable class such as `is-offscreen` on sections and animated child elements. - Pause CSS animations with targeted rules:
```css main > section.is-offscreen .expensive-animation, .expensive-animation.is-offscreen { animation-play-state: paused !important; } ```
- For repeated cards or placeholders, observe the card shell and the animated descendants, not the whole document. - For marquee/ticker tracks, pause the track when its section is offscreen. - For skeleton loaders and pseudo-element glimmers, include `::before` and `::after` pause selectors where needed. - For canvas/WebGL/physics loops, gate the RAF loop directly: - Start when the canvas/container intersects. - Cancel `requestAnimationFrame` when offscreen. - Resume on re-entry. - Disconnect observers and cancel frames on cleanup. - Add a non-visual debug marker such as `data-animation-active` when it helps browser verification. - Respect `prefers-reduced-motion` if the component already does, and avoid introducing React render loops for scroll/animation state. - For leak hardening: - Clear every timeout/interval created by the effect. - Cancel RAF before unmount and before restarting a loop. - Disconnect `IntersectionObserver`, `ResizeObserver`, `MutationObserver`, and custom subscriptions. - Remove global/window/document listeners with the same handler reference. - Dispose Three/WebGL textures, materials, geometries, renderers, and remove renderer DOM nodes. - Kill GSAP tweens/timelines for DOM nodes and mutable objects such as shader uniforms. - Stop media streams and pause detached video/audio sources. - Guard async loaders with an `isDisposed` flag and dispose loaded resources if they resolve after unmount. - In React cleanup, capture `ref.current` values inside the effect before returning cleanup if lint warns the ref may change. - Cap physics or simulation frame deltas after visibility pauses so delayed frames do not run oversized updates.
4. Verify behavior, not just builds. - Reload the route and rerun the same top/mid/footer/mobile profiles. - Target result: `offscreenRunningCount: 0` for the page sections under test. - Confirm visible animations still run or resume when scrolled into view. - Confirm RAF/canvas loops report inactive offscreen and active in view, or otherwise prove cancellation from source/runtime state. - For leak audits, compare before/after route cycles and idle samples. DOM/canvas/image counts should return to the same baseline after repeated navigation, allowing for small expected async content changes. - Exercise a normal page interaction such as search/filter/navigation so the observer does not break dynamic content. - Check fresh-tab console warnings/errors.
5. Run local checks. - Use the repo's normal gates. For React/Vite apps this is often:
```bash git diff --check npm run lint npm run build ```
- Mention known non-fatal warnings separately from failures.
6. Commit narrowly when requested by repo/user instructions. - If unrelated dirty changes exist, use an isolated index:
```bash rm -f /tmp/<task>-index GIT_INDEX_FILE=/tmp/<task>-index git read-tree HEAD # Apply only the intended hunks to the temporary index. GIT_INDEX_FILE=/tmp/<task>-index git diff --cached --check GIT_INDEX_FILE=/tmp/<task>-index git commit -m "Pause offscreen <page> animations" git restore --staged <files> 2>/dev/null || true ```
- Never stage broad files from a dirty worktree unless every hunk belongs to the task.
7. Report with evidence. - Lead with findings: what was still running, what looked leak-prone, and what could not be measured. - Separate source-audit risks from live Browser measurements. - Include the exact sampled route(s), offscreen animation counts, DOM/canvas count stability, route-cycle result, and local checks. - State limitations plainly, especially unavailable heap counters or blocked Browser instrumentation.
## Good Fix Patterns
- Section-level `is-offscreen` plus element-level `is-offscreen` for long sections where below-the-fold child animations can still run. - Shared visibility selector constants per route, such as `COURSES_PAGE_ANIMATION_VISIBILITY_SELECTOR`. - `IntersectionObserver` thresholds around `0.01` for animation gating. - Direct RAF loop control for WebGL/canvas effects; CSS `animation-play-state` cannot pause JavaScript render loops. - Frame delta caps for physics loops that resume after a paused or delayed frame. - Captured cleanup nodes for React refs used by GSAP/WebGL effects. - `isDisposed` guards for image/video/texture/data loaders that may resolve after unmount. - Short idle and route-cycle probes to catch accumulating DOM nodes, canvases, iframes, or unreleased media.
## Avoid
- Removing all animations to make the profile pass. - Pausing visible hero motion because an ancestor selector is too broad. - Assuming `animation-play-state` covers pseudo-elements or JavaScript RAF loops. - Trusting a single top-of-page measurement on long pages. - Treating unavailable heap counters as proof there is no memory leak. - Running unbounded stress loops in the Browser; use bounded cycles and record crashes without overstating causality. - Using screenshots alone as performance proof. - Letting unrelated local hunks ride along in the commit.
Source provenance
Decision snapshot
5,727 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for optimize-web-animations, ready for a manual X post.
A practical pick for a web workflow: optimize-web-animations: Profile, audit, and optimize frontend page performance with emphasis on animation work, memory-leak risks, long-session slo... 5.7K stars https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=x
Listing + install path for optimize-web-animations: https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=x Install: npx skills add MengTo/Skills --skill optimize-web-animations
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to MengTo but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/mengto-optimize-web-animations/audit)
[](https://www.openagentskill.com/skills/mengto-optimize-web-animations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)MengTo
@mengto
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
16.3K StarsMaigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
32.9K StarsNuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
29.2K StarsInfisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
27.4K StarsPermission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Usable metadata, review docs
Risk summary
Install readiness
Permission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Usable metadata, review docs
Risk summary
Install readiness
Permission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Usable metadata, review docs
Risk summary
Install readiness
Permission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Usable metadata, review docs
Risk summary
Install readiness