Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

elite-performance精英表现

Agent Skill

elite-performance 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

428

周安装

18

GitHub Stars

公开资料未说明

下载量

150
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:elite-performance(精英表现)
来源仓库:https://github.com/rshvr/elite-web-design
仓库路径:skills/elite-performance
安装命令:
npx skills add https://github.com/rshvr/elite-web-design --skill elite-performance
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/rshvr/elite-web-design --skill elite-performance

简介

elite-performance 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理时使用。
  • 可通过 npx skills add 命令从指定 GitHub 仓库安装,建议确认权限和维护状态后再使用。
  • 使用前需检查是否会触发联网、命令执行或文件读写操作,确保符合项目安全规范。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Elite Performance

Maintain 60fps animations while hitting Core Web Vitals targets.

Quick Reference

TopicReference File
Vite Setupvite-setup.md
Animation Performanceanimation-performance.md
Asset Optimizationasset-optimization.md
Debuggingdebugging.md

Performance Budget (2026)

Core Web Vitals Targets

MetricGoodNeeds WorkPoor
LCP (Largest Contentful Paint)≤ 2.5s≤ 4.0s> 4.0s
INP (Interaction to Next Paint)≤ 200ms≤ 500ms> 500ms
CLS (Cumulative Layout Shift)≤ 0.1≤ 0.25> 0.25

Animation Targets

MetricTarget
Frame rate60fps (16.67ms/frame)
Frame budget< 10ms for JS/layout
Animation start< 100ms response
Scroll jank0 dropped frames

Bundle Targets

AssetTarget
Initial JS< 100KB (gzipped)
Initial CSS< 50KB (gzipped)
GSAP core~25KB (gzipped)
Total initial< 200KB (gzipped)

GPU-Accelerated Properties

ONLY Animate These

/* GPU composited - FAST */
transform: translateX() translateY() translateZ()
           scale() rotate() skew();
opacity: 0 to 1;
filter: blur() brightness() contrast();

/* Will trigger compositor layer */
will-change: transform, opacity;

NEVER Animate These

/* Triggers layout - SLOW */
width, height
top, right, bottom, left
margin, padding
font-size
border-width

/* Triggers paint - SLOW */
background-color, color
border-color
box-shadow
text-shadow

Transform vs Position

/* BAD - Triggers layout every frame */
.element {
  animation: moveLeft 1s;
}
@keyframes moveLeft {
  to { left: 100px; }
}

/* GOOD - GPU composited */
.element {
  animation: moveLeft 1s;
}
@keyframes moveLeft {
  to { transform: translateX(100px); }
}

Quick Performance Wins

1. Lazy Load Below-Fold Content

<!-- Native lazy loading -->
<img src="hero.jpg" alt="Hero" loading="eager">
<img src="feature.jpg" alt="Feature" loading="lazy">

<!-- Intersection Observer for components -->
<div class="lazy-section" data-component="heavy-animation">
  <!-- Loaded via JS when visible -->
</div>

2. Use content-visibility

/* Skip rendering off-screen sections */
.section {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;  /* Estimated height */
}

3. Contain Expensive Effects

/* Isolate animated sections */
.animated-section {
  contain: layout style paint;
}

/* Full containment for cards */
.card {
  contain: strict;
}

4. Reduce Motion When Appropriate

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

5. Optimize Scroll Handlers

// BAD - Fires on every scroll event
window.addEventListener('scroll', handleScroll);

// GOOD - Passive listener, no preventDefault
window.addEventListener('scroll', handleScroll, { passive: true });

// BETTER - Use ScrollTrigger (already optimized)
gsap.to('.element', {
  scrollTrigger: { /* ... */ }
});

GSAP Performance

Use gsap.context() for Cleanup

// Prevents memory leaks
const ctx = gsap.context(() => {
  gsap.to('.element', { x: 100 });
  ScrollTrigger.create({ /* ... */ });
});

// On unmount
ctx.revert();

Batch ScrollTrigger Updates

// Process multiple items efficiently
ScrollTrigger.batch('.item', {
  onEnter: batch => gsap.to(batch, {
    opacity: 1,
    y: 0,
    stagger: 0.1
  })
});

Use refreshPriority

// Control refresh order
ScrollTrigger.create({
  trigger: '.section',
  refreshPriority: -1  // Refresh after others
});

Lazy ScrollTriggers

// Don't create all at once
const createTrigger = (element) => {
  ScrollTrigger.create({
    trigger: element,
    start: 'top 80%',
    onEnter: () => {
      // Create animation only when needed
      gsap.from(element, { opacity: 0, y: 50 });
    },
    once: true
  });
};

// Create triggers as needed
gsap.utils.toArray('.section').forEach(createTrigger);

CSS Animation Performance

Efficient Keyframes

/* GOOD - Only compositor properties */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* BAD - Triggers layout */
@keyframes slideIn {
  from {
    opacity: 0;
    margin-top: 30px;
  }
  to {
    opacity: 1;
    margin-top: 0;
  }
}

