Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计通过

performance性能

Agent Skill

performance 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

436

周安装

18

GitHub Stars

4

下载量

143
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/89jobrien/steve --skill performance

简介

performance 提供全面的性能分析、优化和测试能力,适用于识别瓶颈、内存泄漏及前端性能指标。

  • 适合在性能审计、数据库查询优化、负载测试或容量规划等场景中使用。
  • 通过分析代码、监控指标和基准测试,协助生成性能改进建议和测试方案。
  • 安装需确认权限范围,避免在生产环境直接运行,建议结合项目框架验证具体用法。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Performance

This skill provides comprehensive performance capabilities including performance analysis, optimization, load testing, stress testing, capacity planning, and framework-specific performance patterns.

When to Use This Skill

  • When identifying performance bottlenecks
  • When investigating memory leaks or high memory usage
  • When optimizing slow database queries
  • When analyzing frontend performance (Core Web Vitals, bundle size)
  • When setting up performance monitoring
  • When conducting performance audits before deployment
  • When creating load test scenarios
  • When analyzing performance under stress
  • When identifying system bottlenecks under load
  • When planning capacity
  • When setting up performance benchmarks
  • When optimizing React rendering performance
  • When reducing bundle size
  • When improving Core Web Vitals (LCP, FID, CLS)
  • When fixing memory leaks in React apps
  • When implementing advanced React patterns

What This Skill Does

  1. Performance Profiling: Analyzes CPU, memory, and network performance
  2. Bottleneck Identification: Pinpoints specific performance issues
  3. Memory Analysis: Detects memory leaks and high memory usage
  4. Database Optimization: Identifies slow queries and optimization opportunities
  5. Frontend Analysis: Analyzes bundle size, rendering performance, Core Web Vitals
  6. Load Testing: Creates and executes load test scenarios
  7. Stress Testing: Identifies breaking points and limits
  8. Capacity Planning: Analyzes scalability and capacity
  9. React Optimization: Optimizes React rendering, bundle size, and Core Web Vitals
  10. Monitoring Setup: Creates performance monitoring and alerting

How to Use

Analyze Performance

Analyze the performance of this application and identify bottlenecks
Profile the memory usage and find any leaks

Create Load Tests

Create load test scenarios for this API
Test performance under 1000 concurrent users

Optimize React Apps

Optimize this React app for better performance
Analyze bundle size and reduce it

Analysis Areas

Application Performance

Metrics to Track:

  • Response times and latency
  • Throughput (requests per second)
  • Error rates
  • CPU utilization
  • Memory usage patterns

Common Issues:

  • Slow API endpoints
  • High CPU usage
  • Memory leaks
  • Inefficient algorithms
  • Blocking operations

Database Performance

Analysis Focus:

  • Slow query identification
  • Missing indexes
  • N+1 query problems
  • Connection pool exhaustion
  • Lock contention

Tools:

  • Query execution plans (EXPLAIN ANALYZE)
  • Slow query logs
  • Database monitoring tools
  • Connection pool metrics

Frontend Performance

Core Web Vitals:

  • Largest Contentful Paint (LCP) < 2.5s
  • First Input Delay (FID) < 100ms
  • Cumulative Layout Shift (CLS) < 0.1

Bundle Analysis:

  • Bundle size optimization
  • Code splitting opportunities
  • Unused code removal
  • Asset optimization

React Performance

Rendering Optimization:

  • React.memo for component memoization
  • useMemo for expensive computations
  • useCallback for function memoization
  • Virtualization for long lists
  • Code splitting and lazy loading

Bundle Optimization:

  • Code splitting by route
  • Component lazy loading
  • Tree shaking unused code
  • Dynamic imports
  • Bundle analysis

Performance Testing

Load Testing

Purpose: Test system under expected load Metrics: Response time, throughput, error rate Tools: k6, Artillery, JMeter, Locust

Example (k6):

import http from 'k6/http';
import { check } from 'k6';

export const options = {
  stages: [
    { duration: '2m', target: 100 }, // Ramp up
    { duration: '5m', target: 100 }, // Stay at 100
    { duration: '2m', target: 200 }, // Ramp up to 200
    { duration: '5m', target: 200 }, // Stay at 200
    { duration: '2m', target: 0 },   // Ramp down
  ],
};

export default function() {
  const res = http.get('https://api.example.com/users');
  check(res, {
    'status is 200': (r) => r.status === 200,
    'response time < 500ms': (r) => r.timings.duration < 500,
  });
}

Stress Testing

Purpose: Find breaking points Metrics: Maximum capacity, failure points Approach: Gradually increase load until failure

Capacity Planning

Purpose: Determine resource needs Metrics: Resource utilization, scaling requirements Analysis: Current capacity vs. future needs

Analysis Process

1. Establish Baseline

Measure Current Performance:

  • Response time percentiles (p50, p90, p95, p99)
  • Throughput metrics
  • Error rates
  • Resource utilization (CPU, memory, network)

Set Targets:

  • Define acceptable performance thresholds
  • Set SLA targets
  • Identify critical paths

