Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计提醒

web-doc-resolver网络文档解析器

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

238

周安装

10

GitHub Stars

7

下载量

83
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:web-doc-resolver(网络文档解析器)
来源仓库:https://github.com/d-o-hub/rust-self-learning-memory
仓库路径:skills/web-doc-resolver
安装命令:
npx skills add https://github.com/d-o-hub/rust-self-learning-memory --skill web-doc-resolver
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/d-o-hub/rust-self-learning-memory --skill web-doc-resolver

简介

用于解析和整理在线文档内容。web-doc-resolver 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合提取 README、API 说明等技术资料。
  • 可帮助统一术语、检查链接完整性。
  • 通过 GitHub 仓库安装,适用于主流 Agent 平台。
  • 涉及对外发布时应避免夸大描述或虚构信息。

SKILL.md

Web Documentation Resolver

Resolve query or URL inputs into compact, high-signal markdown for agents and RAG systems using an intelligent cascade.

When to Use This Skill

Activate this skill when you need to:

  • Fetch and parse documentation from a URL
  • Search for technical information across the web
  • Build context from web sources
  • Extract markdown from websites
  • Query for technical documentation, APIs, or code examples

Platform Tool Mapping

This skill works across multiple platforms. Use the appropriate tools for your platform:

PlatformFetch ToolSearch Tool
opencodewebfetchwebsearch
claude codeWebFetch (MCP)WebSearch (MCP)
blackboxweb_fetchweb_search
Python scriptAuto-detects available toolsAuto-detects available tools

Cascade Resolution Strategy

For URL inputs

Use this cascade (in order):

  1. Check llms.txt first: Probe https://origin/llms.txt for site-provided structured documentation (free, always check first)
  2. Fetch URL: Use platform's fetch tool to get markdown content
  3. Search fallback: Use platform's search tool to find cached/mirrored versions if direct fetch fails

For query inputs

Use this cascade (in order):

  1. Search first: Use platform's search tool with relevant query (fast, free)
  2. Fetch top results: Use fetch tool to get markdown from top search results if needed

Implementation

Python Script (scripts/resolve.py)

The skill includes a Python script that auto-detects available tools:

# Resolve a URL
python scripts/resolve.py "https://docs.rust-lang.org/book/"

# Resolve a query
python scripts/resolve.py "Rust async programming"

# JSON output
python scripts/resolve.py "query" --json

# Custom max chars
python scripts/resolve.py "query" --max-chars 4000

# Force specific backend
python scripts/resolve.py "query" --backend httpx

Direct Tool Usage by Platform

opencode

# Check for llms.txt
webfetch https://example.com/llms.txt

# Fetch URL
webfetch --format markdown https://docs.rust-lang.org/book/

# Search
websearch "Rust book documentation"

claude code (MCP)

# Check for llms.txt
WebFetch(url="https://example.com/llms.txt")

# Fetch URL
WebFetch(url="https://docs.rust-lang.org/book/")

# Search
WebSearch(query="Rust book documentation")

blackbox

# Check for llms.txt
web_fetch(url="https://example.com/llms.txt", prompt="Extract all content")

# Fetch URL
web_fetch(url="https://docs.rust-lang.org/book/", prompt="Extract main content")

# Search
web_search(query="Rust book documentation")

Usage Examples

Basic URL Resolution

# Using Python script (auto-detects backend)
python scripts/resolve.py "https://docs.rust-lang.org/book/"

# Or use platform tool directly
webfetch https://docs.rust-lang.org/book/  # opencode

Query Resolution

# Using Python script
python scripts/resolve.py "Rust async programming best practices 2026"

# Or use platform tool directly
websearch "Tokio runtime configuration options"  # opencode

Workflow for Building Context

  1. Check for llms.txt first: Probe https://origin/llms.txt
  2. Fetch content: Use fetch tool to get markdown from the URL
  3. Search if needed: Use search tool for additional context or when fetch fails

Best Practices

  • Check for llms.txt first: Many documentation sites have /llms.txt for structured content
  • Use specific queries: "rust tokio spawn vs spawn_blocking difference" gets better results than "rust tokio"
  • Filter by date: Add "2025" or "2026" to queries for current information
  • Prefer official docs: Always check official documentation first
  • Try multiple sources: If one URL fails, search for alternative mirrors

Quality Indicators

Good content has:

  • Code examples with language markers
  • API signatures and type annotations
  • Configuration examples
  • Version information
  • Clear headings and structure

Poor content has:

  • Excessive boilerplate/navigation
  • Paywall blocks
  • Login requirements
  • Heavy advertising

Error Handling

  • Provider failures should trigger cascade fallback
  • Use alternative sources when primary sources fail
  • Log errors for debugging
  • Fall back to search when direct fetch fails

Testing

Run tests:

cd .agents/skills/web-doc-resolver
python -m pytest tests/ -v

Run samples:

python samples/sample_basic.py
python samples/sample_json.py

Files

  • scripts/resolve.py - Main implementation (multi-backend)
  • tests/test_resolve.py - Unit tests
  • samples/sample_basic.py - Basic usage examples
  • samples/sample_json.py - JSON output examples
  • reference.md - Detailed reference documentation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.01%
按下载量换算30

Claude

30.65%
按下载量换算25

Cursor

20.72%
按下载量换算17

Gemini CLI

9.91%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/d-o-hub/rust-self-learning-memory --skill web-doc-resolver 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills