elixir-pro – skill Viết lách & Nội dung cho agent AI
Viết mã Elixir đúng chuẩn với mẫu OTP, cây giám sát (supervision trees) và Phoenix LiveView. Thành thạo xử lý đồng thời, chịu lỗi và hệ thống phân tán.
Cài skill elixir-pro bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/elixir-pro-c2209.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /elixir-pro – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/elixir-pro-c2209.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $elixir-pro – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/elixir-pro-c2209.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /elixir-pro – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/elixir-pro-c2209.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /elixir-pro – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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.
Skill liên quan
- teams-meeting-pipeline – Tóm tắt cuộc họp Teams, phát lại job, Graph subscriptions.
- venue-templates – Chuẩn bị bản thảo tạp chí, bài hội nghị, poster nghiên cứu và hồ sơ tài trợ theo định…
- exa-search – Tìm kiếm ngữ nghĩa, khám phá nội dung tương tự và nghiên cứu có cấu trúc bằng Exa API…
- expo-observe – Thiết lập và truy vấn EAS Observe cho ứng dụng Expo, gồm tích hợp root, interactive…
- faber-language – Viết, kiểm tra và chạy chương trình Faber, một ngôn ngữ thử nghiệm có kiểu tĩnh dành cho…
- file-organizer – Sắp xếp file và thư mục bằng cách kiểm tra nội dung, đề xuất cấu trúc và rà soát các…
- xurl – X/Twitter qua xurl CLI: tìm kiếm bài đăng thô, đăng bài, DM, media.
- youtube-content – Chuyển transcript YouTube thành tóm tắt, thread và blog.