# Search Hexdocs

> Search Hex package documentation for Elixir/Erlang.

- Skill: `majiayu000/search-hexdocs` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/search-hexdocs`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/search-hexdocs/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/search-hexdocs

---


# Search hexdocs

Search [hexdocs.pm](https://hexdocs.pm) documentation.

## Usage

```bash
{baseDir}/scripts/hexdocs.js <QUERY> [OPTIONS]
```

## Examples

```bash
# Search all packages
{baseDir}/scripts/hexdocs.js "GenServer callbacks"

# Filter by package
{baseDir}/scripts/hexdocs.js "Ecto.Query" --packages ecto

# Multiple packages
{baseDir}/scripts/hexdocs.js "LiveView hooks" --packages phoenix_live_view,phoenix

# Limit results
{baseDir}/scripts/hexdocs.js "plug conn" --limit 5

# JSON output
{baseDir}/scripts/hexdocs.js "json encode" --packages jason --json
```

## Output Format

```
Results: 42 (showing 10)

<result index="0" package="phoenix" ref="Phoenix.Controller.html#json/2" title="json/2">
Sends JSON response...
</result>
```

