agentleFS
matthewlee0102matthewlee0102/FastSkills/skills/duckduckgo-websearch/SKILL.md

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.

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
  1. Distinctive:

    Search the web using DuckDuckGo's search engine.

    line 8
  2. Very specific:

    Tip: When calling from the skills directory, {baseDir} refers to /Users/leekayiu/Documents/workspace/fastskills/skills/duckduckgo-websearch.

    line 25
  3. Distinctive:

    Use web search when the user asks:

    line 29
  4. Distinctive:

    Use the search functions directly in Python code:

    line 94
  5. Distinctive:

    Check your internet connection

    line 118

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 5

Tip: 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

OptionDescriptionDefault
--num NNumber of results10
--type {web,news}Search typeweb
--region CODERegion (e.g., us-en, uk-en)wt-wt (worldwide)
--safesearch {on,moderate,off}SafeSearch levelmoderate
--time {d,w,m,y}Time filternone

Examples

Search recent news:

uv run --directory {baseDir} python scripts/search.py "AI breakthroughs" --type news --time d --num 5

Search for past week:

uv run --directory {baseDir} python scripts/search.py "climate summit" --time w --num 8

Region-specific search:

uv run --directory {baseDir} python scripts/search.py "local restaurants" --region us-en --num 5

Result 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.