bug-ops/zeph/web-search
Claude Code and agent skill by bug-ops/zeph
- community
Checking that the SKILL.md file is still in the repository.
Search the internet for current information using the DuckDuckGo Instant Answer API. Use when the user asks to find, look up, or search for something online, needs up-to-date information, wants facts about a topic, definitions, or general knowledge that is not available locally. Keywords: search, find, look up, google, what is, who is, define, current, latest, news.
Install
npx vskill@latest install bug-ops/zeph/web-searchSKILL.md
Web Search via DuckDuckGo Instant Answer API
Endpoint
Step-by-Step Instructions
- Take the user's query and convert it into effective search terms
- URL-encode the query (spaces become
+, special characters percent-encoded) - Execute the curl command below
- Parse the JSON response to find the best answer
- Summarize the results for the user in natural language
- Always cite the source URL from the response
Quick Search
Compact Search (Best Single Answer)
Detailed Results (All Fields)
Query Parameters
| Parameter | Value | Purpose | |
|---|---|---|---|
q | search terms | The search query (required) | |
format | json | Response format (use json, also supports xml) | |
no_html | 1 | Strip HTML from response text (recommended) | |
skip_disambig | 1 | Skip disambiguation pages, return first result directly | |
no_redirect | 1 | Do not follow !bang redirects | |
pretty | 1 | Pretty-print JSON (for debugging only) | |
t | app name | Application name identifier (optional, for attribution) |
Response Fields
Primary Answer Fields
| Field | Description | |
|---|---|---|
Type | Response category: A (article), D (disambiguation), C (category), N (name), E (exclusive), or empty | |
AbstractText | Summary text for the topic (no HTML when no_html=1) | |
AbstractSource | Name of the source (e.g., "Wikipedia") | |
AbstractURL | Deep link to the full article at the source | |
Heading | Title/heading of the result | |
Image | URL of a relevant image | |
Answer | Instant answer text (for calculations, conversions, IP lookups, etc.) | |
AnswerType | Type of instant answer: calc, color, digest, info, ip, iploc, phone, pw, rand, regexp, unicode, upc, zip |
Definition Fields
| Field | Description | |
|---|---|---|
Definition | Dictionary definition text | |
DefinitionSource | Source of the definition | |
DefinitionURL | URL to the full definition |
Related and Redirect
| Field | Description | |
|---|---|---|
RelatedTopics | Array of related topic objects (see below) | |
Results | Array of external result links | |
Redirect | URL to redirect to (for !bang commands) | |
Infobox | Structured data box (key-value facts) |
RelatedTopics Object
Each item in RelatedTopics contains:
| Field | Description | |
|---|---|---|
Text | Description text | |
FirstURL | Link to the DuckDuckGo page for this topic | |
Icon.URL | Icon/thumbnail URL | |
Icon.Width | Icon width | |
Icon.Height | Icon height | |
Result | HTML link string |
When Type is D (disambiguation), RelatedTopics may contain grouped items with a Name key and nested Topics array.
Search Strategies
Strategy 1: Direct Query
Use the user's question directly as the query.
Strategy 2: Keyword Extraction
Extract key nouns and concepts, drop filler words.
Strategy 3: Specific Entity Lookup
For people, places, or things, use the proper name.
Strategy 4: Fallback Rephrasing
If the first query returns empty fields, try rephrasing:
- Add context words: "Python" -> "Python programming language"
- Use the full proper name: "JS" -> "JavaScript"
- Try a definition query: "define quantum computing"
- Remove overly specific terms and broaden the search
Parsing the Response
Priority Order for Extracting the Best Answer
- Redirect — if non-empty, the query is a
!bangcommand; follow the URL - Answer — instant answers (calculations, IP lookups, conversions) are the most direct
- AbstractText — topic summaries from sources like Wikipedia
- Definition — dictionary definitions
- RelatedTopics[0].Text — first related topic as a fallback
- If all are empty, rephrase and retry with different keywords
Extracting Structured Data from Infobox
URL Encoding Rules
| Character | Encoded | |
|---|---|---|
| Space | + or %20 | |
& | %26 | |
= | %3D | |
? | %3F | |
/ | %2F | |
# | %23 | |
+ | %2B | |
" | %22 |
In bash, use jq -rn --arg q "search terms" '$q | @uri' for proper encoding.
Important Notes
- The DuckDuckGo API returns instant answers, not web search results. It excels at factual lookups, definitions, and entity information, but may return empty for very recent events or niche topics
- Always use
format=jsonfor machine-readable output - Always use
no_html=1to get clean text without HTML tags - Use
skip_disambig=1to get direct answers instead of disambiguation pages - Always cite the source URL (
AbstractURL,DefinitionURL, orFirstURL) when presenting results - The API is free and does not require authentication
- Rate limiting: be respectful; do not send rapid-fire requests. A brief pause between retries is courteous
- If the API returns no useful data after 2 attempts with different phrasings, inform the user that the information could not be found via this source
- The
Redirectfield handles DuckDuckGo!bangshortcuts (e.g.,!wfor Wikipedia,!sofor StackOverflow)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.zeph/skills/web-search/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bug-ops/zeph/web-search)