Agent Skills
› franklioxygen/agent-workflows
› performance-review
performance-review
GitHub用于对代码变更进行性能审查,分析算法复杂度、数据库查询及资源使用等风险。适用于评估可扩展性、延迟风险及生成基准测试计划。
Trigger Scenarios
请求代码性能审查
需要可扩展性评估
要求制定性能剖析或基准测试计划
评估延迟风险
Install
npx skills add franklioxygen/agent-workflows --skill performance-review -g -y
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
- Run
scripts/performance_signal_scan.py <path>when a repository or changed-file path is available. - Read references/performance-review-checklist.md before finalizing findings.
- Follow shared safety, validation, and scope rules in ../_shared/references/skill-operating-rules.md.
- Focus on hot paths, data size, request rate, and operational cost.
- Stay read-only unless the user explicitly asks for fixes.
Review Workflow
- Establish expected scale: records, requests per second, concurrency, payload size, memory budget, latency budget.
- Identify hot paths and expensive dependencies: database, network, filesystem, CPU, serialization, rendering, queues.
- Run signal scan:
python3 scripts/performance_signal_scan.py /path/to/repo-or-file
- Trace loops, queries, API calls, and allocations through realistic worst-case inputs.
- 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.
Version History
- 063f52c Current 2026-07-05 20:14


