elixir-conventions

针对在编写或审查 Elixir 代码时加载的代码规范,涵盖 Elixir 1.14+/OTP 25+ 的约定:模式匹配习惯、mix format 格式化、使用 Credo 与 Dialyzer 的静态分析、ExUnit 测试实践、ExDoc 文档生成、常见 OTP 进程模式,以及依赖项安全性注意事项。

仓库最近推送
GitHub Stars
182
Forks
19
Issues / PRs
2

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "elixir-conventions":https://skillpi.com/zh/skills/deepskill-ec018a38575ca303900d9f7e46dbf77dc046ceff763d9fa9afa823bfc32794cf。安装前核对上游来源和版本:https://github.com/Goldziher/ai-rulez。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

针对在编写或审查 Elixir 代码时加载的代码规范,涵盖 Elixir 1.14+/OTP 25+ 的约定:模式匹配习惯、mix format 格式化、使用 Credo 与 Dialyzer 的静态分析、ExUnit 测试实践、ExDoc 文档生成、常见 OTP 进程模式,以及依赖项安全性注意事项。

0 下载

介绍来源: third_party · Goldziher · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: elixir-conventions
description: Elixir code conventions covering Elixir 1.14+/OTP 25+, pattern matching, mix format, Credo/Dialyzer, ExUnit, ExDoc, OTP process patterns, and dependency security. Load when writing or reviewing Elixir code.
  • Elixir 1.14+ OTP 25+, pattern matching extensively, mix format non-negotiable.
  • Configure .formatter.exs with :inputs and :import_deps for consistent formatting across team.
  • Linting: a linter (e.g., Credo --strict), type checking: Dialyzer (via dialyxir).
  • Security: mix_audit for dependency CVE scanning, a SAST tool (e.g., Sobelow) for static analysis. Run both in CI.
  • Testing: ExUnit with describe blocks, doctest for examples, a coverage tool (e.g., excoveralls) at 80%+.
  • Documentation: ExDoc for generation, @moduledoc on all modules, @doc + @spec on public functions.
  • {:ok, value} / {:error, reason} tuples — never raise for expected errors.
  • with for multi-step ops, guard clauses for function overloading.
  • OTP: GenServer for state, Supervisor for fault tolerance, |> pipe for transforms.
  • Dependencies: commit mix.lock, hex with ~> constraints.
  • Anti-patterns: mutable state outside processes, long-running NIFs, String.to_atom with user input.

版本历史

  1. v5.15.0 GitHub ↗
    原版更新说明

    ## What's Changed * chore(deps): bump github.com/parquet-go/parquet-go from 0.32.0 to 0.32.1 in /tools/skillbench by @dependabot[bot] in https://github.com/Goldziher/ai-rulez/pull/597 * chore(deps): bump @astrojs/starlight from 0.42.11 to 0.43.1 in /website by @dependabot[bot] in https://github.com/Goldziher/ai-rulez/pull/595 * feat(plugin): configurable Cursor hook root fallback by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/600 * chore: refresh dependencies, harness names and fix AR005 flag-value false positive by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/601 * chore(release): prepare ai-rulez 5.15.0 by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/602 **Full Changelog**: https://github.com/Goldziher/ai-rulez/compare/v5.14.1...v5.15.0

  2. v5.14.1 GitHub ↗
    原版更新说明

    ## What's Changed * fix(config): honor XDG_CACHE_HOME for the user cache by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/592 **Full Changelog**: https://github.com/Goldziher/ai-rulez/compare/v5.14.0...v5.14.1

  3. v5.14.0 GitHub ↗
    原版更新说明

    ## What's Changed * chore(deps): bump @astrojs/starlight from 0.42.10 to 0.42.11 in /website by @dependabot[bot] in https://github.com/Goldziher/ai-rulez/pull/576 * fix(harnessnames): refresh copilot and cortex built-ins from their sources by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/583 * fix(config): make the session-start briefing source-aware by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/584 * feat(mcp): expose worktree_setup for agent-created worktrees by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/587 * docs(publish): add a verify-before-install recipe for consumers by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/585 * chore(release): prepare ai-rulez 5.14.0 by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/588 **Full Changelog**: https://github.com/Goldziher/ai-rulez/compare/v5.13.4...v5.14.0

  4. v5.13.4 GitHub ↗
    原版更新说明

    ## What's Changed * test(bench): measure native and MCP skill discovery by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/575 * fix(npm): stop the Windows CLI tree when the wrapper exits by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/574 * fix(mcp): improve Claude skill discovery for v5.13.4 by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/577 **Full Changelog**: https://github.com/Goldziher/ai-rulez/compare/v5.13.3...v5.13.4

  5. v5.13.3 GitHub ↗
    原版更新说明

    ## What's Changed * ci: keep generated release artifacts out of Git by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/567 * docs: clarify native and MCP skill discovery by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/568 * fix(npm): preserve stdout and forward termination by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/566 * fix(pathglob): preserve Unicode literals by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/569 * fix(semver): validate release age before duration conversion by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/570 * fix(agents): preserve adjacent AGENTS.md sections by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/571 * bench: add paired skill discovery fixture and protocol by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/572 * chore(release): prepare ai-rulez 5.13.3 by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/573 **Full Changelog**: https://github.com/Goldziher/ai-rulez/compare/v5.13.2...v5.13.3

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 提供 Elixir 1.14+/OTP 25+ 的完整工程规范
  • 涵盖代码风格、测试、文档、安全等关键维度
  • 面向实际开发场景,实用性强
触发精准90/100

亮点

  • 触发描述清晰明确,限定于 Elixir 代码编写与审查场景
  • 包含版本范围和具体工具链信息,边界清晰
结构规范75/100

待提升项

  • 缺少 When to Use 显式章节 原报告严重程度:轻微

    文档未设置独立的 When to Use 章节说明具体使用时机

    改进建议:建议添加 When to Use 章节,举例说明何时应加载此规范(如新建项目、代码评审前等)

  • 缺少端到端完整示例 原报告严重程度:轻微

    虽有分点说明,但缺乏一个完整项目结构示例展示所有规范如何协同应用

    改进建议:建议补充一个小型示例项目结构,展示 .formatter.exs、test/、lib/ 等目录下的规范实践

亮点

  • 使用清晰的分点列表结构,每项对应一个规范维度
  • frontmatter 完整,包含名称和描述
执行可靠90/100

亮点

  • 所有推荐工具均为 Elixir 生态标准组件,来源可靠
  • 安全实践具体可行(mix_audit + Sobelow in CI),参数建议合理
  • 明确列出反模式,提升执行安全性
证据可验 (前四项均值)85/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。