fetch-docs

An agent that retrieves complete documentation from a given URL and saves it to a specified file.

In plain words
What is it for?
Use it to fetch web documentation, preserve its formatting and code examples, and save the result as Markdown.
Why use it?
It avoids manually copying documentation and keeps the retrieved content unchanged for later use or benchmarking.

Agent

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.

agentmods
npx agentmods add agents/basher83/lunar-claude/fetch-docs
Clone the repo
git clone --depth 1 https://github.com/basher83/lunar-claude
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 258 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00026 $0.00258
Opus 5 $0.00013 $0.00129
Sonnet 5 $0.00005 $0.00052
Haiku 4.5 $0.00003 $0.00026

Measured 3d ago against content hash 59f165fc1116, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fetch-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 3d 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.

examples/agents/fetch-docs.md · 29 lines

What it actually says

You are a documentation fetching specialist using the Sonnet 4.5 model.

Your task is to:

  1. Fetch documentation from the provided URL using mcp__firecrawl-mcp__firecrawl_scrape or WebFetch (prefer mcp__firecrawl-mcp__firecrawl_scrape)
  2. Save the complete content to the specified output file path
  3. Ensure all content is preserved exactly as received
  4. Report success or failure with the file path

When invoked:

  • Use mcp__firecrawl-mcp__firecrawl_scrape or WebFetch (prefer mcp__firecrawl-mcp__firecrawl_scrape) with the prompt "Return the complete documentation content"
  • Write the full content to the specified markdown file
  • Do not summarize or modify the content
  • Preserve all formatting, code blocks, and examples
  • Report the output file path when complete

Always fetch and save the complete documentation without truncation.

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. 3d ago First seen · 29 lines · 26 tokens per session scan A 59f165fc1116

Subscribe to this mod's changes

fetch-docs is an agent published in the GitHub repository basher83/lunar-claude (22 stars, last pushed 3d ago), licensed MIT. It adds 26 tokens to every session and 258 once invoked, about $0.0001 per session on Opus 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-08-30.

Related

Other agents, from other repositories

docs-specialist

Expert technical writer focused on clear, complete, and continuously accurate documentation. Audits, writes, and improves all project docs from README to API references.

ZaxbyHub/opencode-swarm · 34 tokens

document-accessibility-wizard

Interactive document accessibility audit wizard. Use to run a guided, step-by-step accessibility audit of Office documents (.docx, .xlsx, .pptx) and PDFs. Supports single files, multiple files, entire folders with recursive scanning, and mixed document types. Orchestrates specialist sub-agents (word-accessibility…

Community-Access/accessibility-agents · 89 tokens

excel-digest

Digestion de hojas de calculo Excel (XLSX/XLS/CSV) — pipeline de 4 fases. Extrae estructura, formulas, patrones de datos y reglas de negocio de spreadsheets. Usa contexto REAL del proyecto. Actualiza documentos de contexto vivos. Usar PROACTIVELY cuando se detectan Excel nuevos en carpetas de proyecto o SharePoint.

gonzalezpazmonica/pm-workspace · 78 tokens

openwriter-enrichment-minion

Enriches openwriter documents flagged stale by openwriter's save-time drift/volume detector. Dispatch when ENRICHMENTSTATUS appears in MCP init instructions OR when a ⚠ N docs need enrichment footer fires on listdocuments / listworkspaces / getworkspacestructure. Reads each dirty doc and stamps it with a single field…

travsteward/openwriter · 94 tokens

sdpm-composer

Composes assigned slides from approved specs. No user interaction. Used in Phase 2 (compose) of the sdpm slide workflow, invoked in parallel by the sdpm orchestrator.

aws-samples/sample-spec-driven-presentation-maker · 42 tokens

llm2bedrock-report-generator

Synthesize all prior phase results into a final Markdown migration report — model mapping, eval scores, code diffs, cost comparison, next steps. Writes MIGRATIONREPORT .md and returns a structured report object.

awslabs/startups · 52 tokens