duckduckgo-websearch
Skill16 starsChanged 9 months agoMITView on GitHub
Search the web using DuckDuckGo. Use when the user wants to search the internet, find current information, look up facts, search for news, or find websites about specific topics. Triggers include requests like "search for X", "look up Y", "find information about Z", "what is X" (when X may be recent, niche, or unknown), "tell me about Y", "what's the latest on", "news about", or any query requiring up-to-date web information. Also use when the user asks about a specific named entity (product, company, tool, person, event) that might not be in the training data.
In this repository18 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- algorithmic-artSkill
- brand-guidelinesSkill
- canvas-designSkill
- doc-coauthoringSkill
- docxSkill
- frontend-designSkill
- frontend-slidesSkill
- internal-commsSkill
- mcp-builderSkill
- pdfSkill
- pptxSkill
- skill-creatorSkill
- slack-gif-creatorSkill
- theme-factorySkill
- webapp-testingSkill
- web-artifacts-builderSkill
- xlsxSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Search the web using DuckDuckGo's search engine.
- Very specific: line 25
Tip: When calling from the skills directory, {baseDir} refers to /Users/leekayiu/Documents/workspace/fastskills/skills/duckduckgo-websearch.
- Distinctive: line 29
Use web search when the user asks:
- Distinctive: line 94
Use the search functions directly in Python code:
- Distinctive: line 118
Check your internet connection
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
DuckDuckGo Web Search
Search the web using DuckDuckGo's search engine. Returns results in JSON format for easy parsing.
Quick Start
This skill uses uv to manage dependencies. The ddgs package is automatically installed when you run the script.
# Basic web search
uv run --directory /path/to/duckduckgo-websearch python scripts/search.py "your query here"
# Search with options
uv run --directory /path/to/duckduckgo-websearch python scripts/search.py "query" --num 5 --time w
# Search for news
uv run --directory /path/to/duckduckgo-websearch python scripts/search.py "query" --type news --num 5Tip: When calling from the skills directory, {baseDir} refers to /Users/leekayiu/Documents/workspace/fastskills/skills/duckduckgo-websearch.
When to Use This Skill
Use web search when the user asks:
- "What is X?" or "Tell me about Y" (especially if X/Y might be recent or niche)
- "Search for..." or "Look up..."
- "What's the latest on..." or "News about..."
- About a specific named entity you're unsure about (new tools, recent events, obscure topics)
- For current information that may have changed since training data
Search Script Usage
The search.py script provides web and news search capabilities.
Basic Search
uv run --directory {baseDir} python scripts/search.py "python programming tips"Search Options
| Option | Description | Default |
--num N | Number of results | 10 |
--type {web,news} | Search type | web |
--region CODE | Region (e.g., us-en, uk-en) | wt-wt (worldwide) |
--safesearch {on,moderate,off} | SafeSearch level | moderate |
--time {d,w,m,y} | Time filter | none |
Examples
Search recent news:
uv run --directory {baseDir} python scripts/search.py "AI breakthroughs" --type news --time d --num 5Search for past week:
uv run --directory {baseDir} python scripts/search.py "climate summit" --time w --num 8Region-specific search:
uv run --directory {baseDir} python scripts/search.py "local restaurants" --region us-en --num 5Result Format
Results are returned as JSON:
{
"query": "python programming",
"total_results": 10,
"results": [
{
"title": "Python Programming Language",
"href": "https://www.python.org/",
"body": "The official home of the Python Programming Language..."
},
...
]
}Python API
Use the search functions directly in Python code:
import sys
sys.path.insert(0, "{baseDir}/scripts")
from search import search_web, search_news
# Web search
results = search_web("machine learning", max_results=5)
for r in results["results"]:
print(f"{r['title']}: {r['href']}")
# News search
news = search_news("technology", max_results=5, time_range="d")Requirements
This skill requires uv to be installed. The ddgs dependency is automatically managed via the pyproject.toml file.
Troubleshooting
No Results Returned
- Check your internet connection
- DuckDuckGo may rate-limit excessive queries
- Try a different query or wait a moment before retrying
Notes
- DuckDuckGo does not require an API key
- Rate limits apply; avoid excessive queries
- Results may vary slightly between calls
- Some regions may have different result availability
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

