Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问clear审计未展示

moai-lang-elixirmoai lang Elixir 搜索

Agent Skill

moai-lang-elixir 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

312

周安装

13

GitHub Stars

公开资料未说明

下载量

104
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:moai-lang-elixir(moai lang Elixir 搜索)
来源仓库:https://github.com/modu-ai/cc-plugins
仓库路径:skills/moai-lang-elixir
安装命令:
npx skills add modu-ai/cc-plugins --skill "moai-lang-elixir"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add modu-ai/cc-plugins --skill "moai-lang-elixir"

简介

moai-lang-elixir 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于发现并安装 AI 代理的技能,支持 Elixir 语言相关开发需求。
  • 通过 npx skills add modu-ai/cc-plugins --skill "moai-lang-elixir" 安装。
  • 需确认权限范围、维护状态及是否触发联网、命令执行或文件读写。
  • 建议结合来源仓库和原始 README 进一步核验具体用法。

SKILL.md

Quick Reference (30 seconds)

Elixir 1.17+ Development Specialist - Phoenix 1.7, LiveView, Ecto, OTP patterns, and functional programming.

Auto-Triggers: .ex, .exs files, mix.exs, config/, Phoenix/LiveView discussions

Core Capabilities:

  • Elixir 1.17: Pattern matching, pipes, protocols, behaviours, macros
  • Phoenix 1.7: Controllers, LiveView, Channels, PubSub, Verified Routes
  • Ecto: Schemas, Changesets, Queries, Migrations, Multi
  • OTP: GenServer, Supervisor, Agent, Task, Registry
  • ExUnit: Testing with setup, describe, async
  • Mix: Build tool, tasks, releases
  • Oban: Background job processing

Quick Patterns

Phoenix Controller: Define a module using MyAppWeb with:controller. Create alias for the context module like MyApp.Accounts. Define action functions like show taking conn and params map with destructured id. Fetch data using the context function with bang like get_user! and render the template passing the data as assigns.

For create actions, pattern match on the context result tuple. On ok tuple, use pipe operator to put_flash with success message and redirect using ~p sigil for verified routes. On error tuple with Ecto.Changeset, render the form template passing the changeset.

Ecto Schema with Changeset: Define a module using Ecto.Schema and importing Ecto.Changeset. Define the schema block with field declarations including types like:string and virtual fields. Create a changeset function taking the struct and attrs, using pipe operator to chain cast with the list of fields to cast, validate_required, validate_format with regex, validate_length with min option, and unique_constraint.

GenServer Pattern: Define a module using GenServer. Create start_link taking initial_value and calling GenServer.start_link with MODULE, initial_value, and name option. Define client API functions that call GenServer.call with MODULE and the message atom. Implement init callback returning ok tuple with state. Implement handle_call callbacks for each message, returning reply tuple with response and new state.


Implementation Guide (5 minutes)

Elixir 1.17 Features

Pattern Matching Advanced: Define function heads with pattern matching on map keys and types. Use guard clauses with when to add constraints like is_binary or byte_size checks. Add a catch-all clause returning error tuple for invalid inputs.

Pipe Operator with Error Handling: Use the with special form for chaining operations that may fail. Pattern match each step with left arrow, and on successful completion of all steps, return the final ok tuple. In the else block, handle error tuples by returning them unchanged.

Protocols for Polymorphism: Define a protocol with @doc and function specification using defprotocol. Implement the protocol for specific types using defimpl with for: option. Each implementation provides the specific behavior for that type.

Phoenix 1.7 Patterns

LiveView Component: Define a module using MyAppWeb with:live_view. Implement mount callback taking params, session, and socket, returning ok tuple with assigned state. Implement handle_event callback for user interactions, returning noreply tuple with updated socket using update helper. Implement render callback with assigns, using ~H sigil for HEEx templates with assigns accessed via @ prefix.

LiveView Form with Changesets: In mount, create initial changeset and assign using to_form helper. Implement validate event handler that creates changeset with:validate action and reassigns the form. Implement save event handler that calls context create function, on success using put_flash and push_navigate, on error reassigning the form with error changeset.

Phoenix Channels: Define a module using MyAppWeb with:channel. Implement join callback matching on topic pattern with angle brackets for dynamic segments. Use send with self() for after_join messages. Implement handle_info for server-side messages using push. Implement handle_in for client messages using broadcast! to send to all subscribers.

Verified Routes: Define routes in router.ex within scope blocks using live macro for LiveView routes. Use ~p sigil for verified routes in templates and controllers, with interpolation syntax for dynamic segments.

Ecto Patterns

Multi for Transactions: Use Ecto.Multi.new() and pipe through operations using Ecto.Multi.update with name atoms and changeset functions. Use Ecto.Multi.insert with function callback when needing results from previous steps. Pipe final Multi to Repo.transaction() which returns ok or error tuple with named results.

Query Composition: Create a query module with composable query functions. Define a base function returning from expression. Create filter functions with default parameter for query, returning modified from expression with where clause. Chain functions with pipe operator before passing to Repo.all.


Advanced Implementation (10+ minutes)

For comprehensive coverage including:

  • Production deployment with releases
  • Distributed systems with libcluster
  • Advanced LiveView patterns (streams, components)
  • OTP supervision trees and dynamic supervisors
  • Telemetry and observability
  • Security best practices
  • CI/CD integration patterns

See:


Context7 Library Mappings

  • /elixir-lang/elixir - Elixir language documentation
  • /phoenixframework/phoenix - Phoenix web framework
  • /phoenixframework/phoenix_live_view - LiveView real-time UI
  • /elixir-ecto/ecto - Database wrapper and query language
  • /sorentwo/oban - Background job processing

Works Well With

  • moai-domain-backend - REST API and microservices architecture
  • moai-domain-database - SQL patterns and query optimization
  • moai-workflow-testing - DDD and testing strategies
  • moai-essentials-debug - AI-powered debugging
  • moai-platform-deploy - Deployment and infrastructure

Troubleshooting

Common Issues:

Elixir Version Check: Run elixir --version to verify 1.17+ and mix --version for Mix build tool version.

Dependency Issues: Run mix deps.get to fetch dependencies, mix deps.compile to compile them, and mix clean to remove build artifacts.

Database Migrations: Run mix ecto.create to create database, mix ecto.migrate to run migrations, and mix ecto.rollback to rollback last migration.

Phoenix Server: Run mix phx.server to start the server, iex -S mix phx.server to start with IEx shell, and MIX_ENV=prod mix release to build production release.

LiveView Not Loading:

  • Check websocket connection in browser developer console
  • Verify endpoint configuration includes websocket transport
  • Ensure Phoenix.LiveView is listed in mix.exs dependencies

Last Updated: 2026-01-11 Status: Active (v1.1.0)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.42%
按下载量换算30

windsurf

25.31%
按下载量换算26

trae

16.94%
按下载量换算18

OpenCode

11.77%
按下载量换算12

Codex

6.97%
按下载量换算7

Antigravity

3.49%
按下载量换算4

安全审计

暂无安全审计结果可展示。

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills