Brave Search
badlogic/pi-skills
Web search and content extraction via Brave Search API. An agent skill from badlogic/pi-skills.
Performs web searches using DuckDuckGo to retrieve real-time information from the internet.
$ npx skills add CraftOS-dev/CraftBot --skill duckduckgo-search -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install CraftOS-dev/CraftBot duckduckgo-search --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/CraftOS-dev/CraftBot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/duckduckgo-search .claude/skills/duckduckgo-search && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "duckduckgo-search" agent skill from https://github.com/CraftOS-dev/CraftBot/tree/main/skills/duckduckgo-search into .claude/skills/duckduckgo-search/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "duckduckgo-search", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/CraftOS-dev/CraftBot/tree/main/skills/duckduckgo-searchType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add CraftOS-dev/CraftBot --skill duckduckgo-search -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install CraftOS-dev/CraftBot duckduckgo-search --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/CraftOS-dev/CraftBot.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/duckduckgo-search .agents/skills/duckduckgo-search && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "duckduckgo-search" agent skill from https://github.com/CraftOS-dev/CraftBot/tree/main/skills/duckduckgo-search into .agents/skills/duckduckgo-search/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "duckduckgo-search", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add CraftOS-dev/CraftBot --skill duckduckgo-search -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install CraftOS-dev/CraftBot duckduckgo-search --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/CraftOS-dev/CraftBot.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/duckduckgo-search .cursor/skills/duckduckgo-search && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "duckduckgo-search" agent skill from https://github.com/CraftOS-dev/CraftBot/tree/main/skills/duckduckgo-search into .cursor/skills/duckduckgo-search/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "duckduckgo-search", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/CraftOS-dev/CraftBot.git --path skills/duckduckgo-search--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add CraftOS-dev/CraftBot --skill duckduckgo-search -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install CraftOS-dev/CraftBot duckduckgo-search --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/CraftOS-dev/CraftBot.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/duckduckgo-search .gemini/skills/duckduckgo-search && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "duckduckgo-search" agent skill from https://github.com/CraftOS-dev/CraftBot/tree/main/skills/duckduckgo-search into .gemini/skills/duckduckgo-search/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "duckduckgo-search", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install CraftOS-dev/CraftBot duckduckgo-searchInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add CraftOS-dev/CraftBot --skill duckduckgo-search -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/CraftOS-dev/CraftBot.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/duckduckgo-search .github/skills/duckduckgo-search && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "duckduckgo-search" agent skill from https://github.com/CraftOS-dev/CraftBot/tree/main/skills/duckduckgo-search into .github/skills/duckduckgo-search/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "duckduckgo-search", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add CraftOS-dev/CraftBot --skill duckduckgo-search -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install CraftOS-dev/CraftBot duckduckgo-search --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/CraftOS-dev/CraftBot.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/duckduckgo-search .opencode/skills/duckduckgo-search && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "duckduckgo-search" agent skill from https://github.com/CraftOS-dev/CraftBot/tree/main/skills/duckduckgo-search into .opencode/skills/duckduckgo-search/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "duckduckgo-search", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
duckduckgo-searchPerforms web searches using DuckDuckGo to retrieve real-time information from the internet.
Duckduckgo Search is an agent skill from CraftOS-dev/CraftBot. Performs web searches using DuckDuckGo to retrieve real-time information from the internet. Use when the user needs to search for current events, documentation, tutorials, or any information that requires web search capabilities.
Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files (for example `.clawhub/origin.json` and `_meta.json`).
It sits in Productivity & Automation, covering Web search. The repository describes itself as: One agent. Every kind of work. The licence is MIT.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit b50970c. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
Bash(duckduckgo-search:*)Bash(python:*)Bash(pip:*)Bash(uv:*)From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pythonpipuvFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip and uv, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Duckduckgo Search loads about 2.3k tokens when it runs. Until then it costs about 62 tokens; SKILL.md has 132 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from CraftOS-dev/CraftBot at commit b50970c, republished under its MIT licence (© CraftOS-dev). 132 words, ~2,268 tokens.
.claude/skills/duckduckgo-search/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.这个技能通过 DuckDuckGo 搜索引擎实现网络搜索功能,帮助获取实时信息。
# 使用 uv 安装(推荐)
uv pip install duckduckgo-search
# 或使用 pip 安装
pip install duckduckgo-search# 基础文本搜索
python -c "
from duckduckgo_search import DDGS
with DDGS() as ddgs:
results = list(ddgs.text('Python tutorial', max_results=5))
for r in results:
print(f\"标题: {r['title']}\")
print(f\"链接: {r['href']}\")
print(f\"摘要: {r['body']}\")
print('---')
"最常用的搜索方式,返回网页结果:
python -c "
from duckduckgo_search import DDGS
query = 'your search query'
with DDGS() as ddgs:
results = list(ddgs.text(
query,
region='cn-zh', # 地区设置:cn-zh(中国), us-en(美国), wt-wt(全球)
safesearch='moderate', # 安全搜索:on, moderate, off
timelimit='m', # 时间范围:d(天), w(周), m(月), y(年), None(不限)
max_results=10 # 最大结果数
))
for i, r in enumerate(results, 1):
print(f\"{i}. {r['title']}\")
print(f\" URL: {r['href']}\")
print(f\" 摘要: {r['body'][:100]}...\")
print()
"搜索最新新闻:
python -c "
from duckduckgo_search import DDGS
with DDGS() as ddgs:
results = list(ddgs.news(
'AI technology',
region='wt-wt',
safesearch='moderate',
timelimit='d', # d=过去24小时, w=过去一周, m=过去一月
max_results=10
))
for r in results:
print(f\"📰 {r['title']}\")
print(f\" 来源: {r['source']}\")
print(f\" 时间: {r['date']}\")
print(f\" 链接: {r['url']}\")
print()
"搜索图片资源:
python -c "
from duckduckgo_search import DDGS
with DDGS() as ddgs:
results = list(ddgs.images(
'cute cats',
region='wt-wt',
safesearch='moderate',
size='Medium', # Small, Medium, Large, Wallpaper
type_image='photo', # photo, clipart, gif, transparent, line
layout='Square', # Square, Tall, Wide
max_results=10
))
for r in results:
print(f\"🖼️ {r['title']}\")
print(f\" 图片: {r['image']}\")
print(f\" 缩略图: {r['thumbnail']}\")
print(f\" 来源: {r['source']}\")
print()
"搜索视频内容:
python -c "
from duckduckgo_search import DDGS
with DDGS() as ddgs:
results = list(ddgs.videos(
'Python programming',
region='wt-wt',
safesearch='moderate',
timelimit='w', # d, w, m
resolution='high', # high, standard
duration='medium', # short, medium, long
max_results=10
))
for r in results:
print(f\"📹 {r['title']}\")
print(f\" 时长: {r.get('duration', 'N/A')}\")
print(f\" 来源: {r['publisher']}\")
print(f\" 链接: {r['content']}\")
print()
"获取 DuckDuckGo 的即时回答:
python -c "
from duckduckgo_search import DDGS
with DDGS() as ddgs:
results = ddgs.answers('what is python programming language')
for r in results:
print(f\"📚 {r['text']}\")
print(f\" 来源: {r.get('url', 'DuckDuckGo')}\")
"获取搜索建议:
python -c "
from duckduckgo_search import DDGS
with DDGS() as ddgs:
suggestions = list(ddgs.suggestions('python'))
print('🔍 搜索建议:')
for s in suggestions:
print(f\" - {s['phrase']}\")
"搜索地点信息:
python -c "
from duckduckgo_search import DDGS
with DDGS() as ddgs:
results = list(ddgs.maps(
'coffee shop',
place='Beijing, China',
max_results=10
))
for r in results:
print(f\"📍 {r['title']}\")
print(f\" 地址: {r['address']}\")
print(f\" 电话: {r.get('phone', 'N/A')}\")
print(f\" 坐标: {r['latitude']}, {r['longitude']}\")
print()
"创建一个可复用的搜索脚本:
python -c "
from duckduckgo_search import DDGS
import json
def web_search(query, search_type='text', max_results=5, region='wt-wt', timelimit=None):
'''
执行 DuckDuckGo 搜索
参数:
query: 搜索关键词
search_type: 搜索类型 (text, news, images, videos)
max_results: 最大结果数
region: 地区 (cn-zh, us-en, wt-wt)
timelimit: 时间限制 (d, w, m, y)
'''
with DDGS() as ddgs:
if search_type == 'text':
results = list(ddgs.text(query, region=region, timelimit=timelimit, max_results=max_results))
elif search_type == 'news':
results = list(ddgs.news(query, region=region, timelimit=timelimit, max_results=max_results))
elif search_type == 'images':
results = list(ddgs.images(query, region=region, max_results=max_results))
elif search_type == 'videos':
results = list(ddgs.videos(query, region=region, timelimit=timelimit, max_results=max_results))
else:
results = []
return results
# 使用示例
query = 'Python 3.12 new features'
results = web_search(query, search_type='text', max_results=5)
print(f'🔍 搜索: {query}')
print(f'📊 找到 {len(results)} 个结果')
print()
for i, r in enumerate(results, 1):
print(f\"{i}. {r['title']}\")
print(f\" {r['href']}\")
print(f\" {r['body'][:150]}...\")
print()
"python -c "
from duckduckgo_search import DDGS
import json
from datetime import datetime
query = 'latest tech news'
output_file = f'search_results_{datetime.now().strftime(\"%Y%m%d_%H%M%S\")}.json'
with DDGS() as ddgs:
results = list(ddgs.text(query, max_results=10))
# 保存到 JSON 文件
with open(output_file, 'w', encoding='utf-8') as f:
json.dump({
'query': query,
'timestamp': datetime.now().isoformat(),
'results': results
}, f, ensure_ascii=False, indent=2)
print(f'✅ 搜索结果已保存到: {output_file}')
print(f'📊 共 {len(results)} 条结果')
"python -c "
from duckduckgo_search import DDGS
import time
queries = [
'Python best practices 2024',
'React vs Vue 2024',
'AI development tools'
]
all_results = {}
with DDGS() as ddgs:
for query in queries:
print(f'🔍 搜索: {query}')
results = list(ddgs.text(query, max_results=3))
all_results[query] = results
print(f' 找到 {len(results)} 个结果')
time.sleep(1) # 避免请求过快
print()
print('=' * 50)
print('📊 搜索汇总')
print('=' * 50)
for query, results in all_results.items():
print(f'\n🔎 {query}:')
for i, r in enumerate(results, 1):
print(f\" {i}. {r['title'][:60]}...\")
"| 代码 | 地区 |
|---|---|
cn-zh | 中国 |
us-en | 美国 |
uk-en | 英国 |
jp-jp | 日本 |
kr-kr | 韩国 |
wt-wt | 全球 (无地区限制) |
| 值 | 含义 |
|---|---|
d | 过去 24 小时 |
w | 过去一周 |
m | 过去一月 |
y | 过去一年 |
None | 不限制 |
| 值 | 含义 |
|---|---|
on | 严格过滤 |
moderate | 适度过滤 (默认) |
off | 关闭过滤 |
python -c "
from duckduckgo_search import DDGS
from duckduckgo_search.exceptions import DuckDuckGoSearchException
try:
with DDGS() as ddgs:
results = list(ddgs.text('test query', max_results=5))
print(f'✅ 搜索成功,找到 {len(results)} 个结果')
except DuckDuckGoSearchException as e:
print(f'❌ 搜索出错: {e}')
except Exception as e:
print(f'❌ 未知错误: {e}')
"如果需要使用代理:
python -c "
from duckduckgo_search import DDGS
# 设置代理
proxy = 'http://127.0.0.1:7890' # 替换为你的代理地址
with DDGS(proxy=proxy) as ddgs:
results = list(ddgs.text('test query', max_results=5))
print(f'通过代理搜索成功,找到 {len(results)} 个结果')
"安装失败?
# 确保 pip 是最新版本
pip install --upgrade pip
pip install duckduckgo-search
# 或使用 uv
uv pip install duckduckgo-search搜索无结果?
# 检查网络连接
# 尝试使用代理
# 减少搜索关键词复杂度
# 检查地区设置是否正确请求被限制?
# 在多次搜索之间添加延迟
import time
time.sleep(1) # 等待 1 秒
# 减少单次请求的结果数量
max_results=5 # 而不是 50# 1. 先用 DuckDuckGo 搜索
python -c "
from duckduckgo_search import DDGS
with DDGS() as ddgs:
results = list(ddgs.text('Python async tutorial', max_results=1))
if results:
url = results[0]['href']
print(f'URL: {url}')
"
# 2. 用 browser-use 打开并获取详细内容
browser-use open <url_from_search>
browser-use state⚠️ 使用建议:
time.sleep()© CraftOS-dev, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files in skills/duckduckgo-search of CraftOS-dev/CraftBot.
Open the folder on GitHubat commit b50970c
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in CraftOS-dev/CraftBot, which our catalogue first saw on October 7, 2026.
Duckduckgo Search next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Duckduckgo Search this skillCraftOS-dev/CraftBot | 392 | 1 repos | ~2.3k | Automated safety check: Pass | MIT | |
| Brave Searchbadlogic/pi-skills | 2.6k | 5 repos | ~592 | Automated safety check: Pass | MIT | |
| Enterprise AI Scenario MapMetaInFLow/Enterprise-ai-scenario-map-skill | 632 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Web Searchjjyaoao/HelloAgents | 3.2k | 1 repos | ~5.6k | Automated safety check: Pass | MIT | |
| Ddg SearchTheSyart/claude-agent-examples | 405 | 1 repos | ~493 | Automated safety check: Pass | None | |
| Local Web SearchuluckyXH/OpenMOSS | 1.3k | — | ~392 | Automated safety check: Notes | MIT |
badlogic/pi-skills
Web search and content extraction via Brave Search API. An agent skill from badlogic/pi-skills.
MetaInFLow/Enterprise-ai-scenario-map-skill
企业AI场景地图生成报告工具。通过 web-search 深度调研企业信息,按照V2.1标准模板生成结构化AI应用场景地图报告,包含企业画像、业务诊断、行业实践、AI场景全量表、实施路径等完整内容。
jjyaoao/HelloAgents
Implement web search capabilities using the z-ai-web-dev-sdk.
TheSyart/claude-agent-examples
Web search without an API key using DuckDuckGo Lite via webfetch.
uluckyXH/OpenMOSS
A skill your agent uses when the user asks for web search that should run via the local-160 Responses API with websearch tool (base URL like https://proxy.example.com, model gpt-5.2-codex(xhigh)).
ythx-101/ask-search
Web search via self-hosted SearxNG. An agent skill from ythx-101/ask-search.
CraftOS-dev/CraftBot
Captures learnings, errors, and corrections to enable continuous improvement.
CraftOS-dev/CraftBot
Read, search, and manage Outlook emails and calendar via Microsoft Graph API.
CraftOS-dev/CraftBot
Generate/edit images with Nano Banana Pro (Gemini 3 Pro Image).
CraftOS-dev/CraftBot
Fetch and display BBC News stories from various sections and regions via RSS feeds.
CraftOS-dev/CraftBot
Context retrieval layer for AI agents across users' applications.
CraftOS-dev/CraftBot
Manage and configure Telegram bots for OpenClaw. An agent skill from CraftOS-dev/CraftBot.
Categories
Performs web searches using DuckDuckGo to retrieve real-time information from the internet. Duckduckgo Search is an agent skill from CraftOS-dev/CraftBot. Performs web searches using DuckDuckGo to retrieve real-time information from the internet.
Duckduckgo Search fits situations like: the user needs to search for current events; any information that requires web search capabilities.
Run `npx skills add CraftOS-dev/CraftBot --skill duckduckgo-search -a claude-code`. Or copy the skill folder (skills/duckduckgo-search in CraftOS-dev/CraftBot) into .claude/skills/duckduckgo-search in your project. Claude Code loads it when a task matches its description.
Run `npx skills add CraftOS-dev/CraftBot --skill duckduckgo-search -a codex`. Or copy the skill folder (skills/duckduckgo-search in CraftOS-dev/CraftBot) into .agents/skills/duckduckgo-search in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add CraftOS-dev/CraftBot --skill duckduckgo-search -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/duckduckgo-search, .gemini/skills/duckduckgo-search, .github/skills/duckduckgo-search and .opencode/skills/duckduckgo-search in your project.
Going by SKILL.md and its folder, Duckduckgo Search needs the command-line tools its instructions call (python, pip and uv). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Bash(duckduckgo-search:*), Bash(python:*), Bash(pip:*), Bash(uv:*).
SKILL.md contains no URLs. Its commands use pip and uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Duckduckgo Search is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.3k tokens (SKILL.md is roughly 9.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Duckduckgo Search: Brave Search (badlogic/pi-skills, 2.6k stars), Enterprise AI Scenario Map (MetaInFLow/Enterprise-ai-scenario-map-skill, 632 stars), Web Search (jjyaoao/HelloAgents, 3.2k stars) and Ddg Search (TheSyart/claude-agent-examples, 405 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
CraftOS-dev (a GitHub user) maintains it in CraftOS-dev/CraftBot, which has 392 GitHub stars. The repository holds 89 skills in this directory. The repository was last updated on October 9, 2026.
Source: CraftOS-dev/CraftBot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.