2. Identify Bottlenecks

Profiling Techniques:

  • CPU profiling to find hot functions
  • Memory profiling to find leaks
  • Network analysis for API calls
  • Database query analysis

Bottleneck Patterns:

  • Single slow operation (algorithmic complexity)
  • Many small operations (N+1 queries)
  • Resource contention (locks, connection pools)
  • Memory leaks (gradual growth)

3. Analyze Root Cause

Investigation Steps:

  1. Identify the slow operation
  2. Measure its performance
  3. Analyze why it's slow
  4. Check for optimization opportunities
  5. Verify the fix improves performance

4. Provide Optimization Recommendations

Recommendations Should Include:

  • Specific code changes
  • Before/after performance metrics
  • Implementation steps
  • Expected impact
  • Risk assessment

Examples

Example 1: API Performance Analysis

Input: API endpoint /api/users is slow

Output:

## Performance Analysis: /api/users

### Current Performance
- **Average Response Time**: 2.3s
- **P95 Response Time**: 4.1s
- **Throughput**: 45 req/s
- **Error Rate**: 2%

### Bottleneck Identified
**Issue**: N+1 query problem in user data fetching
- **Location**: `src/routes/users.js:34`
- **Pattern**: One query for users, then N queries for each user's posts

### Root Cause

// Current implementation const users = await db.users.findAll(); for (const user of users) { user.posts = await db.posts.findByUserId(user.id); // N+1 queries }


### Optimization

// Optimized with eager loading const users = await db.users.findAll({ include: [{ model: Post, as: 'posts' }] // Single query with JOIN });


### Expected Impact

- **Response Time**: 2.3s → 0.3s (87% improvement)
- **Database Queries**: 101 → 1 (99% reduction)
- **Throughput**: 45 → 200+ req/s

Example 2: React Component Optimization

Input: Optimize expensive component

Output:

## React Performance: Component Optimization

### Issue
Component re-renders on every parent update, even when props haven't changed.

### Optimization

// Before: Re-renders unnecessarily function ExpensiveComponent({ data, config }) { const processed = data .filter(item => item.active) .map(item => processComplex(item, config));

return <Chart data={processed} />; }

// After: Memoized to prevent unnecessary re-renders const ExpensiveComponent = React.memo(({ data, config }) => { const processed = useMemo(() => { return data .filter(item => item.active) .map(item => processComplex(item, config)); }, [data, config]);

return <Chart data={processed} />; });


### Impact

- Re-renders reduced: 100% → 5%
- Performance improvement: 80% faster

Reference Files

For framework-specific performance patterns and detailed guidance, load reference files as needed:

  • references/framework_patterns.md - Performance patterns for Node.js, React, databases, APIs, frontend, and monitoring strategies (from performance-analysis)
  • references/react_patterns.md - React-specific performance optimization patterns, memoization strategies, bundle optimization, and Core Web Vitals improvements
  • references/load_testing.md - Load testing and stress testing patterns, tools, scenarios, and capacity planning strategies
  • references/PERFORMANCE_ANALYSIS.template.md - Performance analysis report template with load profiles, bottlenecks, and recommendations

When analyzing performance for specific frameworks or conducting load tests, load the appropriate reference file.

Best Practices

Performance Analysis Approach

  1. Measure First: Always establish baseline metrics
  2. Profile Before Optimizing: Identify actual bottlenecks
  3. Optimize Incrementally: Make one change at a time
  4. Verify Improvements: Measure after each optimization
  5. Monitor Continuously: Set up ongoing performance monitoring

Common Optimizations

Application:

  • Optimize algorithms (reduce complexity)
  • Add caching layers
  • Use connection pooling
  • Implement request batching
  • Add rate limiting

Database:

  • Add appropriate indexes
  • Optimize queries (avoid N+1)
  • Use query result caching
  • Implement read replicas
  • Optimize connection pooling

Frontend:

  • Code splitting and lazy loading
  • Image optimization
  • Bundle size reduction
  • Minimize re-renders
  • Optimize asset loading

React:

  • Measure before optimizing
  • Memoize strategically (don't over-memoize)
  • Code split by route and feature
  • Lazy load components on demand
  • Monitor performance metrics

Monitoring Setup

Key Metrics:

  • Response time percentiles
  • Error rates
  • Throughput
  • Resource utilization
  • Custom business metrics

Alerting:

  • Alert on performance degradation
  • Alert on error rate spikes
  • Alert on resource exhaustion
  • Alert on SLA violations

Related Use Cases

  • Performance audits
  • Optimization projects
  • Capacity planning
  • Performance regression detection
  • Production performance monitoring
  • Load testing analysis
  • React app optimization
  • Bundle size reduction
  • Core Web Vitals improvement
  • Memory leak fixes
  • Rendering performance optimization

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

29.52%
按下载量换算42

OpenCode

22.27%
按下载量换算32

Antigravity

17.6%
按下载量换算25

Codex

13.59%
按下载量换算19

windsurf

8.13%
按下载量换算12

Gemini CLI

3.81%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills