Claude Code hexdocs-fetcher skill: Look up Elixir APIs on HexDocs
Use WebFetch on a focused HexDocs page to look up a function signature, installation instructions, or examples. The workflow is useful when documentation differs by release.
中文Install in Claude Code
Claude Code needs access to HexDocs. Check mix.lock or the project's Elixir version when the API must match a specific release.
- Download the repository snapshot at the linked commit. Copy the entire plugins/elixir-phoenix/skills/hexdocs-fetcher/ directory into .claude/skills/hexdocs-fetcher/ in your practice project.
- Check that SKILL.md is directly inside .claude/skills/hexdocs-fetcher/. Open Claude Code from the project root.
- Enter /hexdocs-fetcher to start the example below.
Example task
Run /hexdocs-fetcher with https://hexdocs.pm/elixir/Enum.html. Ask for Enum.map/2 with a source link and an original example that adds one to each element of [2, 4].What to check
The answer identifies the enumerable and callback inputs, gives [3, 5] as the result, and links the module documentation.
Original SKILL.md on GitHub · Updated
Frequently asked question
Why should I check mix.lock before looking up a package API?
The project may use a release other than the current one. Find documentation for the locked version to check which functions it supports.