elixir-writing-docs

elixir-writing-docs is a skill for Claude Code, Codex from existential-birds/beagle. It costs 50 tokens per session (2,544 once invoked), scanned A, original, Apache-2.0.

A writing guide for documenting Elixir code with ExDoc, the tool that generates documentation from source comments. It covers module, function, and type descriptions, examples, links, and doctests—examples that can be run as tests.

In plain words
What is it for?
Use it when adding or improving @moduledoc, @doc, @typedoc, doctests, cross-references, or formatting in .ex files.
Why use it?
It helps developers write documentation that is easier to find, understand, and check for correctness.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding or improving @moduledoc, @doc, @typedoc, doctests, cross-references, or formatting in .ex files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/existential-birds/beagle/elixir-writing-docs
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add existential-birds/beagle --skill elixir-writing-docs
Clone the repo
git clone --depth 1 https://github.com/existential-birds/beagle

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for elixir-writing-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/existential-birds/beagle/elixir-writing-docs/github.svg)](https://agentmods.dev/skills/existential-birds/beagle/elixir-writing-docs)
Your own site
<a href="https://agentmods.dev/skills/existential-birds/beagle/elixir-writing-docs"><img src="https://agentmods.dev/badge/skills/existential-birds/beagle/elixir-writing-docs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for elixir-writing-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/existential-birds/beagle/elixir-writing-docs"><img src="https://agentmods.dev/badge/skills/existential-birds/beagle/elixir-writing-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,544 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.02544
Opus 5.5 $0.00020 $0.01018
Sonnet 5.5 $0.00010 $0.00509
Haiku 4.5 $0.00005 $0.00254

Measured 4d ago against content hash 68550485ab49, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

elixir-writing-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/elixir-writing-docs/SKILL.md · 297 lines

How it starts

The opening of the file, as written. The whole thing — 297 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Elixir Writing Docs

Quick Reference

Topic Reference
Doctests: syntax, gotchas, when to use references/doctests.md
Cross-references and linking syntax references/cross-references.md
Admonitions, formatting, tabs references/admonitions-and-formatting.md

First-Line Summary Rule

ExDoc and tools like mix docs extract the first paragraph of @moduledoc and @doc as a summary. Keep the opening line concise and self-contained.

# GOOD - first line works as a standalone summary
@moduledoc """
Handles payment processing through Stripe and local ledger reconciliation.

Wraps the Stripe API client and ensures each charge is recorded in the
local ledger before returning a confirmation to the caller.
"""

# BAD - first line is vague, forces reader to continue
@moduledoc """
This module contains various functions related to payments.

It uses Stripe and also updates the ledger.
"""

The same rule applies to @doc:

# GOOD
@doc """
Charges a customer's default payment method for the given amount in cents.

Returns `{:ok, charge}` on success or `{:error, reason}` when the payment
gateway rejects the request.
"""

# BAD
@doc """
This function is used to charge a customer.
"""

@moduledoc Structure

A well-structured @moduledoc follows this pattern:

defmodule MyApp.Inventory do
  @moduledoc """
  Tracks warehouse stock levels and triggers replenishment orders.

  This module maintains an ETS-backed cache of current quantities and
  exposes functions for atomic stock adjustments. It is designed to be
  started under a supervisor and will restore state from the database
  on init.

  ## Examples

      iex> {:ok, pid} = MyApp.Inventory.start_link(warehouse: :east)
      iex> MyApp.Inventory.current_stock(pid, "SKU-1042")
      {:ok, 350}

  ## Configuration

  Expects the following in `config/runtime.exs`:

      config :my_app, MyApp.Inventory,
        repo: MyApp.Repo,
        low_stock_threshold: 50
  """
end

Read the full file on GitHub · 297 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · +5 lines · +3 tokens per session 68550485ab49
  2. 2mo ago First seen · 292 lines · 47 tokens per session scan A ca9d756e76a9

Subscribe to this mod's changes

elixir-writing-docs is a skill published in the GitHub repository existential-birds/beagle (91 stars, last pushed 4d ago), licensed Apache-2.0. It adds 50 tokens to every session and 2,544 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-16.

Related

elixir-writing-docs compared with skills from other repositories

elixir-writing-docs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
elixir-writing-docsexistential-birds/beagleSkill914d agoApache-2.0A50Claude Code, Codex
coding-standardsSimon-Hwang/gg-pluginsSkill24mo agononeA34Claude Code
codex-rule-routerSimon-Hwang/gg-pluginsSkill24mo agononeA39Claude Code
python-engineering-guidelinesanywhere-labs/Agents-AnywhereSkill3.9kyesterdayApache-2.0A75Codex
pr-to-go-lintergithub/gh-awSkill5.7ktodayMITA22Claude Code, Codex
splitting-oversized-modulesPostHog/posthog-fossSkill733todayMITA197Claude Code, Codex
ring:verifying-codeLerianStudio/ringSkill21829d agoApache-2.0A101Cursor