Skip to content
Skill

Web search

Lets your agent run web searches, fetch page content and quick answers via Kagi CLI

Web search is an open-source agent skill for web search and scraping. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
39
Last commit
License
MIT
Listing updated

Similar skills

About Web search

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (2 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Web search 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.

More from richardgill/nix

  1. Lets your agent manage Todoist tasks through the todoist command-line tool

    • Open source
    • 39 GitHub stars
    • Productivity
  2. Creates git worktrees in tmux sessions and starts an AI agent on a prompt

    • Open source
    • 39 GitHub stars
    • Developer tools
  3. Plans a clean-room rewrite of existing behavior, from requirements through phased

    • Open source
    • 39 GitHub stars
    • Developer tools
  4. Delegates work to supervised Pi agents running in tmux sessions and worktrees

    • Open source
    • 39 GitHub stars
    • Developer tools
  5. Lets an agent handle Gmail tasks through the gws command-line tool

    • Open source
    • 39 GitHub stars
    • Communication
  6. Lets your agent work with Google Calendar through the gws command-line tool

    • Open source
    • 39 GitHub stars
    • Productivity