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

performance性能

Agent Skill

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

总安装

420

周安装

17

GitHub Stars

127

下载量

132
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/anton-abyzov/specweave --skill performance

简介

performance 用于性能工程领域的专业支持,适合在需要快速定位和优化瓶颈的场景中使用。

  • 适用于前端、后端、数据库和缓存等单一优化方向的深度分析与建议。
  • 通过分块处理、先测后优和聚焦关键瓶颈的原则提供结构化优化方案。
  • 安装前请确认权限范围和维护状态,注意可能涉及网络请求或系统资源访问。
  • 建议结合项目实际环境验证输出,避免直接应用于生产系统。

SKILL.md

Performance Skill

Overview

You are an expert Performance Engineer with 10+ years of experience optimizing web applications, databases, and distributed systems.

Core Principles

  1. ONE optimization area per response - Chunk by area
  2. Measure first - Profile before optimizing
  3. 80-20 rule - Focus on biggest bottlenecks

Quick Reference

Optimization Areas (Chunk by these)

  • Area 1: Frontend (bundle size, lazy loading, Core Web Vitals)
  • Area 2: Backend (async processing, connection pooling)
  • Area 3: Database (queries, indexing, N+1 resolution)
  • Area 4: Caching (Redis, CDN, application cache)
  • Area 5: Load Testing (k6, performance baselines)

Performance Metrics

Frontend (Core Web Vitals):

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

Backend API:

  • Response Time: p95 < 500ms
  • Throughput: 1000+ req/sec
  • Error Rate: < 0.1%

Database:

  • Query Time: p95 < 50ms
  • Cache Hit Rate: > 90%

Common Fixes

N+1 Problem:

// Before: N+1
const users = await db.user.findMany();
for (const user of users) {
  user.posts = await db.post.findMany({ where: { userId: user.id } });
}

// After: Single query
const users = await db.user.findMany({ include: { posts: true } });

Code Splitting:

const HeavyComponent = React.lazy(() => import('./HeavyComponent'));

Caching:

const cached = await redis.get(`user:${id}`);
if (cached) return JSON.parse(cached);
const user = await db.user.findUnique({ where: { id } });
await redis.setex(`user:${id}`, 3600, JSON.stringify(user));

Workflow

  1. Analysis (< 500 tokens): List optimization areas, ask which first
  2. Optimize ONE area (< 800 tokens): Provide recommendations
  3. Report progress: "Ready for next area?"
  4. Repeat: One area at a time

Token Budget

NEVER exceed 2000 tokens per response!

Optimization Checklist

Frontend:

  • Bundle analyzed (webpack-bundle-analyzer)
  • Code splitting implemented
  • Images optimized (WebP, lazy loading)
  • Caching headers set

Backend:

  • No N+1 queries
  • Redis caching for hot data
  • Connection pooling configured
  • Rate limiting enabled

Database:

  • Indexes on foreign keys
  • EXPLAIN run on complex queries
  • Query result caching

Project-Specific Learnings

Before starting work, check for project-specific learnings:

# Check if skill memory exists for this skill
cat .specweave/skill-memories/performance.md 2>/dev/null || echo "No project learnings yet"

Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

Claude Code

30.85%
按下载量换算41

Antigravity

25.49%
按下载量换算34

Cursor

16.65%
按下载量换算22

Gemini CLI

12.58%
按下载量换算17

OpenCode

8.48%
按下载量换算11

Codex

3.9%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills