← 返回 Skills 市场
anderskev

Elixir Performance Review

作者 Kevin Anderson · GitHub ↗ · v1.2.1 · MIT-0
cross-platform ✓ 安全检测通过
173
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install elixir-performance-review
功能描述
Reviews Elixir code for performance issues including GenServer bottlenecks, memory usage, and concurrency patterns. Use when reviewing high-throughput code o...
使用说明 (SKILL.md)

Elixir Performance Review

Quick Reference

Issue Type Reference
Mailbox overflow, blocking calls references/genserver-bottlenecks.md
When to use ETS, read/write concurrency references/ets-patterns.md
Binary handling, large messages references/memory.md
Task patterns, flow control references/concurrency.md

Review Checklist

GenServer

  • Not a single-process bottleneck for all requests
  • No blocking operations in handle_call/cast
  • Proper timeout configuration
  • Consider ETS for read-heavy state

Memory

  • Large binaries not copied between processes
  • Streams used for large data transformations
  • No unbounded data accumulation

Concurrency

  • Task.Supervisor for dynamic tasks (not raw Task.async)
  • No unbounded process spawning
  • Proper backpressure for message producers

Database

  • Preloading to avoid N+1 queries
  • Pagination for large result sets
  • Indexes for frequent queries

Valid Patterns (Do NOT Flag)

  • Single GenServer for low-throughput - Not all state needs horizontal scaling
  • Synchronous calls for critical paths - Consistency may require it
  • In-memory state without ETS - ETS has overhead for small state
  • Enum over Stream for small collections - Stream overhead not worth it

Context-Sensitive Rules

Issue Flag ONLY IF
GenServer bottleneck Handles > 1000 req/sec OR blocking I/O in callbacks
Use streams Processing > 10k items OR reading large files
Use ETS Read:write ratio > 10:1 AND concurrent access

Gates — before reporting

Do these in order for the performance review. Do not publish findings until each step passes.

  1. Protocol loaded — Read review-verification-protocol and apply its checks for each finding (hot paths, concurrency, resource use). Pass: For every substantive finding, you can name which protocol subsection you satisfied or state N/A with reason (e.g. pure reference to this skill’s Valid Patterns).
  2. Anchored evidencePass: Each finding includes a concrete locator: path:line (or line range), or Module.function/arity plus a short quoted snippet from the file.
  3. Performance claims — For anything under Context-Sensitive Rules, or any claim of bottleneck, N+1, unbounded growth, or heavy memory/binary cost, Pass: You state the observed or measured fact that meets “Flag ONLY IF” (e.g. rate, item count, ratio), or attach an artifact (profiler output, SQL/log excerpt, grep/search scope)—otherwise downgrade to question / suspected with what was not verified.

Before Submitting Findings

Complete Gates — before reporting (section above) first; the verification protocol is mandatory input to those gates.

安全使用建议
This skill appears coherent and low-risk: it will require the agent to read your codebase and may ask you to provide profiler output or logs to substantiate claims. Before using it, ensure the agent has only the repository files you intend to share, be prepared to produce any profiler/log artifacts locally (the skill doesn't supply profiling tools), and verify the referenced verification protocol (../review-verification-protocol/SKILL.md) is available or replaceable — otherwise the skill may downgrade findings to 'suspected' because it requires that protocol for verification.
能力评估
Purpose & Capability
Name/description (Elixir performance review) align with the included checklist and reference documents; it requires no binaries, env vars, or installs that would be unrelated to code review.
Instruction Scope
The SKILL.md stays on-topic (it instructs the agent to inspect code, produce anchored findings, and attach measured artifacts). Two minor inconsistencies: 1) it requires "observed or measured" artifacts (profiler output, SQL/log excerpts, grep output) but does not declare which tools or permissions are needed to generate them, and 2) it mandates reading a separate verification protocol at ../review-verification-protocol/SKILL.md which is not included here — that could make the gate unenforceable unless the agent has access to that path or another skill. These are operational gaps, not security red flags.
Install Mechanism
No install spec, no code executed or downloaded. Instruction-only skills are lowest-risk from an installation perspective.
Credentials
The skill declares no environment variables, credentials, or config paths. Its requested artifacts (profiling output, file:line locators) are proportional to a code review and do not imply access to unrelated services.
Persistence & Privilege
always is false, skill is user-invocable, and there is no code that modifies other skills or system settings. No persistence or elevated privileges are requested.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install elixir-performance-review
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /elixir-performance-review 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.1
- Added “Gates — before reporting” section describing mandatory step-by-step verification before submitting findings, including protocol adherence, anchored evidence, and requirement for observed/measured performance claims. - Updated “Before Submitting Findings” to reference the new gates and clarify verification is required. - No changes to review topics, checklists, or core skill functionality.
v1.2.0
elixir-performance-review v1.2.0 - Added quick-reference table linking common performance issues to documentation. - Expanded and clarified the review checklist for GenServer, memory usage, concurrency, and database patterns. - Documented valid code patterns that should not be flagged. - Introduced context-sensitive review rules to guide when to flag issues. - Added a step to verify findings using the review-verification-protocol before submission.
元数据
Slug elixir-performance-review
版本 1.2.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 2
常见问题

Elixir Performance Review 是什么?

Reviews Elixir code for performance issues including GenServer bottlenecks, memory usage, and concurrency patterns. Use when reviewing high-throughput code o... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 173 次。

如何安装 Elixir Performance Review?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install elixir-performance-review」即可一键安装,无需额外配置。

Elixir Performance Review 是免费的吗?

是的,Elixir Performance Review 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Elixir Performance Review 支持哪些平台?

Elixir Performance Review 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Elixir Performance Review?

由 Kevin Anderson(@anderskev)开发并维护,当前版本 v1.2.1。

💬 留言讨论