/serpapi-pack:serpapi-hello-world [query] [python|javascript]from serpapi-pack
Runs a controlled first Google search via SerpAPI to validate authentication, transport, and schema handling. Use when proving a new SerpAPI integration end to end.
Ships in serpapi-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Prove authentication, transport, search status, and schema handling with one bounded query and a redacted receipt.
SERPAPI_KEY loaded from an approved server-side secret storeUse Read, Glob, and Grep to inspect local setup, WebFetch to verify current Google Search parameters, Write or Edit for the smoke-test code and redacted receipt, and Bash(python3:*) or Bash(npm:*) only to run the approved check.
Google Search uses engine=google and query parameter q. JSON responses expose search_metadata.status, a search ID, search parameters, and optional result sections. A successful search may legitimately contain no organic results.
Pass the private key from SERPAPI_KEY through the official client. Never interpolate it into source, logs, exceptions, fixtures, screenshots, or receipts.
location, hl, and gl values when geographic reproducibility matters.engine=google, q, and the minimum necessary parameters.search_metadata.status == "Success"; treat missing result sections as optional schema branches.Return the approved request shape, search status, result-section counts, search ID, redacted receipt location, and any schema assumptions that need fixtures.
| Condition | Response |
|---|---|
| HTTP 400 | Correct the engine-specific parameters; do not retry unchanged. |
| HTTP 401 or 403 | Stop and repair authorization without printing the key. |
| HTTP 429 | Inspect Account API before deciding whether to wait or increase allowance. |
| HTTP 5xx or timeout | Retry a bounded number of times with jitter and preserve the search ID if present. |
Success with no organic results | Inspect other documented sections and the engine-specific _state; do not label it an API failure. |
import os
import serpapi
client = serpapi.Client(api_key=os.environ["SERPAPI_KEY"], timeout=15)
result = client.search({
"engine": "google",
"q": "coffee",
"location": "Austin, Texas, United States",
"hl": "en",
"gl": "us",
})
assert result["search_metadata"]["status"] == "Success"
print({
"search_id": result["search_metadata"]["id"],
"organic_count": len(result.get("organic_results", [])),
})
Capture a sanitized response fixture and move subsequent parser work into the local-development workflow.
What SKILL.md sets; muted values are Claude Code's defaults
inheritmediumThree short reads, in order
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin serpapi-pack18 skills in this plugin
/serpapi-ci-integrationGate SerpAPI code with sanitized fixtures and isolate optional live searches behind trusted CI environments and allowance controls. Use when adding integration tests to automation. Trigger with "add SerpAPI CI"./serpapi-common-errorsClassify SerpAPI HTTP failures, search-status failures, and valid empty results before choosing a retry or repair. Use when searches fail, stall, or return unexpected shapes. Trigger with "diagnose a SerpAPI error"./serpapi-core-workflow-aBuild a reproducible Google Search workflow that validates parameters, optional result sections, and bounded pagination. Use when implementing search, SEO monitoring, or evidence collection. Trigger with "build a SerpAPI Google workflow".Other plugins' skills for the same job