skills/review-performance/SKILL.md
Review code for performance: complexity, database/query efficiency, I/O and network cost, memory and allocation behavior, concurrency contention, caching, and latency/throughput regressions. Cognitive-only atomic skill; output is a findings list.
npx skillsauth add nesnilnehc/ai-cortex review-performanceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
仅审查 性能 问题的代码。不要定义范围(差异与代码库)或执行安全/架构/语言框架约定分析;这些由其他原子技能处理。以标准格式发出结果列表以进行聚合。重点关注算法复杂性、查询效率、I/O 和网络成本、内存行为、争用和并发瓶颈、缓存策略以及可测量的回归风险。
首要目标:生成一个以性能为中心的结果列表,涵盖给定代码范围的复杂性热点、查询效率、I/O 成本、内存行为、并发争用、缓存和回归风险。
成功标准(必须满足所有要求):
验收测试:输出是否包含涵盖所有相关维度的性能结果列表,以及基于证据的严重性评级和可操作的、位置参考的建议?
本技能负责:
本技能不负责:
review-dotnet、review-java、review-go 等。review-sql转交点:当所有性能结果发布后,移交给“审查代码”编排器进行聚合,或直接交付给用户进行以性能为中心的审查会议。
何时使用:当任务包含绩效审核时。范围和代码范围由调用者或用户确定。
不要做这些(其他技能可以处理它们):
review-sql何时停止并交接:
输出是否包含涵盖所有相关维度的绩效结果列表,以及基于证据的严重性评级和可操作的、位置参考的建议?
development
Generate an LLM agent test suite (golden cases, mock-LLM unit tests, evaluator harness) from an agent implementation and its agent-test contract. Use when an agent has no tests, or a contract exists but the test code is missing.
development
After code changes, auto-detect the project's build system and local deployment method for a given directory, then build the project and restart its locally-deployed environment (Docker Compose / systemd / process manager). Never assumes — asks only when detection is ambiguous. Caches detected commands per project in .cortex/redeploy-local.yaml; re-invocations on the same project skip re-scanning until signal files change, the cache expires (30 days), or the skill version bumps.
tools
Publish a NATS message conforming to a cross-team contract, using NATS MCP tools. Authors the contract on first use if missing. Reads project-level cache (.cortex/nats.yaml) to avoid re-prompting basics across sessions.
tools
Drain pending NATS messages from a producer contract via NATS MCP tools (default batch / drain-style). Applies Tolerant Reader semantics and per-message ack/nak/term, returning aggregated stats. Reads project-level cache (.cortex/nats.yaml) to avoid re-prompting.