Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills Aโ€“Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Google Search Grounding

ASecurity

Google web search via Gemini Search Grounding (primary) and Custom Search JSON API (fallback). Use for: (1) Synthesized answers with citations (grounded search), (2) Raw link results with snippets, (3) Image search. Excellent Hebrew support. Preferred over built-in web_search (Perplexity).

14 stars
0 votes
0 copies
1 views
Added 9/7/2026
researchpythonrustgobashapiperformance

Works with

api

Security Analysis

A100/100

Scanned 9/7/2026

Install to Claude Code

$npx -y skills add modbender/skill-library-mcp --skill google-search-grounding --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Google Search Grounding?

Add the live security badge to your README โ€” it updates automatically with every re-scan.

Security grade badge for Google Search Grounding
[![Security: A โ€” Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-google-search-grounding/badge)](https://www.skillsdirectory.com/skills/modbender-google-search-grounding)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: google-search
slug: google-search-grounding
description: >
  Google web search via Gemini Search Grounding (primary) and Custom Search JSON API (fallback).
  Use for: (1) Synthesized answers with citations (grounded search), (2) Raw link results with snippets,
  (3) Image search. Excellent Hebrew support. Preferred over built-in web_search (Perplexity).
version: 2.1.0
author: Leo ๐Ÿฆ
tags: [search, google, web, grounding, gemini, news, hebrew, images, citations]
metadata: {"clawdbot":{"emoji":"๐Ÿ”","requires":{"env":["GOOGLE_API_KEY"]},"primaryEnv":"GOOGLE_API_KEY","secondaryEnv":["GOOGLE_CSE_CX","GOOGLE_SEARCH_LANG","GOOGLE_SEARCH_COUNTRY"],"install":[{"id":"pip","kind":"pip","package":"google-genai","label":"Install google-genai library"}],"notes":"GOOGLE_CSE_CX is required only for raw/image modes (Custom Search API). The default search mode (Gemini grounding) needs only GOOGLE_API_KEY. No hardcoded CSE IDs โ€” users must supply their own."}}
allowed-tools: [exec]
---

# Google Search ๐Ÿ”

Google web search powered by Gemini 2.5 Flash with Search Grounding + Custom Search API.

**โญ This is the PRIMARY web search tool. Prefer over built-in `web_search` (Perplexity).**

## Requirements

- `GOOGLE_API_KEY` environment variable
- Enable in Google Cloud Console: Gemini API, Custom Search JSON API

## Configuration

| Env Variable | Default | Description |
|---|---|---|
| `GOOGLE_API_KEY` | โ€” | **Required.** Google API key |
| `GOOGLE_CSE_CX` | โ€” | Custom Search Engine ID (required for raw/image modes) |
| `GOOGLE_SEARCH_LANG` | `he` | Default language code (he, en, ar, ja, etc.) |
| `GOOGLE_SEARCH_COUNTRY` | `IL` | Default country code (IL, US, DE, etc.) |

Set in OpenClaw config:
```json
{
  "env": {
    "GOOGLE_API_KEY": "AIza...",
    "GOOGLE_SEARCH_LANG": "he",
    "GOOGLE_SEARCH_COUNTRY": "IL"
  }
}
```

## Script Location

```bash
python3 skills/google-search/lib/google_search.py <mode> "query" [options]
```

---

## Output Modes

- **Text mode** (default): Best for most use cases. Clean readable output with answer, sources, and search queries.
- **JSON mode** (`--json`): For programmatic processing. Includes confidence scores, grounding supports, and search queries.

---

## Modes

### search โ€” Grounded Search (Default, Recommended)

Gemini 2.0 Flash + Google Search tool โ†’ **synthesized answer with numbered citations**.

```bash
python3 lib/google_search.py search "query" [--lang he] [--country IL] [--json]
```

**When to use:** Questions, current events, "what is X", Hebrew queries, anything needing a direct answer.

**Examples:**
```bash
# Hebrew (default)
python3 lib/google_search.py search "ืžื–ื’ ืื•ื•ื™ืจ ืชืœ ืื‘ื™ื‘"

# English override
python3 lib/google_search.py search "latest AI news" --lang en --country US

# JSON output
python3 lib/google_search.py search "OpenAI GPT-5 release date" --json
```

**Output format:**
```
<Synthesized answer text>

Sources:
  1. Source Title
     https://example.com/article
  2. Another Source
     https://example.com/other
```

---

### raw โ€” Raw Search Results

Custom Search JSON API โ†’ **links with titles and snippets**.

```bash
python3 lib/google_search.py raw "query" [-n 5] [--lang he] [--country IL] [--json]
```

**When to use:** Need actual URLs, research, building reference lists, when you want links not answers.

**Examples:**
```bash
python3 lib/google_search.py raw "python asyncio tutorial" -n 5
python3 lib/google_search.py raw "best restaurants tel aviv" --json
python3 lib/google_search.py raw "rust vs go performance" -n 3 --lang en
```

**Output format:**
```
1. Page Title
   https://example.com/page
   Brief snippet from the page...

2. Another Page
   https://example.com/other
   Another snippet...
```

---

### image โ€” Image Search

Custom Search image search โ†’ **image URLs with titles**.

```bash
python3 lib/google_search.py image "query" [-n 5] [--lang he] [--country IL] [--json]
```

**When to use:** Finding images, visual references, thumbnails.

**Examples:**
```bash
python3 lib/google_search.py image "aurora borealis" -n 5
python3 lib/google_search.py image "ืชืœ ืื‘ื™ื‘ ื—ื•ืฃ" --json
```

---

## Options Reference

| Option | Applies To | Description | Default |
|---|---|---|---|
| `--lang CODE` | all | Language code (he, en, ar, jaโ€ฆ) | env `GOOGLE_SEARCH_LANG` (he) |
| `--country CODE` | all | Country code (IL, US, DEโ€ฆ) | env `GOOGLE_SEARCH_COUNTRY` (IL) |
| `-n NUM` | raw, image | Number of results (1โ€“10) | 10 |
| `--json` | all | Structured JSON output | off |

**Language resolution order:** `--lang` flag โ†’ `GOOGLE_SEARCH_LANG` env โ†’ None (auto)
**Country resolution order:** `--country` flag โ†’ `GOOGLE_SEARCH_COUNTRY` env โ†’ None (auto)

---

## Error Handling

- **Missing API key:** Clear error message with setup instructions.
- **429 Rate Limit:** Automatic retry once after 5-second wait.
- **Network errors:** Descriptive error with cause.
- **No results:** Clean "No results found." message.
- **Timeout:** 30-second timeout on all HTTP requests.

---

## Quota & Rate Limits

| API | Free Tier | Rate Limit |
|---|---|---|
| Gemini API (grounded search) | Generous free tier | ~15 RPM (free), higher on paid |
| Custom Search JSON API (raw/image) | 100 queries/day | 10K queries/day (paid) |

**On 429 errors:** Script retries once automatically. If quota exhausted, fall back to built-in `web_search` (Perplexity).

---

## Multilingual Support

Works with queries in any language. Hebrew is the default:

```bash
# Hebrew (default, no flags needed)
python3 lib/google_search.py search "ื—ื“ืฉื•ืช ื˜ื›ื ื•ืœื•ื’ื™ื”"

# English
python3 lib/google_search.py search "technology news" --lang en

# Arabic
python3 lib/google_search.py search "ุฃุฎุจุงุฑ ุงู„ุชูƒู†ูˆู„ูˆุฌูŠุง" --lang ar
```

---

## Install

```bash
bash skills/google-search/install.sh
```

Attribution

modbendermodbender
View sourceMore from modbender โ†’
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots ยท $299/mo ยท GSC-verified traffic ยท sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots ยท $299/mo ยท GSC-verified traffic ยท sponsors can never buy grades.

See placements

Related Skills

Competitor Analysis

This skill provides comprehensive analysis of competitor SEO and GEO strategies, revealing what's working in your market and identifying opportunities to outperform the competition.

1823 votes

Deep Research

Universal deep research agent team. 13-agent pipeline for rigorous academic research on any topic. 8 modes: full research, quick brief, paper review, lit-review, fact-check, three-way literature scan, Socratic guided research dialogue, and systematic review with optional meta-analysis. Covers research question formulation, Socratic mentoring, methodology design, systematic literature search, source verification, cross-source synthesis, risk of bias assessment, meta-analysis, APA 7.0 report co...

494352 votes

Paperclip Distill

Use when an operation issue is a Paperclip cursor-window, distill, or backfill โ€” `operationType: "distill"` or `"backfill"` and the body references a Paperclip source bundle for a project or root issue. Turn raw Paperclip activity into a wiki-insightful project page, decisions log, and history note. This skill exists specifically to replace the stiff, datestamp-heavy templated output that the deterministic distiller produces.

813271 votes

Academic Pipeline

Orchestrator for the full academic research pipeline: research -> write -> integrity check -> review -> revise -> re-review -> re-revise -> final integrity check -> finalize. Coordinates deep-research, academic-paper, and academic-paper-reviewer into a seamless 10-stage workflow with mandatory, coverage-bounded integrity checks, two-stage peer review, and auditable quality-assurance artifacts. Triggers on: academic pipeline, research to paper, full paper workflow, paper pipeline, end-to-end p...

494351 votes

Exa Search

Semantic search, similar content discovery, and structured research using Exa API

304951 votes
View all in research โ†’