Agent Skillsfranklioxygen/agent-workflows › performance-review

performance-review

GitHub

针对代码变更执行性能审查,评估算法复杂度、数据库查询、内存及延迟等风险。通过信号扫描和最佳场景分析,提供分页、缓存、批量处理等具体优化建议与验证方案。

skills/performance-review/SKILL.md franklioxygen/agent-workflows

触发场景

用户请求代码性能审查 需要可扩展性评估或基准测试计划

安装

npx skills add franklioxygen/agent-workflows --skill performance-review -g -y
更多选项

不安装直接使用

npx skills use franklioxygen/agent-workflows@performance-review

指定 Agent (Claude Code)

npx skills add franklioxygen/agent-workflows --skill performance-review -a claude-code -g -y

安装 repo 全部 skill

npx skills add franklioxygen/agent-workflows --all -g -y

预览 repo 内 skill

npx skills add franklioxygen/agent-workflows --list

SKILL.md

Frontmatter
{
    "name": "performance-review",
    "description": "Perform focused performance reviews of code changes, pull requests, branches, or workspace diffs for algorithmic complexity, database query patterns, N+1 risks, pagination, caching, batching, memory use, synchronous I\/O, latency, and load behavior. Use when Codex is asked for a performance review, scalability review, profiling plan, benchmark plan, or latency-risk assessment."
}

Performance Review

Quick Start

Review Workflow

  1. Establish expected scale: records, requests per second, concurrency, payload size, memory budget, latency budget.
  2. Identify hot paths and expensive dependencies: database, network, filesystem, CPU, serialization, rendering, queues.
  3. Run signal scan:
python3 scripts/performance_signal_scan.py /path/to/repo-or-file
  1. Trace loops, queries, API calls, and allocations through realistic worst-case inputs.
  2. Recommend validation: targeted tests, profiling, explain plans, benchmarks, load tests, or production metrics.

Output Rules

  • Findings must include scale assumptions and the cost mechanism.
  • Distinguish measured issues from plausible risks.
  • Prefer concrete mitigations: add pagination, batch calls, add index, cache with invalidation, stream data, avoid repeated work.
  • If no findings are found, state residual risk and whether profiling or benchmarks were skipped.

版本历史

  • 063f52c 当前 2026-07-05 20:14

同 Skill 集合

skills/docs-maintenance/SKILL.md
skills/migration-planning/SKILL.md
skills/project-initialization/SKILL.md
skills/release-prep/SKILL.md
skills/security-review/SKILL.md
skills/test-strategy/SKILL.md
skills/workflow-automation/SKILL.md
skills/workflow-maintainer/SKILL.md
zh-cn/skills/docs-maintenance/SKILL.md
zh-cn/skills/migration-planning/SKILL.md
zh-cn/skills/performance-review/SKILL.md
zh-cn/skills/project-initialization/SKILL.md
zh-cn/skills/release-prep/SKILL.md
zh-cn/skills/security-review/SKILL.md
zh-cn/skills/test-strategy/SKILL.md
zh-cn/skills/workflow-automation/SKILL.md
zh-cn/skills/workflow-maintainer/SKILL.md

元信息

文件数
0
版本
063f52c
Hash
a7ffc1cf
收录时间
2026-07-05 20:14

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-06 18:26
浙ICP备14020137号-1 $访客地图$