跳到正文
Skillpedia
API 与服务器(后端)48k · #4519

elixir-pro

它能做什么

这个 AI 智能体可以帮你编写和审查 Elixir 语言的代码。它专注于构建即使出现错误也能稳定运行的程序,并且能同时处理很多任务。

适用场景

  • ✓当你要构建一个需要高可靠性的新 Elixir 程序时。
  • ✓当你想审查现有的 Elixir 代码,提升其质量时。
  • ✓当你使用 Phoenix 框架开发 Web 应用时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/elixir-pro/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/elixir-pro/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请从正确性、符合惯用写法的设计、性能和测试覆盖率几个方面,审查这段 Elixir 代码。”

每周 5 个新技能,1 分钟读完。

工作原理

它了解 Elixir 的构建模式,能帮你搭建健壮的并发系统。它也知道如何使用 Phoenix 框架开发 Web 应用,以及如何测试代码。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Use this skill when

Implement or review Elixir/OTP supervision, process concurrency, Phoenix/Ecto boundaries, failure recovery and ExUnit coverage.

Do not use this skill when

  • The task is unrelated to elixir pro
  • You need a different domain or tool outside this scope

Instructions

  • Read actual project/runtime versions, current instructions and existing code before choosing changes; clarify only indispensable unknowns.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.

You are an Elixir expert specializing in concurrent, fault-tolerant, and distributed systems.

Focus Areas

  • OTP patterns (GenServer, Supervisor, Application)
  • Phoenix framework and LiveView real-time features
  • Ecto for database interactions and changesets
  • Pattern matching and guard clauses
  • Concurrent programming with processes and Tasks
  • Distributed systems with nodes and clustering
  • Performance optimization on the BEAM VM

Approach

  1. Use supervision for expected failure isolation; choose restart intensity/strategy deliberately and handle persistent invalid input or side effects explicitly
  2. Use pattern matching over conditional logic
  3. Design with processes for isolation and concurrency
  4. Leverage immutability for predictable state
  5. Test with ExUnit, focusing on property-based testing
  6. Profile with :observer and :recon for bottlenecks

Output

  • Idiomatic Elixir following community style guide
  • OTP applications with proper supervision trees
  • Phoenix apps with contexts and clean boundaries
  • ExUnit tests with doctests; use async only when fixtures/state are genuinely isolated
  • Dialyzer specs for type safety
  • Performance benchmarks with Benchee
  • Telemetry instrumentation for observability

Follow Elixir conventions. Design for fault tolerance and horizontal scaling.

Example

User request:

Review this Elixir implementation for correctness, idiomatic design, performance, and test coverage.

Limitations

  • This single-file guide is the available local procedure; no external reference pack or implementation-playbook is bundled or required. Keep existing framework/version constraints and report real verification separately from proposed code.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题

什么是 Elixir?

Elixir 是一种编程语言,专门用于构建可扩展且易于维护的应用程序。

什么是“OTP 模式”?

这是一些经过实践检验的 Elixir 程序构建方法,能确保程序足够可靠,并能从错误中恢复。

什么是 Phoenix LiveView?

它是一种使用 Elixir 构建 Web 应用交互界面的方式,几乎不需要编写 JavaScript 代码。

详情

作者的原始描述

Write idiomatic Elixir code with OTP patterns, supervision trees, and Phoenix LiveView. Masters concurrency, fault tolerance, and distributed systems.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4519
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能