do-web-doc-resolver

do-web-doc-resolver is a skill for Claude Code, Codex from d-o-hub/github-template-ai-agents. It costs 94 tokens per session (1,453 once invoked), scanned A, original, MIT.

A Python tool that turns web addresses and search questions into short, structured Markdown for AI agents.

In plain words
What is it for?
Use it to retrieve documentation, search technical information, prepare web-based context, check content format, and inspect how a result was found.
Why use it?
It reduces the work of finding, fetching, and cleaning documentation or other web content. It can try several sources when one is unavailable.

Skill for Claude CodeCodex

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 skills/d-o-hub/github-template-ai-agents/do-web-doc-resolver
Any agent
npx skills add d-o-hub/github-template-ai-agents --skill do-web-doc-resolver
Clone the repo
git clone --depth 1 https://github.com/d-o-hub/github-template-ai-agents

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for do-web-doc-resolver

README.md
[![agentmods](https://agentmods.dev/badge/skills/d-o-hub/github-template-ai-agents/do-web-doc-resolver.svg)](https://agentmods.dev/skills/d-o-hub/github-template-ai-agents/do-web-doc-resolver)
Your own site
<a href="https://agentmods.dev/skills/d-o-hub/github-template-ai-agents/do-web-doc-resolver"><img src="https://agentmods.dev/badge/skills/d-o-hub/github-template-ai-agents/do-web-doc-resolver.svg" alt="Measured on agentmods" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,453 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.00094 $0.01453
Opus 5 $0.00047 $0.00727
Sonnet 5 $0.00019 $0.00291
Haiku 4.5 $0.00009 $0.00145

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

Security

Grade A, and why

do-web-doc-resolver 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 5d ago.

The scan reads SKILL.md. This mod also ships 48 executable files (__init__.py, __main__.py, scripts/__init__.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/do-web-doc-resolver/SKILL.md · 139 lines

How it starts

The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Web Doc Resolver Skill

Resolve URLs and queries into compact, LLM-ready markdown using a progressive, free-first cascade with 2026 production patterns.

When to Use

  • Fetch and parse documentation from a URL
  • Search for technical information across the web
  • Build context from web sources for AI agents
  • Validate content against agent-docs-spec v0.3.0
  • Trace resolution trajectories for debugging

Quick Start

python -m scripts.resolve "https://docs.rust-lang.org/book/"
python -m scripts.resolve "Rust async programming" --profile quality --trace --json

Cascade Strategy

URL: Cache → llms.txt → Jina → Direct Fetch → Firecrawl → Mistral Browser → DuckDuckGo

Query: Cache → Exa MCP → Exa SDK → Tavily → Serper → DuckDuckGo → Mistral Web Search

Providers (12 total)

Provider Type Free Latency
llms_txt URL Yes ~100ms
jina URL Yes ~300-1500ms
exa_mcp Query Yes Varies
duckduckgo Query Yes ~2s
direct_fetch URL Yes ~500ms
exa, tavily, serper Query No ~1s
firecrawl, mistral_* URL/Query No ~2-3s
docling, ocr URL No ~3-5s

Execution Profiles

Profile Attempts Paid Latency Quality
free 3 0 6s 0.70
fast 2 1 4s 0.60
balanced 4-6 1-2 9-12s 0.65
quality 6-10 3-5 15-20s 0.55

Key Features

Structured Tool Contracts: Every provider returns ProviderResult(ok, content, error, meta) with ProviderMeta(tool, duration_ms, cache_hit, quality_score, error_type).

Layered Routing Memory: TTL-based decay (30 days), metadata filtering, recency weighting. See scripts/routing_memory.py.

Trace-Based Evaluation: Emit ResolutionTrace with TraceStep per provider. CLI: --trace --json.

Agent-Friendly Docs Validation: Validates against agent-docs-spec v0.3.0 — 10 checks across 7 categories.

Read the full file on GitHub · 139 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 139 lines · 94 tokens per session scan A cc5a2a8edd3a

Subscribe to this mod's changes

do-web-doc-resolver is a skill published in the GitHub repository d-o-hub/github-template-ai-agents (2 stars, last pushed 2d ago), licensed MIT. It adds 94 tokens to every session and 1,453 once invoked, about $0.0005 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-31.

Related

Other skills, from other repositories

opencli-sitemap-author

Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting local site knowledge into the repo.

jackwener/OpenCLI · 67 tokens

specification-writing

Write the full patent specification from claims and invention disclosure. Use when user says "撰写说明书", "write specification", "写说明书", "patent description", or wants to draft the complete patent specification.

wanshuiyin/Auto-claude-code-research-in-sleep · 49 tokens

training-check

Interactively monitor training metrics from the current Codex session, periodically checking WandB or fallback logs for NaN, divergence, plateaus, and broken runs.

wanshuiyin/Auto-claude-code-research-in-sleep · 35 tokens

golden-rss

Use when testing the rss golden build.

yusufkaraaslan/Skill_Seekers · 12 tokens

overleaf-sync

Two-way sync between a local paper directory and an Overleaf project, so ARIS audit/edit workflows stay on the local copy while collaborators edit in the Overleaf web UI. Use when user says "同步 overleaf", "overleaf sync", "推送到 overleaf", "connect overleaf", "Overleaf 桥接", "pull overleaf", "push overleaf", or wants to…

wanshuiyin/Auto-claude-code-research-in-sleep · 97 tokens

omh-rust

This is a Hermes-native rust workflow skill.

rlaope/oh-my-hermes · 69 tokens