# Pdlc Perf

> 性能优化

- **Type:** Skill
- **Install:** `agentstack add skill-kanfu-panda-pdlc-skills-pdlc-perf`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [kanfu-panda](https://agentstack.voostack.com/s/kanfu-panda)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [kanfu-panda](https://github.com/kanfu-panda)
- **Source:** https://github.com/kanfu-panda/pdlc-skills/tree/main/skills/pdlc-perf
- **Website:** https://kanfu-panda.github.io/pdlc/

## Install

```sh
agentstack add skill-kanfu-panda-pdlc-skills-pdlc-perf
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 性能优化

对指定服务或应用进行性能分析并提出优化方案。

## 分析维度

### 后端性能
- **数据库层**: 慢查询、N+1 问题、缺失索引、全表扫描
- **缓存层**: 缓存命中率、缓存策略（过期/淘汰）、缓存穿透/击穿/雪崩
- **接口层**: 响应时间、并发处理、连接池配置
- **代码层**: 算法复杂度、内存泄漏、不必要的序列化/反序列化

### 前端性能
- **加载性能**: 首屏时间、资源体积、代码分割、懒加载
- **运行时性能**: 不必要的重渲染、大列表虚拟滚动、防抖/节流
- **网络优化**: 请求合并、资源压缩、CDN 配置
- **缓存策略**: 浏览器缓存、Service Worker、本地存储

## 工作流程
1. **阅读代码**: 分析目标服务/应用的核心逻辑
2. **识别瓶颈**: 标注可能存在性能问题的代码段
3. **提出方案**: 对每个问题给出优化方案和预期收益
4. **实施优化**: 按优先级实施优化代码
5. **【必须创建文件】** 在 `docs/07_reviews/code/` 下创建性能优化报告

> ⚠️ **必须创建文件，不可仅在对话中输出。**

## 报告格式

文件名: `YYYYMMDD--perf-report.md`

**文档顶部包含 PDLC 追溯头**：
```

```

**报告内容**：

| 序号 | 位置 | 问题描述 | 影响程度 | 优化方案 | 预期收益 |
|------|------|----------|----------|----------|----------|

**创建后验证**：确认文件已存在于 `docs/07_reviews/code/` 目录

## 要求

- 优化方案按投入产出比排序（性价比高的优先）
- 给出优化前后的代码对比
- 不要为了优化而牺牲代码可读性

优化目标: $ARGUMENTS

**本命令的 handoff 输出：**

```
✅ 性能优化报告 完成
📦 产出：docs/04_testing/perf/-report.md
👉 下一步：（本次流程结束，无后续）
```

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [kanfu-panda](https://github.com/kanfu-panda)
- **Source:** [kanfu-panda/pdlc-skills](https://github.com/kanfu-panda/pdlc-skills)
- **License:** MIT
- **Homepage:** https://kanfu-panda.github.io/pdlc/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-kanfu-panda-pdlc-skills-pdlc-perf
- Seller: https://agentstack.voostack.com/s/kanfu-panda
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
