duckduckgo-search
하는 일
이 스킬은 AI가 DuckDuckGo에서 무료 웹 검색을 하게 합니다. 유료 검색 키를 설정하지 않고 검색 결과를 원하는 사람을 위한 것입니다.
사용하는 경우
- ✓웹을 검색하고 싶고 DuckDuckGo 결과를 특별히 원할 때.
- ✓검색 키가 설정되지 않아 기본 웹 검색 도구를 쓸 수 없을 때.
- ✓웹 페이지뿐 아니라 뉴스나 이미지도 검색하고 싶을 때.
스킬 링크
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/research/duckduckgo-search/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“DuckDuckGo에서 태양광 패널 가격에 관한 최신 뉴스를 검색하고 상위 다섯 개 결과를 나열해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 ddgs 명령줄 도구가 설치되어 있는지 확인합니다. 설치되어 있으면 AI는 그것으로 검색합니다. 없으면 ddgs를 설치하거나 내장 웹 도구를 사용합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
DuckDuckGo Search
Free web search using DuckDuckGo. No API key required.
Preferred when web_search is unavailable or unsuitable (for example when FIRECRAWL_API_KEY is not set). Can also be used as a standalone search path when DuckDuckGo results are specifically desired.
Detection Flow
Check what is actually available before choosing an approach:
# Check CLI availability
command -v ddgs >/dev/null && echo "DDGS_CLI=installed" || echo "DDGS_CLI=missing"
Decision tree:
- If
ddgsCLI is installed, preferterminal+ddgs - If
ddgsCLI is missing, do not assumeexecute_codecan importddgs - If the user wants DuckDuckGo specifically, install
ddgsfirst in the relevant environment - Otherwise fall back to built-in web/browser tools
Important runtime note:
- Terminal and
execute_codeare separate runtimes - A successful shell install does not guarantee
execute_codecan importddgs - Never assume third-party Python packages are preinstalled inside
execute_code
Installation
Install ddgs only when DuckDuckGo search is specifically needed and the runtime does not already provide it.
# Python package + CLI entrypoint
pip install ddgs
# Verify CLI
ddgs --help
If a workflow depends on Python imports, verify that same runtime can import ddgs before using from ddgs import DDGS.
Method 1: CLI Search (Preferred)
Use the ddgs command via terminal when it exists. This is the preferred path because it avoids assuming the execute_code sandbox has the ddgs Python package installed.
# Text search
ddgs text -q "python async programming" -m 5
# News search
ddgs news -q "artificial intelligence" -m 5
# Image search
ddgs images -q "landscape photography" -m 10
# Video search
ddgs videos -q "python tutorial" -m 5
# With region filter
ddgs text -q "best restaurants" -m 5 -r us-en
# Recent results only (d=day, w=week, m=month, y=year)
ddgs text -q "latest AI news" -m 5 -t w
# JSON output for parsing
ddgs text -q "fastapi tutorial" -m 5 -o json
CLI Flags
| Flag | Description | Example |
|---|---|---|
-q |
Query — required | -q "search terms" |
-m |
Max results | -m 5 |
-r |
Region | -r us-en |
-t |
Time limit | -t w (week) |
-s |
Safe search | -s off |
-o |
Output format | -o json |
Method 2: Python API (Only After Verification)
Use the DDGS class in execute_code or another Python runtime only after verifying that ddgs is installed there. Do not assume execute_code includes third-party packages by default.
Safe wording:
- "Use
execute_codewithddgsafter installing or verifying the package if needed"
Avoid saying:
- "
execute_codeincludesddgs" - "DuckDuckGo search works by default in
execute_code"
Important: max_results must always be passed as a keyword argument — positional usage raises an error on all methods.
Text Search
Best for: general research, companies, documentation.
from ddgs import DDGS
with DDGS() as ddgs:
for r in ddgs.text("python async programming", max_results=5):
print(r["title"])
print(r["href"])
print(r.get("body", "")[:200])
print()
Returns: title, href, body
News Search
Best for: current events, breaking news, latest updates.
from ddgs import DDGS
with DDGS() as ddgs:
for r in ddgs.news("AI regulation 2026", max_results=5):
print(r["date"], "-", r["title"])
print(r.get("source", ""), "|", r["url"])
print(r.get("body", "")[:200])
print()
Returns: date, title, body, url, image, source
Image Search
Best for: visual references, product images, diagrams.
from ddgs import DDGS
with DDGS() as ddgs:
for r in ddgs.images("semiconductor chip", max_results=5):
print(r["title"])
print(r["image"])
print(r.get("thumbnail", ""))
print(r.get("source", ""))
print()
Returns: title, image, thumbnail, url, height, width, source
Video Search
Best for: tutorials, demos, explainers.
from ddgs import DDGS
with DDGS() as ddgs:
for r in ddgs.videos("FastAPI tutorial", max_results=5):
print(r["title"])
print(r.get("content", ""))
print(r.get("duration", ""))
print(r.get("provider", ""))
print(r.get("published", ""))
print()
Returns: title, content
자주 묻는 질문
API 키가 필요한가요?
아니요. 스킬에 따르면 DuckDuckGo 검색은 무료이며 키가 필요 없습니다.
Python 가져오기가 왜 실패할 수 있나요?
스킬은 터미널과 코드 실행기가 별개이므로, 한쪽에 설치된 패키지를 다른 쪽에서 쓸 수 없을 수 있다고 설명합니다.
이미지도 검색할 수 있나요?
네. 스킬은 웹 및 뉴스 검색과 함께 이미지 검색도 언급합니다.
상세 정보
인기도
- GitHub 스타
- 260k
- 순위
- #552
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
agent-merge-conflict-arbiter
260k병렬로 작업한 두 에이전트 브랜치 사이의 git 병합 충돌을 중립적인 제3자로서 해결하고, 저장소에 하나의 병합 결과를 만듭니다.
antigravity-cli
260kAntigravity 명령줄 도구의 설치, 업데이트, 플러그인, 로그인, 샌드박스 문제를 해결하도록 단계별로 안내합니다.
blackbox
260k에이전트가 여러 AI 모델을 실행해 최선의 결과를 고르는 Blackbox AI 명령줄 도구에 코딩 작업을 맡기도록 돕습니다.
dynamic-workflow
260k많은 비슷한 작업을 저장된 스크립트로 실행하고, 검증된 결과만 메인 대화로 돌아오도록 에이전트에게 가르칩니다.