# Web search

> Web search is an open-source agent skill for web search and scraping. Lets your agent run web searches, fetch page content and quick answers via Kagi CLI. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/richardgill/nix/tree/main/built/ai-agents/pi/skills/web-search
- **Repository:** https://github.com/richardgill/nix
- **GitHub stars:** 39
- **License:** MIT
- **Skill name:** web-search
- **Collection:** https://github.com/richardgill/nix
- **Categories:** [web search and scraping](https://ai-powered.com/categories/web-search-and-scraping)
- **Listing updated:** 2026-12-04

## About

This skill sets the agent up as a web research helper that drives the Kagi command-line tool. It covers running searches, asking targeted questions about a specific URL, pulling focused excerpts from a page, and getting short answers for quick fact checks. A YouTube search fallback using yt-dlp is included for cases where regular results are thin or stale or video results are needed.

The workflow starts broad with a search, narrows to specific pages with page-level questions, and uses quick lookups to verify facts. The instructions also ask the agent to organize findings by relevance and authority, quote sources with attribution, note publication dates, flag conflicting information and state gaps. Any solution drawn from online sources should be cited with links.

The kagi CLI must be installed and on the PATH, and it needs a one-time authentication step before first use. The YouTube fallback is run through Nix, so Nix is needed for that part.

## When your agent uses it

> web search API via Kagi CLI. Use when you need current information, documentation, page content, or to research topics on the web.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/richardgill/nix/tree/HEAD/built/ai-agents/pi/skills/web-search)
- [Asks for: Bash, Read, Grep, Glob](https://github.com/richardgill/nix/blob/HEAD/built/ai-agents/pi/skills/web-search/SKILL.md)
- [License: MIT](https://github.com/richardgill/nix/tree/HEAD/built/ai-agents/pi/skills/web-search)

## Features

- **Web search queries:** Runs keyword searches through the Kagi CLI to find current sources on a topic.
- **Page questions:** Asks targeted questions of a specific URL and returns relevant excerpts.
- **Quick answers:** Gets short direct answers to factual questions for fast verification.
- **YouTube video search:** Falls back to yt-dlp to list YouTube videos when text results are insufficient.
- **Cited research reports:** Structures findings with quotes, links, dates and noted conflicts or gaps.

## Good for

- Find current documentation for a library or API
- Summarize the content of a specific web page
- Fact-check a claim with a quick lookup
- Research a topic across several web sources with citations
- Find YouTube videos on a subject

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/web-search` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/web-search &&
cp -R "$tmp/built/ai-agents/pi/skills/web-search" ~/.claude/skills/web-search &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/web-search` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/web-search` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/web-search &&
cp -R "$tmp/built/ai-agents/pi/skills/web-search" ~/.agents/skills/web-search &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/web-search` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/web-search` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/web-search &&
cp -R "$tmp/built/ai-agents/pi/skills/web-search" ~/.cursor/skills/web-search &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/web-search` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/richardgill/nix.git --path built/ai-agents/pi/skills/web-search
```

Or copy the folder to `~/.gemini/skills/web-search` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/web-search`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/web-search &&
cp -R "$tmp/built/ai-agents/pi/skills/web-search" ~/.copilot/skills/web-search &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/web-search` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/richardgill/nix.git
```

Then copy `nix/built/ai-agents/pi/skills/web-search` into your agent's skills folder as `web-search`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Web search need before it works?

The kagi CLI must be installed and available in PATH, and you should run kagi auth once before first use.

### When does the agent use Web search?

It is meant for tasks that need current information, documentation, page content or topic research from the web.

### Does Web search run scripts?

No scripts are bundled. It runs kagi commands and a yt-dlp command directly through Bash.

### How are sources handled?

The instructions ask the agent to cite any online sources used in a solution and include links.

### How do I install Web search in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/web-search to use it in all your projects, or to .claude/skills/web-search in one project.

### Which AI agents can use Web search?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Web search?

The closest alternatives to Web search are Parallel web search, Tavily search, Deep research, Baidu search and Deep research.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Parallel web search](https://ai-powered.com/skills/parallel-web-search): Parallel web search is an open-source agent skill for web search and scraping.
- [Tavily search](https://ai-powered.com/skills/tavily-search): Tavily search is an open-source agent skill for web search and scraping.
- [Deep research](https://ai-powered.com/skills/deep-research-smartworldarafath): Deep research is an open-source agent skill for web search and scraping.
- [Baidu search](https://ai-powered.com/skills/baidu-search-baidubce): Baidu search is an open-source agent skill for web search and scraping.
- [Deep research](https://ai-powered.com/skills/deep-research-fmarzochi): Deep research is an open-source agent skill for web search and scraping.
- [Research](https://ai-powered.com/skills/research-hec-ovi-2): Research is an open-source agent skill for web search and scraping.
- [Grok research](https://ai-powered.com/skills/grok-research): Grok research is an open-source agent skill for web search and scraping.
- [Agent reach](https://ai-powered.com/skills/agent-reach-smartworldarafath): Agent reach is an open-source agent skill for web search and scraping.

---
Source: https://ai-powered.com/skills/web-search-richardgill-2
