duckduckgo-search-skill

Search the web using DuckDuckGo for free, privacy-focused results with no API key required.

100 stars

Best use case

duckduckgo-search-skill is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Search the web using DuckDuckGo for free, privacy-focused results with no API key required.

Teams using duckduckgo-search-skill should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/duckduckgo-search-skill/SKILL.md --create-dirs "https://raw.githubusercontent.com/trohitg/MachinaOS/main/server/skills/web_agent/duckduckgo-search-skill/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/duckduckgo-search-skill/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How duckduckgo-search-skill Compares

Feature / Agentduckduckgo-search-skillStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Search the web using DuckDuckGo for free, privacy-focused results with no API key required.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# DuckDuckGo Search Skill

This skill enables free web search via DuckDuckGo. No API key required.

For premium search providers, see the dedicated skills:
- **brave-search-skill** - Brave Search API (independent index, privacy-focused)
- **serper-search-skill** - Serper API (Google-powered, news/images/places)
- **perplexity-search-skill** - Perplexity Sonar AI (synthesized answers with citations)

## How It Works

This skill provides instructions and context. To execute web searches, connect the **DuckDuckGo Search** node to the agent's `input-tools` handle.

## web_search Tool

Search the web using DuckDuckGo and get relevant results.

### Schema Fields

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| query | string | Yes | The search query to look up on the web |

### Node Parameters

| Parameter | Default | Description |
|-----------|---------|-------------|
| maxResults | 5 | Number of results to return |

### Examples

**Basic search:**
```json
{
  "query": "latest news about artificial intelligence"
}
```

**Factual search:**
```json
{
  "query": "population of Tokyo 2024"
}
```

**Current events:**
```json
{
  "query": "weather forecast New York today"
}
```

**Technical search:**
```json
{
  "query": "how to use Python asyncio gather"
}
```

### Response Format

```json
{
  "query": "artificial intelligence news",
  "results": [
    {
      "title": "AI Breakthrough in Medical Research",
      "snippet": "Researchers have developed a new AI model that can predict...",
      "url": "https://example.com/ai-medical-research"
    },
    {
      "title": "OpenAI Announces New Model",
      "snippet": "The company revealed its latest advancement in...",
      "url": "https://example.com/openai-announcement"
    }
  ],
  "provider": "duckduckgo"
}
```

## When to Use DuckDuckGo Search

Use DuckDuckGo search when the user asks about:

1. **Current events and news** - Recent happenings, breaking news, current affairs
2. **Real-time data** - Stock prices, weather, sports scores, exchange rates
3. **Recent information** - Events, releases, or changes after your knowledge cutoff
4. **Specific facts** - Population, statistics, dates that may have changed
5. **Technical documentation** - Latest API docs, library versions, tutorials
6. **Local information** - Business hours, addresses, phone numbers
7. **Product information** - Prices, availability, reviews

## When NOT to Use DuckDuckGo Search

Avoid searching when:

1. **General knowledge** - Well-established facts that won't change
2. **Simple calculations** - Use the calculator tool instead
3. **Creative tasks** - Writing, brainstorming, analysis
4. **Personal advice** - Relationship, life decisions
5. **Subjective opinions** - Preferences, recommendations without factual basis

## Choosing the Right Search Provider

| Need | Recommended Provider | Tool Node |
|------|---------------------|-----------|
| Free search, no API key | DuckDuckGo | DuckDuckGo Search |
| Google-quality results | Serper | Serper Search |
| News, images, places | Serper | Serper Search |
| Privacy-focused, independent | Brave | Brave Search |
| AI-synthesized answers | Perplexity | Perplexity Search |
| Research with citations | Perplexity | Perplexity Search |

## Search Query Best Practices

### Do:
- Use specific, focused queries
- Include relevant keywords
- Add context like dates, locations, or names
- Break complex questions into simpler searches

### Don't:
- Use overly long queries (keep under 10 words when possible)
- Include unnecessary words like "please" or "can you tell me"
- Ask questions as full sentences (use keywords instead)

### Examples of Good vs Bad Queries

| Bad Query | Good Query |
|-----------|------------|
| "Can you please tell me what the weather is like in London today?" | "London weather today" |
| "I want to know about the latest iPhone model and its features" | "iPhone 16 Pro specifications" |
| "What is happening in the stock market right now?" | "stock market news today" |

## Handling Results

1. **Summarize** the key findings from search results
2. **Cite sources** when providing specific information
3. **Indicate uncertainty** if results are conflicting or unclear
4. **Suggest follow-up searches** if the initial results are insufficient
5. **Combine multiple searches** for comprehensive answers

## Limitations

- DuckDuckGo uses the `ddgs` library (free, no API key)
- Results depend on DuckDuckGo's index
- Some recent events may not be indexed immediately
- Paywalled content may show limited snippets
- Results are in English by default

## Setup Requirements

1. Connect this skill to the agent's `input-skill` handle
2. Connect the **DuckDuckGo Search** node to the agent's `input-tools` handle
3. No API key required for DuckDuckGo

Related Skills

serper-search-skill

100
from trohitg/MachinaOS

Search the web using Serper API for Google-powered search results including web, news, images, and places.

perplexity-search-skill

100
from trohitg/MachinaOS

Search the web using Perplexity Sonar AI for synthesized answers with citations, related questions, and optional images.

brave-search-skill

100
from trohitg/MachinaOS

Search the web using Brave Search API for privacy-focused, independent search results with no tracking.

twitter-search-skill

100
from trohitg/MachinaOS

Search for recent tweets on Twitter/X using keywords, hashtags, mentions, and advanced query operators. Returns rich tweet data with expanded URLs, author info, media, metrics, and referenced tweets.

fs-search-skill

100
from trohitg/MachinaOS

Search the filesystem with ls (list directory), glob (pattern match), or grep (search file contents).

proxy-config-skill

100
from trohitg/MachinaOS

Configure residential proxy providers and make proxied HTTP requests with geo-targeting.

http-request-skill

100
from trohitg/MachinaOS

Make HTTP requests to external APIs and web services. Supports GET, POST, PUT, DELETE, PATCH methods with headers and JSON body.

crawlee-scraper-skill

100
from trohitg/MachinaOS

Read and extract content from any web page URL.

browser-skill

100
from trohitg/MachinaOS

Interactive browser automation - navigate, click, type, fill forms, take screenshots, get accessibility snapshots. Supports system Chrome/Edge via auto-detection.

apify-skill

100
from trohitg/MachinaOS

Run web scrapers and extract data from websites and social media platforms using Apify actors. Supports Instagram, TikTok, Twitter/X, LinkedIn, Facebook, YouTube, Google Search, and general web crawling.

nearby-places-skill

100
from trohitg/MachinaOS

Search for nearby places like restaurants, cafes, stores, and services using Google Places API. Find places by type and location.

shell-skill

100
from trohitg/MachinaOS

Execute short-lived shell commands in a sandboxed environment. No PATH access -- use process_manager for npm/python/node commands.