360 Secure SkillHub
360 安全技能中心

llms-txt-sniffer

该 Skill 面向用户明确给出的文档站点地址,先以 HTTP 头探测方式依次检查输入地址与域名根下的 llms.txt,失败时调用随附的 Python 嗅探脚本,并以 sitemap.xml 作为兜底,最终给出站点索引的结构概览并优先使用索引中的链接以减少逐页抓取。

分类:搜索
jdchi
jdchi
热度 30.23
最近更新 2026-05-11 17:37:38

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add jdchi/llms-txt-sniffer
兼容性
通用兼容
联网要求
需要联网
数据出网
数据不出本机
Metadata
name
llms-txt-sniffer
description
Locate and utilize AI-friendly documentation index files (llms.txt, llms-full.txt) or sitemap.xml. Use when encountering documentation URLs (containing /docs/, /api-reference/, /guides/, or platform subdomains) to instantly map sites and reduce token burn.
metadata
{"openclaw":{"requires":{"bins":["python3","curl"]},"version":"1.3.1"}}
argument-hint
["url"]
allowed-tools
Bash, Read

llms-txt-sniffer: The Smart Document Radar

This skill streamlines documentation ingestion by locating the most AI-optimized version of a site's content.

🧠 Why llms.txt?

It provides a high-density, Markdown-based index designed for LLMs to map entire sites instantly and save tokens.

🚀 Discovery Strategy (Two-Stage)

Stage 1: Quick Jump Probes (Instructional)

  1. URL + /llms.txt: Probe {input_url}/llms.txt using curl -I.
  2. Domain Root: Probe https://{domain}/llms.txt using curl -I.

Stage 2: Advanced Sniffing (Tool-based)

If Stage 1 fails, run the companion sniffer script located in this skill's directory: python3 sniffer.py $ARGUMENTS

📜 Behavioral Rules

  • User-Initiated Only: Only invoke this skill when the user explicitly provides a documentation URL. Do not autonomously scan domains.
  • Switch to High-Speed Mode: Once an index is found, prioritize its links over manual scraping.
  • Index Summary: Always present a brief structure overview.
  • Fallback: Use sitemap.xml parser results if llms.txt is missing.