will-change Best Practices

/* Apply just before animation */
.card {
  transition: transform 0.3s, opacity 0.3s;
}

.card:hover {
  will-change: transform;
}

/* Remove after animation */
.card.animating {
  will-change: transform, opacity;
}

/* Never do this globally */
/* * { will-change: transform; } NEVER! */

Composite Layers

/* Force new layer when needed */
.animated-element {
  transform: translateZ(0);  /* or translate3d(0,0,0) */
}

/* Better: Use will-change temporarily */
.animating {
  will-change: transform;
}

Loading Strategy

Critical Path

<head>
  <!-- Critical CSS inline -->
  <style>/* Above-fold styles */</style>

  <!-- Preload critical assets -->
  <link rel="preload" href="hero.webp" as="image">
  <link rel="preload" href="font.woff2" as="font" crossorigin>

  <!-- Async non-critical CSS -->
  <link rel="stylesheet" href="full.css" media="print" onload="this.media='all'">
</head>

<body>
  <!-- Above-fold content -->

  <!-- Defer heavy scripts -->
  <script src="gsap.min.js" defer></script>
  <script src="app.js" defer></script>
</body>

Dynamic Imports

// Load GSAP plugins only when needed
const loadScrollTrigger = async () => {
  const { ScrollTrigger } = await import('gsap/ScrollTrigger');
  gsap.registerPlugin(ScrollTrigger);
  return ScrollTrigger;
};

// Load on interaction or visibility
const section = document.querySelector('.scroll-section');
const observer = new IntersectionObserver(async ([entry]) => {
  if (entry.isIntersecting) {
    await loadScrollTrigger();
    initScrollAnimations();
    observer.disconnect();
  }
});
observer.observe(section);

Progressive Enhancement

// Check for animation support
const supportsAnimation = 'animate' in document.documentElement;
const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;

if (supportsAnimation && !prefersReducedMotion) {
  // Load animation library
  import('./animations.js');
} else {
  // Show final states immediately
  document.querySelectorAll('.animated').forEach(el => {
    el.classList.add('animation-complete');
  });
}

Memory Management

Clean Up Animations

// Store references for cleanup
const animations = [];
const scrollTriggers = [];

function initAnimations() {
  animations.push(
    gsap.to('.element', { x: 100 })
  );

  scrollTriggers.push(
    ScrollTrigger.create({ trigger: '.section' })
  );
}

function cleanup() {
  animations.forEach(anim => anim.kill());
  scrollTriggers.forEach(st => st.kill());
  animations.length = 0;
  scrollTriggers.length = 0;
}

// Or use gsap.context()
const ctx = gsap.context(() => {
  // All animations here
});

// Cleanup
ctx.revert();

SplitText Cleanup

const splits = [];

function initTextAnimations() {
  document.querySelectorAll('.split-text').forEach(el => {
    const split = new SplitText(el, { type: 'chars' });
    splits.push(split);

    gsap.from(split.chars, {
      opacity: 0,
      y: 20,
      stagger: 0.02
    });
  });
}

function cleanup() {
  splits.forEach(split => split.revert());
  splits.length = 0;
}

Event Listener Cleanup

// Use AbortController for easy cleanup
const controller = new AbortController();

window.addEventListener('resize', handleResize, {
  signal: controller.signal
});

window.addEventListener('scroll', handleScroll, {
  passive: true,
  signal: controller.signal
});

// Cleanup all at once
function cleanup() {
  controller.abort();
}

Debugging Checklist

Performance Issues

  1. Dropped frames?

- Check DevTools Performance panel - Look for long tasks (> 50ms) - Verify only compositor properties animated

  1. Slow initial load?

- Check Network waterfall - Verify critical path optimized - Audit bundle sizes

  1. Memory leaks?

- Check Memory panel over time - Verify cleanup on navigation - Watch for detached DOM nodes

  1. Layout thrashing?

- Look for forced reflows in Performance - Batch DOM reads/writes - Use transform instead of position

Quick Checks

// Log animation frame rate
let lastTime = performance.now();
let frameCount = 0;

function measureFPS() {
  frameCount++;
  const now = performance.now();
  if (now - lastTime >= 1000) {
    console.log('FPS:', frameCount);
    frameCount = 0;
    lastTime = now;
  }
  requestAnimationFrame(measureFPS);
}
measureFPS();
// Detect layout thrashing
const originalGetComputedStyle = window.getComputedStyle;
window.getComputedStyle = function(...args) {
  console.trace('getComputedStyle called');
  return originalGetComputedStyle.apply(this, args);
};

See debugging.md for comprehensive debugging techniques.


Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.06%
按下载量换算56

Claude

33.28%
按下载量换算50

Cursor

17.58%
按下载量换算26

Gemini CLI

9.3%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills