Agent skill

Serpapi Common Errors

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Classify SerpAPI HTTP failures, search-status failures, and valid empty results before choosing a retry or repair.

MITAuto-check passed

Install Serpapi Common Errors

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill serpapi-common-errors -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace serpapi-common-errors --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/serpapi-common-errors .claude/skills/serpapi-common-errors && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
serpapi-common-errors
GitHub stars
2.8k
Token cost
~1k tokens
SKILL.md length
397 words
Files
1
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Classify SerpAPI HTTP failures, search-status failures, and valid empty results before choosing a retry or repair.

  • Works in 7 steps: Capture the HTTP status, response error,… → Determine whether failure occurred… → For 400, compare parameters with the… → …
  • Return unexpected shapes
  • SKILL.md covers Overview, Prerequisites, Tool Discipline and Current Contract, plus 7 more sections
  • Needs SERPAPI_KEY

What it does

Serpapi Common Errors is an agent skill from jeremylongshore/tons-of-skills-marketplace. Classify 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".

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Designed for Claude Code; live reproduction and archive access require an authorized key and may affect allowance

It works with SerpApi. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Return unexpected shapes
  • With diagnose a SerpAPI error

Example prompts

  • “diagnose a SerpAPI error”
  • “/serpapi-common-errors”

Requirements

  • Python 3
  • A credential in SERPAPI_KEY
  • Compatibility (from SKILL.md): Designed for Claude Code; live reproduction and archive access require an authorized key and may affect allowance
  • Pre-approved tools (allowed-tools): Read, Glob, Grep, WebFetch, Write, Edit, Bash(python3:*)

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Capture the HTTP status, response error, search status, search ID, engine, safe parameter names, and client timeout.
  2. Determine whether failure occurred before search creation, during queued/processing work, after a terminal error, or in local parsing.
  3. For 400, compare parameters with the selected engine documentation and fix locally without retrying unchanged.
  4. For 401/403, stop and repair account access; for 429, query Account API to separate throughput from allowance.
  5. Retry timeouts and 500/503 only with a small attempt budget, exponential backoff, jitter, and idempotent processing.
  6. Treat terminal Success with empty sections as data, then inspect documented engine-specific _state fields.
  7. Add a sanitized regression fixture and record the classification, fix, retry count, and final state.

What it can do on your machine

Read from SKILL.md and the folder at commit 23ea8d4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep
    • WebFetch
    • Write
    • Edit
    • Bash(python3:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • serpapi.com
    • status.serpapi.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • SERPAPI_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code; live reproduction and archive access require an authorized key and may affect allowance

    From compatibility in the SKILL.md frontmatter.

Context cost

Serpapi Common Errors loads about 1k tokens when it runs. Until then it costs about 59 tokens; SKILL.md has 397 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~59
When it runs · the whole SKILL.md, loaded when a task matches
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit 23ea8d4, republished under its MIT licence (© jeremylongshore). 397 words, ~1,017 tokens.

Download SKILL.mdSave it as .claude/skills/serpapi-common-errors/SKILL.md (or your agent's skills folder).
name
serpapi-common-errors
description
Classify 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".
allowed-tools
Read, Glob, Grep, WebFetch, Write, Edit, Bash(python3:*)
compatibility
Designed for Claude Code; live reproduction and archive access require an authorized key and may affect allowance
argument-hint
[status-code|search-id] [engine]
version
1.6.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
license
MIT
tags
saas, serpapi, troubleshooting, errors, reliability
model
inherit
effort
high

SerpAPI Error Classification and Recovery

Overview

Diagnose the transport, account, search, engine, and application layers separately so retries do not hide configuration or quota failures.

Prerequisites

  • HTTP status, safe error text, engine, normalized parameters, client version, and timestamp
  • Search ID and search_metadata.status when a response was created
  • Account owner approval before any live reproduction

Tool Discipline

Use Read, Glob, and Grep to trace request construction and parsing, WebFetch to verify current error semantics, Write or Edit for fixes and redacted evidence, and Bash(python3:*) only for an approved diagnostic using the official client.

Current Contract

SerpAPI uses conventional statuses: 400 for invalid requests, 401 for invalid authentication, 403 for forbidden accounts, 404 for missing resources, 410 for expired archive searches, 429 for either hourly throughput or exhausted searches, and 500/503 for server failures. Search status can be Queued, Processing, Success, or Error; Success can contain empty results.

Authentication

Keep SERPAPI_KEY out of exceptions and captured request URLs. Use the Account API to classify 429 responses, and share only redacted request metadata or search IDs with support.

Instructions

  1. Capture the HTTP status, response error, search status, search ID, engine, safe parameter names, and client timeout.
  2. Determine whether failure occurred before search creation, during queued/processing work, after a terminal error, or in local parsing.
  3. For 400, compare parameters with the selected engine documentation and fix locally without retrying unchanged.
  4. For 401/403, stop and repair account access; for 429, query Account API to separate throughput from allowance.
  5. Retry timeouts and 500/503 only with a small attempt budget, exponential backoff, jitter, and idempotent processing.
  6. Treat terminal Success with empty sections as data, then inspect documented engine-specific _state fields.
  7. Add a sanitized regression fixture and record the classification, fix, retry count, and final state.
Show full SKILL.md (102 more words)Show less

Output

Return the failure layer, status and search ID, retryability decision, evidence, corrective change, regression fixture, final state, and support escalation data.

Error Handling

SignalAction
400Correct parameters; no unchanged retry.
401/403Stop; repair authorization or account state.
410Re-run only with approval because the archive record expired.
429Inspect account throughput and searches left before waiting or changing plan.
500/503 or timeoutRetry within budget; escalate persistent failures with search IDs.

Example

python
try:
    result = client.search(params)
except serpapi.HTTPError as exc:
    if exc.status_code in {400, 401, 403}:
        raise PermanentSearchError(exc.status_code) from exc
    if exc.status_code == 429:
        raise CapacityDecisionRequired() from exc
    raise TransientSearchError(exc.status_code) from exc

Resources

Next Steps

Keep the new fixture in the offline suite and review retry metrics after the next production window.

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/.curated/serpapi-common-errors of jeremylongshore/tons-of-skills-marketplace.

Open the folder on GitHubat commit 23ea8d4

Compare with similar skills

Serpapi Common Errors next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Serpapi Common Errors compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Serpapi Common Errors this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1kAutomated safety check: PassMIT
SEO and GEO Auditdageno-agents/seo-geo-audit176—~2kAutomated safety check: PassMIT
Stock Analysisliusai0820/Stock-Analysis-Skill142—~904Automated safety check: NotesNone
Caption Writerstevenflanagan1/social-ai-team241—~2.9kAutomated safety check: PassNone
Image Search UsageOtoDock/oto-dock190—~1.1kAutomated safety check: PassCustom licence
Serpapi AutomationComposioHQ/awesome-claude-skills77k3 repos~730Automated safety check: PassNone

Similar skills

  • SEO and GEO Audit

    dageno-agents/seo-geo-audit

    Runs one prioritized audit that combines technical SEO, content quality, trust signals, entity clarity and AI search readiness for a page, site or domain.

    176 GitHub stars~2k tokensUpdated 1 mo ago
    Marketing & SEOAuto-check passed
  • Stock Analysis

    liusai0820/Stock-Analysis-Skill

    股票智能分析技能。输入股票代码(A股/港股/美股),自动完成: 1. An agent skill from liusai0820/Stock-Analysis-Skill.

    142 GitHub stars~904 tokensUpdated 7 mo ago
    Business, Finance & HRAuto-check: notes
  • Caption Writer

    stevenflanagan1/social-ai-team

    Writes on-brand social media captions for SMBs. An agent skill from stevenflanagan1/social-ai-team.

    241 GitHub stars~2.9k tokensUpdated yesterday
    Writing & ContentAuto-check passed
  • Image Search Usage

    OtoDock/oto-dock

    Search the web for images with filters and download them. An agent skill from OtoDock/oto-dock.

    190 GitHub stars~1.1k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Serpapi Automation

    ComposioHQ/awesome-claude-skills

    Automate Serpapi tasks via Rube MCP (Composio). An agent skill from ComposioHQ/awesome-claude-skills.

    77k GitHub starsUsed in 3 repos~730 tokens
    Productivity & AutomationAuto-check passed
  • Serpapi

    borski/travel-hacking-toolkit

    Google Flights cash prices, Google Hotels, and Google Travel Explore via SerpAPI.

    688 GitHub stars~1.9k tokensUpdated 2 days ago
    Auto-check: notes

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Analyzing Text With NLP

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to perform natural language processing and text analysis using the nlp-text-analyzer plugin.

    2.8k GitHub starsUsed in 1 repo~819 tokens
    Auto-check passed
  • Building Neural Networks

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill allows AI assistant to construct and configure neural network architectures using the neural-network-builder plugin.

    2.8k GitHub starsUsed in 1 repo~1k tokens
    Auto-check passed
  • Detecting Data Anomalies

    jeremylongshore/tons-of-skills-marketplace

    Process identify anomalies and outliers in datasets using machine learning algorithms.

    2.8k GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Explaining Machine Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill enables AI assistant to provide interpretability and explainability for machine learning models.

    2.8k GitHub starsUsed in 1 repo~1k tokens
    Auto-check passed
  • Optimizing Prompts

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill optimizes prompts for large language models (llms) to reduce token usage, lower costs, and improve performance.

    2.8k GitHub starsUsed in 1 repo~1k tokens
    Auto-check passed

Works with

Questions about Serpapi Common Errors

What does Serpapi Common Errors do?

Classify SerpAPI HTTP failures, search-status failures, and valid empty results before choosing a retry or repair. Serpapi Common Errors is an agent skill from jeremylongshore/tons-of-skills-marketplace. Classify SerpAPI HTTP failures, search-status failures, and valid empty results before choosing a retry or repair.

When should I use Serpapi Common Errors?

Serpapi Common Errors fits situations like: return unexpected shapes; with diagnose a SerpAPI error.

How do I install Serpapi Common Errors in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill serpapi-common-errors -a claude-code`. Or copy the skill folder (skills/.curated/serpapi-common-errors in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/serpapi-common-errors in your project. Claude Code loads it when a task matches its description.

How do I install Serpapi Common Errors in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill serpapi-common-errors -a codex`. Or copy the skill folder (skills/.curated/serpapi-common-errors in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/serpapi-common-errors in your project. Codex loads it when a task matches its description.

Can I use Serpapi Common Errors in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill serpapi-common-errors -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/serpapi-common-errors, .gemini/skills/serpapi-common-errors, .github/skills/serpapi-common-errors and .opencode/skills/serpapi-common-errors in your project.

What does Serpapi Common Errors need to run?

Going by SKILL.md and its folder, Serpapi Common Errors needs credentials named SERPAPI_KEY. Our summary lists: Python 3; A credential in SERPAPI_KEY. Its frontmatter pre-approves these tools: Read, Glob, Grep, WebFetch, Write, Edit, Bash(python3:*). Compatibility (from SKILL.md): Designed for Claude Code; live reproduction and archive access require an authorized key and may affect allowance.

Does Serpapi Common Errors access the network?

SKILL.md names 2 domains. As links in the text: serpapi.com and status.serpapi.com. This is read from the text; nothing was executed.

Is Serpapi Common Errors safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Serpapi Common Errors use?

Serpapi Common Errors is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Serpapi Common Errors use?

About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Serpapi Common Errors?

Skills that share tags, products or a category with Serpapi Common Errors: SEO and GEO Audit (dageno-agents/seo-geo-audit, 176 stars), Stock Analysis (liusai0820/Stock-Analysis-Skill, 142 stars), Caption Writer (stevenflanagan1/social-ai-team, 241 stars) and Image Search Usage (OtoDock/oto-dock, 190 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Serpapi Common Errors?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,821 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 8, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.