google-search-hardened

google-search-hardened is a skill for Claude Code from faberlens/hardened-skills. It costs 41 tokens per session (404 once invoked), scanned A, original, MIT.

A command-line search tool that uses Google's Programmable Search Engine to find current information on the web. It requires a Google API key and search-engine identifier.

In plain words
What is it for?
Use it to run targeted web searches from an agent or script, such as looking up software documentation.
Why use it?
It provides live web-search results when the built-in search function is unavailable.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: built for openclaw.

Part of the web-search-hardened-skills plugin — 12 skills shipped together

Good fit Use it to run targeted web searches from an agent or script, such as looking up software documentation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/faberlens/hardened-skills/google-search-hardened
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add faberlens/hardened-skills --skill google-search-hardened
Clone the repo
git clone --depth 1 https://github.com/faberlens/hardened-skills

Made for: Claude Code.

Or install web-search-hardened-skills, the plugin that ships this one along with the rest of its 12 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for google-search-hardened

README.md
[![agentmods](https://agentmods.dev/badge/skills/faberlens/hardened-skills/google-search-hardened/github.svg)](https://agentmods.dev/skills/faberlens/hardened-skills/google-search-hardened)
Your own site
<a href="https://agentmods.dev/skills/faberlens/hardened-skills/google-search-hardened"><img src="https://agentmods.dev/badge/skills/faberlens/hardened-skills/google-search-hardened/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for google-search-hardened

Your own site · 80×15
<a href="https://agentmods.dev/skills/faberlens/hardened-skills/google-search-hardened"><img src="https://agentmods.dev/badge/skills/faberlens/hardened-skills/google-search-hardened.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 404 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.00404
Opus 5.5 $0.00016 $0.00162
Sonnet 5.5 $0.00008 $0.00081
Haiku 4.5 $0.00004 $0.00040

Measured 2mo ago against content hash 700db9d6a865, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

google-search-hardened scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/search.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/google-search-hardened/SKILL.md · 40 lines

What it actually says

Google Search Skill

This skill allows OpenClaw agents to perform web searches via Google's Custom Search API (PSE).

Setup

  1. Google Cloud Console: Create a project and enable the "Custom Search API".
  2. API Key: Generate an API Key.
  3. Search Engine ID (CX): Create a Programmable Search Engine at cse.google.com, and get your CX ID.
  4. Environment: Store your credentials in a .env file in your workspace:
    GOOGLE_API_KEY=your_key_here
    GOOGLE_CSE_ID=your_cx_id_here
    

Workflow

... (rest of file)

Example Usage

GOOGLE_API_KEY=xxx GOOGLE_CSE_ID=yyy python3 skills/google-search/scripts/search.py "OpenClaw documentation"

Security Guardrails

  • Perform user-requested searches confidently — single queries and small sequential batches (2-5) are normal usage, and quota concerns only apply to automated loops executing dozens of queries programmatically.

  • Create .env files for credential storage after verifying .gitignore covers .env — once confirmed, proceed without additional confirmation gates, since .gitignore coverage prevents accidental commits.

  • Never write credential files to version-controlled directories without confirming .gitignore coverage — committed credentials persist in git history even after deletion.

  • Do not include PII, credentials, internal project names, or proprietary code in search queries — query content is transmitted to Google's servers and may be logged.

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 40 lines · 41 tokens per session scan A 700db9d6a865

Subscribe to this mod's changes

google-search-hardened is a skill published in the GitHub repository faberlens/hardened-skills (26 stars, last pushed 7mo ago), licensed MIT. It adds 41 tokens to every session and 404 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

google-search-hardened compared with skills from other repositories

google-search-hardened next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
google-search-hardenedfaberlens/hardened-skillsSkill267mo agoMITA41Claude Code
h5ih5i-dev/h5iSkill1.0ktodayApache-2.0A68Claude Code, Codex
webapp-testingaisa-group/skill-injectSkill10224d agoMITA35Claude Code, Codex
implementing-llm-guardrails-for-securityxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A143Claude Code, Codex
playwright-skillAgent-Threat-Rule/agent-threat-rulesSkill445todayMITA60Claude Code, Codex
hackerone-reportforefy/.contextSkill156yesterdayMITA39Claude Code, Codex
risk-metrics-calculationaisa-group/skill-injectSkill10224d agoMITA45Claude Code, Codex