通过抓取 DuckDuckGo 的 HTML 页面进行免费本地网页搜索,无需 API 密钥。在 web_search 工具不可用或缺少 API 密钥时使用,支持快速查询结果、来源信任评分、重试与退避机制,以及适用于管道的 JSON 输出格式
通过抓取 DuckDuckGo 的 HTML 页面进行免费本地网页搜索,无需 API 密钥。在 web_search 工具不可用或缺少 API 密钥时使用,支持快速查询结果、来源信任评分、重试与退避机制,以及适用于管道的 JSON 输出格式
Free local DuckDuckGo web search without API keys, with source scoring, retries, and JSON output for pipelines
Free local web search via DuckDuckGo HTML scraping with no API key. Use when web_search tool is unavailable or missing API keys, and you need fast query results with source trust scoring, retry/backoff handling, and JSON output suitable for pipelines.
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
---
name: local-web-search
description: Free local web search via DuckDuckGo HTML scraping with no API key. Use when web_search tool is unavailable or missing API keys, and you need fast query results with source trust scoring, retry/backoff handling, and JSON output suitable for pipelines.
---
# Local Web Search
Run local search without paid APIs.
## Command
```bash
./skills/local-web-search/scripts/local_search.py "<query>" --max 8
```
## Output
Returns JSON with:
- query
- count
- disclaimer
- security
- results[] {title, url, snippet, trust{score,tier,reason}}
## Trust Scoring
- high: docs/papers/.gov/.edu/authoritative domains
- medium: reputable publications/default domains
- low: user-generated platforms (e.g., dev.to, medium, substack)
Use trust score for ranking/filtering only; always verify key claims with primary sources.
## Security
- No environment/token exfiltration
- No external writes
- Outbound HTTPS GET only to search endpoint
## Reliability
- Handles transient errors with exponential backoff + jitter
- Public scraping behavior can change; parser may need updates
文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。