AgentSkillsCN

gleam-idiomatic

指导编写与审查符合惯例的Gleam代码。在编辑或创建Gleam模块(.gleam)、实现Gleam API,或当用户询问Gleam风格、Wisp(后端)、Lustre(前端)、Gleam FFI、OTP,或JSON相关问题时使用此功能。

SKILL.md
--- frontmatter
name: gleam-idiomatic
description: Guides writing and reviewing idiomatic Gleam code. Use when editing or creating Gleam modules (.gleam), implementing Gleam APIs, or when the user asks for Gleam style, Wisp (backend), Lustre (frontend), Gleam FFI, OTP, or JSON.

Gleam idiomatic coding

Use this skill when working with Gleam code. Follow the workflow: load the required references, then load any optional references that match the task.

When to use this skill

  • Editing or creating .gleam files or Gleam projects.
  • Implementing or reviewing Gleam APIs, libraries, or applications.
  • User asks about Gleam style, Gleam backend (Wisp), frontend (Lustre), FFI, OTP, JSON, or JavaScript/browser interop.

Must-read core references (required)

Before implementing or reviewing Gleam code, read and keep in context:

Load when the task requires them

Read only when the user's task involves that area:

When unsure

Check the Gleam Tour or official docs. Do not guess stdlib function names or import semantics.