
doc-reader
Read and navigate external documentation efficiently. Invoke when the task requires checking how a specific function, endpoint, or configuration option works; when the user references an API, SDK, library, or third-party tool by name; when any docs URL or documentation site is mentioned; or when implementing something that depends on an external service or package.
- Installs
- 324
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/mintlify/docs --skill doc-reader- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads doc-reader automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Read documentation effectively
This skill helps you efficiently consume documentation without overwhelming your context window or missing important information.
Quick reference: choose your approach
| Situation | Approach |
|---|---|
| First visit to a doc site | Check for llms.txt, then MCP |
| Know exactly what you're looking for | MCP search or grep llms-full.txt |
| Need to read a specific page | Try .md URL variant first, then HTML |
| Exploring/browsing | View HTML page in browser |
| Need comprehensive understanding | Load llms-full.txt (check length first) |
| Multiple doc sites in one task | Set up MCPs for each |
Step 1: Discover what's available
When you encounter a documentation site, check for AI-friendly resources.
Check for llms.txt
Every well-structured doc site should have an llms.txt file at the root. For example https://docs.example.com/llms.txt or https://example.com/docs/llms.txt.
This file contains:
- A description of what the documentation covers
- Links to each page in the docs
Sites may also have llms-full.txt files at the root which contain all the content on the documentation site as a single .md file.
Try markdown URL variants
Many doc sites serve clean markdown versions of pages at .md URL variants. Prefer the .md URL extensions for easier-to-parse content.
For any specific page you need to read, try the .md variant first:
https://docs.example.com/page → try https://docs.example.com/page.md
If it returns valid markdown (not a 404 or HTML error page), use that instead of fetching the HTML.
Check for skill.md
Some documentation sites provide a skill.md file that teaches you how to work with the product that is documented. Check for it at the root like https://docs.example.com/skill.md or https://example.com/docs/skill.md.
Read the skill to understand the product and features. Add the skill if it will be helpful with your current task:
npx skills add docs.example.com/skill.md
Check for MCP server
Some documentation sites provide MCP servers for semantic search. The MCP endpoint often follows this pattern:
https://docs.example.com/mcp
Step 2: Set up MCP if available
MCP (Model Context Protocol) servers let you search documentation semantically rather than relying on keyword matching or loading entire files.
Connecting to the MCP
The setup process varies by platform. For Claude Code:
{
"mcpServers": {
"example-docs": {
"type": "http",
"url": "https://docs.example.com/mcp"
}
}
}
Once connected, you'll have access to the search tool for semantic search across the documentation. The tool follows the naming pattern Search{DocsTitle} (for example, SearchMintlify).
Managing multiple MCPs
When working with multiple documentation sources:
- Give each MCP a descriptive name based on the product/library
- Use the appropriate MCP for each query rather than searching all of them
Step 3: Choose your consumption strategy
Strategy A: MCP search (preferred for targeted questions)
Use when:
- You have a specific question or topic
- You're looking for a particular API, function, or concept
- You want semantically relevant results, not just keyword matches
Use the MCP search tool with a natural language query describing what you need.
Strategy B: Fetch markdown variant (for reading specific pages)
Use when:
- You need to read a specific documentation page
- MCP search returned a result but you need the full page content
- HTML rendering is adding noise or causing truncation
Try the .md variant of the page URL:
curl -s "https://docs.example.com/page.md"
If it returns valid markdown, use it. If it 404s, fall back to HTML (Strategy E).
Strategy C: Grep llms-full.txt (for keyword-specific searches)
Use when:
- You need to find exact matches (function names, error codes, specific terms)
- MCP isn't available
- You want to see all occurrences of a term
Grep for your terms:
curl -s "https://docs.example.com/llms-full.txt" | grep -C 3 "your-search-term"
Strategy D: Load full content (for comprehensive understanding)
Use when:
- You need complete context about a library/API
- The llms-full.txt is small enough (< 15k tokens recommended)
- You're doing extensive work that will reference many parts of the docs
Always check length first. Before loading a full file:
curl -sI "https://docs.example.com/llms-full.txt" | grep -i content-length
If the file is too large, consider:
- Loading specific files identified from llms.txt instead
- Using MCP search for specific topics
- Loading in chunks as needed
Strategy E: View HTML page (for exploration and navigation)
Use when:
- You need to understand the documentation structure
- The user needs to navigate or click through the docs
- You want to see diagrams, interactive examples, or formatted content
- You're helping the user find something and they need to continue browsing
Fetch and render the HTML page, or direct the user to open it in their browser. HTML pages provide:
- Navigation menus showing doc structure
- Interactive code examples
- Visual diagrams and illustrations
- Links to related topics
Watch for truncation. Pages over ~150,000 characters may get cut off, which means you may miss critical information without knowing it. If a page seems incomplete, try the .md URL variant (Strategy B) or look for section-specific files in llms.txt.
Common patterns
Pattern: Research before implementation
- Fetch llms.txt to understand documentation scope
- Set up MCP if available
- Use MCP search for your specific implementation questions
- Load relevant sections as needed
- Keep MCP connected for follow-up questions during implementation
Pattern: Debugging with docs
- Search for the exact error message or code using grep
- If no results, use MCP search with a description of the problem
- Load the relevant section for full context on the solution
Pattern: Learning a new library
- View the HTML landing page to understand structure
- Load llms-full.txt if small enough, or use section-specific files
- Set up MCP for ongoing reference during development
Pattern: Quick reference lookup
- MCP search with the function/method name
- Or grep llms-full.txt for exact matches
Tips for efficiency
-
Prefer MCP for Mintlify sites: Semantic search is more efficient than loading and parsing raw text.
-
Cache strategically: If you'll reference the same docs repeatedly, loading llms-full.txt once may be more efficient than multiple MCP searches.
-
Use section files: If llms.txt links to section-specific files (like
api/llms.txt), load only what you need. -
Parallel MCP searches: When working with multiple doc sources, search them in parallel rather than sequentially.
Handling edge cases
No llms.txt available
Fall back to:
- Check if there's an MCP endpoint anyway
- Try
.mdURL variants of specific pages you need to read - Use WebFetch to read specific documentation pages
- Search the web for the documentation
Very large documentation sets
For docs over 15k tokens:
- Use MCP search instead of loading the full file
- Load section-specific files as needed
- Ask the user which areas are most relevant
Page not found (404)
If a page 404s:
- Check the 404 page for links to relevant content
- Check llms.txt for the current URL — it reflects the live site structure
- Search the MCP with the page topic to find where the content moved
- Note to the user that the content may have moved and provide the updated URL
Outdated or conflicting information
If you find documentation that seems outdated:
- Check for version indicators in the docs
- Note the discrepancy to the user
- Suggest checking the changelog or release notes
FAQ
What does the doc-reader skill do?
Read and navigate external documentation efficiently. Invoke when the task requires checking how a specific function, endpoint, or configuration option works; when the user references an API, SDK, library, or third-party tool by name; when any docs URL or documentation site is mentioned; or when implementing something that depends on an external service or package.
How do I install doc-reader?
Run npx skills add https://github.com/mintlify/docs --skill doc-reader in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/doc-reader/ (personal) or .claude/skills/doc-reader/ (project).
Which AI agents can use doc-reader?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is doc-reader safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains doc-reader?
It is published by mintlify/docs in mintlify/docs. It has 324 recorded installs.
More from mintlify/docs
mintlify
mintlify/docs
Set up, write, and publish documentation sites with Mintlify, and work on existing Mintlify projects. Use when the user wants to create a docs site for a repo or product, turn a docs/ folder or README into a hosted docs site, document an API from an OpenAPI spec, migrate docs from Docusaurus, GitBook, ReadMe, Fern, or another platform, preview docs locally, or publish docs to a shareable URL. Also use when editing a project with docs.json, including pages, navigation, components, API references, and customizing appearance or browser behavior with CSS, JavaScript, React, and snippets.
doc-author
mintlify/docs
Write, edit, and maintain documentation. Use for collaborative drafting, autonomous writing, or improving existing docs. Defaults to collaborative mode where the human makes final decisions. Built by Mintlify.
mintlify-api
mintlify/docs
Interact with the Mintlify REST API to manage deployments, trigger builds, and query documentation site metadata programmatically.
Popular docs & writing skills
grill-with-docs
mattpocock/skills
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
lark-markdown
open.feishu.cn
飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。
writing-for-agents
mattpocock/skills
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
slideshow
heygen-com/hyperframes
Build a HyperFrames slideshow to present live - slides, fragment reveals, branching hotspots and presenter mode with speaker notes, served by hyperframes present - or turn an existing page into one. Use when the person wants a deck or presentation rather than a rendered video.
writing-beats
mattpocock/skills
Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.
writing-shape
mattpocock/skills
Writing, exploit: shape raw material into an article, paragraph by paragraph.