/amplify:elixir-docsfrom amplify
Writes production-quality @moduledoc, @doc, and @typedoc annotations for Elixir modules, scaling doc shape to module complexity.
Ships in amplify. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Write @moduledoc, @doc, and @typedoc annotations for Elixir modules. Doc shape follows module shape: scale documentation length and structure to match the module's complexity and public surface area. Delegate to the tech-docs-writer agent for the actual writing.
@moduledocDetermine which modules need documentation.
apps/*/lib/ instead of lib/:find lib/path/to/namespace -name '*.ex' | sort
Audit current doc quality. Check for missing @moduledoc, misuse of @moduledoc false, or thin/outdated docs:
# Find modules with no @moduledoc at all
while IFS= read -r -d '' f; do
grep -q '@moduledoc' "$f" || echo "NO MODULEDOC: $f"
done < <(find lib/path -name '*.ex' -print0)
# Find modules with @moduledoc false that might deserve docs
grep -rl '@moduledoc false' lib/path/to/namespace/
Categorize each module before writing. Respect the project's existing conventions for what gets documented. If the project already uses @moduledoc false consistently, follow that boundary. Otherwise, use these defaults:
*HTML view modules. Use @moduledoc false.Before writing any docs, understand the project:
@moduledoc blocks. Learn the project's voice and conventions from these.docs/ that should be cross-referenced.Documentation that contradicts the codebase is worse than no documentation.
Group modules by domain proximity (3-7 modules per agent). Modules that reference each other belong in the same group so the agent can read context.
Good groupings:
Read references/doc-standard.md now. Skip if the standard is already loaded in context. If the file is missing or empty, use the ExDoc conventions and quality bar sections below as the fallback standard.
For each group, launch a tech-docs-writer agent using the Agent tool (subagent_type: tech-docs-writer, run_in_background: true). Paste the full documentation standard into every agent prompt — the standard is designed to fit in a single prompt alongside the module source.
If the Agent tool is not available or background execution is not supported, process groups sequentially in the current session using the same prompt template and quality bar.
Agent prompt template:
Write documentation for these Elixir modules following the documentation
standard below. Read each module fully before writing. For context, also
read [list related modules the agent should understand].
Modules to document:
1. `path/to/module_a.ex` — one-line role description
2. `path/to/module_b.ex` — one-line role description
IMPORTANT:
- Do NOT change any code logic — only add or update documentation.
- Scale doc length to module complexity. Do not force structure on simple modules.
- Every public function needs at least one example.
- Use the `* :name` — description format for options.
- Use ExDoc cross-references, not plain backticks, for module/function refs.
[PASTE FULL DOC STANDARD FROM references/doc-standard.md]
After all agents complete:
mix compile --warnings-as-errors. If this fails due to pre-existing warnings unrelated to documentation changes, fall back to mix compile without --warnings-as-errors and note the pre-existing warnings separately.mix test test/my_app/billing/. For umbrella apps, run from the appropriate app directory.mix test only when requested or when scope is unclear.# Find documented modules missing examples (checks ## Example headers and iex> doctests)
while IFS= read -r -d '' f; do
has_moduledoc=$(grep -c '@moduledoc' "$f")
has_doc_false=$(grep -c '@moduledoc false' "$f")
has_example=$(grep -cE '(## Example|iex>)' "$f")
if [ "$has_moduledoc" -gt 0 ] && [ "$has_doc_false" -eq 0 ] && [ "$has_example" -eq 0 ]; then
echo "NO EXAMPLES: $f"
fi
done < <(find lib/path -name '*.ex' -print0)
Module.function/arity syntax, not plain backtick text.If modules still have quality gaps after one round of fixes, flag them to the user rather than retrying indefinitely.
Elixir documentation lives in BEAM files and is consumed three ways:
h Module or h Module.function prints plain text@doc on hoverWrite docs that work well in all three. Read references/doc-standard.md for the full set of ExDoc features. Skip if already loaded.
Summary of key features:
Pipeline.run/2, t:Context.t/0, c:GenServer.init/1 auto-link in hexdocs> #### Warning {: .warning} for callouts, gotchas, and audience scopingiex> examples in @doc run as ExUnit tests; use for pure functions only@moduledoc since:, @doc since:, @doc deprecated: rendered by ExDocAudience: An engineer who joined the team this week. Knows Elixir but not this codebase.
A first-time engineer opens any documented module and answers these in under 60 seconds:
Friction log test: Open 2-3 documented modules cold. Answer "Can I call this function safely?" using only the docs. If source code is needed, send the module back for a rewrite.
Docs rot: Docs must be updated in the same change that modifies behavior. Stale docs actively mislead.
@doc to trivial getters, delegations, or single-line wrappers.What SKILL.md sets; muted values are Claude Code's defaults
28 skills in this plugin
/ask-questions-if-underspecifiedPauses to ask focused clarifying questions when a request lacks enough information to execute correctly. Use when the task is vague, has multiple plausible interpretations, is missing acceptance criteria, or when wrong assumptions would produce significant wasted work. Don't use when the request is already well-specified, when requirements were clarified earlier in the same conversation, when the task is trivially unambiguous (e.g., fix a specific typo), or when general clarification techniques are being discussed rather than applied to a specific task./browse-siteNavigates and interacts with websites using the agent-browser CLI, including clicking elements, filling forms, taking screenshots, extracting page content, and automating multi-step browser workflows. Use when the user asks to open a URL, click something on a page, fill out a web form, take a page screenshot, scrape or extract data from a website, or automate a browser task. Don't use for Playwright, Puppeteer, or Selenium scripts; don't use for browser extension development; don't use for questions about browser APIs, JavaScript, or frontend code that don't require live browser interaction.
/code-simplifierRefines existing code for clarity, readability, and maintainability without changing behavior, interfaces, or outputs. Use when asked to "simplify", "clean up", "refactor for readability", "reduce complexity", or polish code without adding features. Don't use when the request involves changing behavior, adding functionality, migrating to a new pattern or library, renaming public APIs, or any structural change that alters interfaces or outputs.Generated from the plugin's indexed repository (wunki/amplify) — no native marketplace selected
npx claudepluginhub p/wunki-amplifyOther plugins' skills for the same job