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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
- Use supervision for expected failure isolation; choose restart intensity/strategy deliberately and handle persistent invalid input or side effects explicitly
- Use pattern matching over conditional logic
- Design with processes for isolation and concurrency
- Leverage immutability for predictable state
- Test with ExUnit, focusing on property-based testing
- 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.
热度
- GitHub 星标
- 48k
- 排名
- #4519
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。