From c1895901a1fbadd232e4277fd8041ff2348dc697 Mon Sep 17 00:00:00 2001 From: zlei9 Date: Sun, 29 Mar 2026 10:15:28 +0800 Subject: [PATCH] Initial commit with translated description --- SKILL.md | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ _meta.json | 6 ++++++ 2 files changed, 65 insertions(+) create mode 100644 SKILL.md create mode 100644 _meta.json diff --git a/SKILL.md b/SKILL.md new file mode 100644 index 0000000..de3bc93 --- /dev/null +++ b/SKILL.md @@ -0,0 +1,59 @@ +--- +name: ddg-search +description: "使用DuckDuckGo Lite通过网络搜索,无需API密钥。当web_search因missing_brave_api_key错误失败,或需要搜索网页且未配置搜索API时用作备用。" +--- + +# DuckDuckGo Search via web_fetch + +Search the web using DuckDuckGo Lite's HTML interface, parsed via `web_fetch`. No API key or package install required. + +## How to Search + +``` +web_fetch(url="https://lite.duckduckgo.com/lite/?q=QUERY", extractMode="text", maxChars=8000) +``` + +- URL-encode the query — use `+` for spaces +- Use `extractMode="text"` (not markdown) for clean results +- Increase `maxChars` for more results + +## Region Filtering + +Append `&kl=REGION` for regional results: + +- `au-en` — Australia +- `us-en` — United States +- `uk-en` — United Kingdom +- `de-de` — Germany +- `fr-fr` — France + +Full list: https://duckduckgo.com/params + +### Example — Australian search + +``` +web_fetch(url="https://lite.duckduckgo.com/lite/?q=best+coffee+melbourne&kl=au-en", extractMode="text", maxChars=8000) +``` + +## Reading Results + +Results appear as numbered items with title, snippet, and URL. Skip entries marked "Sponsored link" (ads) — organic results follow. + +## Search-then-Fetch Pattern + +1. **Search** — query DDG Lite for a list of results +2. **Pick** — identify the most relevant URLs +3. **Fetch** — use `web_fetch` on those URLs to read full content + +## Tips + +- First 1-2 results may be ads — skip to organic results +- For exact phrases, wrap in quotes: `q=%22exact+phrase%22` +- Add specific terms to narrow results (site name, year, location) + +## Limitations + +- No time/date filtering (DDG Lite doesn't support `&df=` reliably via fetch) +- Text results only — no images or videos +- Results sourced from Bing (may differ from Google) +- Google search does NOT work via web_fetch (captcha blocked) diff --git a/_meta.json b/_meta.json new file mode 100644 index 0000000..78ea156 --- /dev/null +++ b/_meta.json @@ -0,0 +1,6 @@ +{ + "ownerId": "kn74ca7cqvsfmq67r6x9m1nc45816qe9", + "slug": "ddg-web-search", + "version": "1.0.0", + "publishedAt": 1771148054829 +} \ No newline at end of file