跳到正文
Skillpedia
部署与云(DevOps)48k · #3806

application-performance-performance-optimization

它能做什么

这个工具可以帮助提升应用的速度和效率。它会分析整体性能、找出性能瓶颈,并为面向用户的前端和服务端的后端代码提出优化建议。

适用场景

  • ✓当应用很慢,但你不知道原因时。
  • ✓当你需要规划整个系统的性能提升时。
  • ✓当你希望应用在访问量很大时依然表现良好时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/application-performance-performance-optimization/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/application-performance-performance-optimization/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我该如何优化网页应用的性能,让用户加载得更快?”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具的工作方式就像医生给病人做详细检查。它会借助监控数据和测试找出问题,然后对代码、数据库和基础设施进行修复。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Optimize application performance end-to-end using specialized performance and optimization agents:

[Extended thinking: This workflow orchestrates a comprehensive performance optimization process across the entire application stack. Starting with deep profiling and baseline establishment, the workflow progresses through targeted optimizations in each system layer, validates improvements through load testing, and establishes continuous monitoring for sustained performance. Each phase builds on insights from previous phases, creating a data-driven optimization strategy that addresses real bottlenecks rather than theoretical improvements. The workflow emphasizes modern observability practices, user-centric performance metrics, and cost-effective optimization strategies.]

Use this skill when

  • Coordinating performance optimization across backend, frontend, and infrastructure
  • Establishing baselines and profiling to identify bottlenecks
  • Designing load tests, performance budgets, or capacity plans
  • Building observability for performance and reliability targets

Do not use this skill when

  • The task is a small localized fix with no broader performance goals
  • There is no access to metrics, tracing, or profiling data
  • The request is unrelated to performance or scalability

Instructions

  1. Confirm performance goals, constraints, and target metrics.
  2. Establish baselines with profiling, tracing, and real-user data.
  3. Execute phased optimizations across the stack with measurable impact.
  4. Validate improvements and set guardrails to prevent regressions.

Safety

  • Avoid load testing production without approvals and safeguards.
  • Roll out performance changes gradually with rollback plans.

Phase 1: Performance Profiling & Baseline

1. Comprehensive Performance Profiling

  • Use Task tool with subagent_type="performance-engineer"
  • Prompt: "Profile application performance comprehensively for: $ARGUMENTS. Generate flame graphs for CPU usage, heap dumps for memory analysis, trace I/O operations, and identify hot paths. Use APM tools like DataDog or New Relic if available. Include database query profiling, API response times, and frontend rendering metrics. Establish performance baselines for all critical user journeys."
  • Context: Initial performance investigation
  • Output: Detailed performance profile with flame graphs, memory analysis, bottleneck identification, baseline metrics

2. Observability Stack Assessment

  • Use Task tool with subagent_type="observability-engineer"
  • Prompt: "Assess current observability setup for: $ARGUMENTS. Review existing monitoring, distributed tracing with OpenTelemetry, log aggregation, and metrics collection. Identify gaps in visibility, missing metrics, and areas needing better instrumentation. Recommend APM tool integration and custom metrics for business-critical operations."
  • Context: Performance profile from step 1
  • Output: Observability assessment report, instrumentation gaps, monitoring recommendations

3. User Experience Analysis

  • Use Task tool with subagent_type="performance-engineer"
  • Prompt: "Analyze user experience metrics for: $ARGUMENTS. Measure Core Web Vitals (LCP, FID, CLS), page load times, time to interactive, and perceived performance. Use Real User Monitoring (RUM) data if available. Identify user journeys with poor performance and their business impact."
  • Context: Performance baselines from step 1
  • Output: UX performance report, Core Web Vitals analysis, user impact assessment

Phase 2: Database & Backend Optimization

4. Database Performance Optimization

  • Use Task tool with subagent_type="database-cloud-optimization::database-optimizer"
  • Prompt: "Optimize database performance for: $ARGUMENTS based on profiling data: {context_from_phase_1}. Analyze slow query logs, create missing indexes, optimize execution plans, implement query result caching with Redis/Memcached. Review connection pooling, prepared statements, and batch processing opportunities. Consider read replicas and database sharding if needed."
  • Context: Performance bottlenecks from phase 1
  • Output: Optimized queries, new indexes, caching strategy, connection pool configuration

5. Backend Code & API Optimization

  • Use Task tool with subagent_type="backend-development::backend-architect"

…

常见问题

什么是“瓶颈”?

瓶颈是系统中限制整体性能的环节,就像一根很细的水管会限制水流一样。

什么是“可观测性”?

可观测性指的是理解复杂系统内部运行状况的能力,就像给一辆行驶中的汽车装上许多传感器进行监测。

这能解决所有卡顿问题吗?

它的目标是找出并解决主要的性能问题。一些次要问题或与性能无关的问题可能不在覆盖范围内。

详情

作者的原始描述

Optimize end-to-end application performance with profiling, observability, and backend/frontend tuning. Use when coordinating performance optimization across the stack.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#3806
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能