agentleFS
aboio-labsaboio-labs/aboio-skills/skills/gleam-backend/SKILL.md

gleam-backend

Skill3 starsChanged 9 months agoMITView on GitHub

Gleam backend development skill for the Erlang target. Covers Wisp, Mist, OTP actors, Supervision trees, Squirrel/Parrot SQL codegen integration, JWT auth, and HTTP runners. Use when building server-side logic in Kafka.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After creating new actors or supervision trees.

    line 44
  2. Distinctive:

    When experiencing timeouts, deadlocks, or memory leaks.

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Gleam Backend Best Practices

Skill for Gleam server-side development on the Erlang target. Read the relevant reference before writing code.

Token Efficiency

All agents and commands using this skill MUST follow references/token-efficiency.md (from core). Use Read and Grep tools with targeted reads instead of reading entire files.

Reference routing — by task

TaskReferences to read
Building Wisp HTTP handlerswisp-framework.md + http-logging-middleware.md
SQL Database accesssquirrel-guide.md or parrot-guide.md
Creating OTP Actorsotp.md + otp-advanced.md
OTP Supervisionotp-supervision.md
DB Migrationscigogne.md
API Auth / JWTjwt-ywt.md + auth.md
Making outbound HTTP callshttp-runner.md

Reference routing — by topic

TopicReference
HTTP Server config (mist)mist-server.md
Error Handling (3-tier)three-tier-error-handling.md
Decoder Defaults Anti-Patterndecoder-defaults-anti-pattern.md
Storage (S3, Image, PDF)bucket-s3.md + ansel-image.md + paddlefish-pdf.md
Midas algebraic effectsmidas-effect-task.md

Core Backend Principles

  1. Errors as Values — use 3-tier error handling (AppError), never exceptions.
  2. SQL is the Contract — never edit generated sql.gleam files. Fix the .sql source.
  3. No IO in Core — keep database access in handlers/services, separate from pure business logic.

Review Commands

When to use /otp-review:

  • After creating new actors or supervision trees.
  • When experiencing timeouts, deadlocks, or memory leaks.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.