AgentSkillsCN

performance-analysis

指导架构与代码的性能推演,包括瓶颈检测、缓存策略,以及成本与延迟之间的权衡。适用于需要进行性能评估或优化时使用。

SKILL.md
--- frontmatter
name: performance-analysis
description: Guides performance reasoning for architectures and code, including bottleneck detection, caching strategies, and cost/latency trade-offs. Use when performance evaluation or optimization is needed.
license: Apache-2.0
metadata:
  category: performance
  version: "1.0"
allowed-tools: Read

Performance Analysis Skill

Overview

Supports structured analysis of performance considerations at both system and code levels.

When to use

  • Performance optimization tasks
  • Load or throughput estimation
  • Bottleneck identification
  • Latency/cost trade-off evaluation

Instructions

  1. Identify performance objectives and constraints.
  2. Describe expected workloads and bottlenecks.
  3. Recommend mitigations (caching, parallelism, async mechanisms).
  4. Provide methods to measure and validate performance.
  5. Suggest monitoring strategies (metrics, logs).

Examples

Input: “Optimize database query patterns for heavy read load.”
Output:

  • Issue analysis
  • Recommendation list
  • Estimated benefit