Agent skill

Serpapi Performance Tuning

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

Measure and improve SerpAPI latency, payload size, connection reuse, caching, and concurrency without breaking freshness or allowance controls.

MITAuto-check passedDevOps & Cloud

Install Serpapi Performance Tuning

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

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

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace serpapi-performance-tuning --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-performance-tuning .claude/skills/serpapi-performance-tuning && 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-performance-tuning
GitHub stars
2.8k
Token cost
~1k tokens
SKILL.md length
400 words
Files
1
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Measure and improve SerpAPI latency, payload size, connection reuse, caching, and concurrency without breaking freshness or allowance controls.

  • Works in 7 steps: Break total latency into queue,… → Confirm whether the workload needs… → Normalize parameters and add an… → …
  • Search performance misses an SLO
  • SKILL.md covers Overview, Prerequisites, Tool Discipline and Current Contract, plus 7 more sections
  • Needs SERPAPI_KEY

What it does

Serpapi Performance Tuning is an agent skill from jeremylongshore/tons-of-skills-marketplace. Measure and improve SerpAPI latency, payload size, connection reuse, caching, and concurrency without breaking freshness or allowance controls. Use when search performance misses an SLO. Trigger with "tune SerpAPI performance".

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; production cache, output, or concurrency changes require owner approval and measured rollback criteria

It sits in DevOps & Cloud, covering Site reliability engineering and Caching. 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

  • Search performance misses an SLO
  • With tune SerpAPI performance

Example prompts

  • “tune SerpAPI performance”
  • “/serpapi-performance-tuning”

Requirements

  • Python 3
  • A credential in SERPAPI_KEY
  • Compatibility (from SKILL.md): Designed for Claude Code; production cache, output, or concurrency changes require owner approval and measured rollback criteria
  • Pre-approved tools (allowed-tools): Read, Glob, Grep, WebFetch, Write, Edit

Workflow steps

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

  1. Break total latency into queue, connection, vendor processing, transfer, parsing, and downstream rendering; record p50, p95, and p99.
  2. Confirm whether the workload needs structured JSON, restricted JSON, Markdown, or approved raw HTML.
  3. Normalize parameters and add an application cache whose key excludes credentials but includes every input that changes semantics.
  4. Align cache TTL with the freshness objective; allow the SerpAPI server cache unless a justified fresh-fetch requirement exists.
  5. Reuse the official Python client's pooled connections or the supported JavaScript client rather than creating ad hoc transports.
  6. Bound concurrency below the live Account API throughput and compare sequential, limited-parallel, and cached paths with fixtures or an…
  7. Promote only if latency improves without worse correctness, privacy, errors, 429s, or search consumption; retain rollback thresholds.

What it can do on your machine

Read from SKILL.md and the folder at commit 80f86df. 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

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    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

    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; production cache, output, or concurrency changes require owner approval and measured rollback criteria

    From compatibility in the SKILL.md frontmatter.

Context cost

Serpapi Performance Tuning loads about 1k tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 400 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
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 80f86df, republished under its MIT licence (© jeremylongshore). 400 words, ~1,029 tokens.

Download SKILL.mdSave it as .claude/skills/serpapi-performance-tuning/SKILL.md (or your agent's skills folder).
name
serpapi-performance-tuning
description
Measure and improve SerpAPI latency, payload size, connection reuse, caching, and concurrency without breaking freshness or allowance controls. Use when search performance misses an SLO. Trigger with "tune SerpAPI performance".
allowed-tools
Read, Glob, Grep, WebFetch, Write, Edit
compatibility
Designed for Claude Code; production cache, output, or concurrency changes require owner approval and measured rollback criteria
argument-hint
[engine] [latency-slo] [freshness-slo]
version
1.6.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
license
MIT
tags
saas, serpapi, performance, caching, observability
model
inherit
effort
high

SerpAPI Evidence-Driven Performance Tuning

Overview

Optimize the measured bottleneck while preserving result freshness, schema correctness, privacy, and account capacity.

Prerequisites

  • Engine-level latency histograms, payload sizes, error rates, cache hits, and search consumption
  • User-facing latency and freshness objectives plus an account throughput budget
  • Representative sanitized fixtures and a reversible canary environment

Tool Discipline

Use Read, Glob, and Grep to inspect call paths and instrumentation, WebFetch to verify current cache and output features, and Write or Edit for measurements, cache layers, field selection, tests, and rollback controls.

Current Contract

For an exactly matching parameter set, SerpAPI may serve its one-hour server cache; cached searches are free and do not count toward monthly searches. no_cache=true forces a fresh fetch and must not be combined with async. JSON Restrictor reduces selected JSON fields, and output=md provides token-efficient Markdown for agent use.

Authentication

Keep SERPAPI_KEY outside measurement labels, cache keys, traces, and profiles. Treat query values and result bodies according to their data classification.

Instructions

  1. Break total latency into queue, connection, vendor processing, transfer, parsing, and downstream rendering; record p50, p95, and p99.
  2. Confirm whether the workload needs structured JSON, restricted JSON, Markdown, or approved raw HTML.
  3. Normalize parameters and add an application cache whose key excludes credentials but includes every input that changes semantics.
  4. Align cache TTL with the freshness objective; allow the SerpAPI server cache unless a justified fresh-fetch requirement exists.
  5. Reuse the official Python client's pooled connections or the supported JavaScript client rather than creating ad hoc transports.
  6. Bound concurrency below the live Account API throughput and compare sequential, limited-parallel, and cached paths with fixtures or an approved canary.
  7. Promote only if latency improves without worse correctness, privacy, errors, 429s, or search consumption; retain rollback thresholds.
Show full SKILL.md (109 more words)Show less

Output

Return the baseline profile, bottleneck, proposed and measured changes, cache-key/TTL contract, output format, capacity impact, canary results, and rollback thresholds.

Error Handling

ConditionResponse
Cache serves semantically wrong dataDisable the layer and expand the normalized key contract.
no_cache raises usage unexpectedlyRemove it unless the freshness requirement explicitly justifies fresh fetches.
Parallelism causes 429sReduce admissions and coordinate through the shared limiter.
Field restriction breaks parsingRestore required fields and lock the projection with fixtures.

Example

text
engine=google; baseline_p95=measured; bottleneck=payload; change=json-restrictor; freshness=1h; search_delta=0; schema-tests=pass; rollback=feature-flag

Resources

Next Steps

Observe a full traffic cycle and revisit the tuning decision when freshness, engine mix, or account capacity changes.

© 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-performance-tuning of jeremylongshore/tons-of-skills-marketplace.

Open the folder on GitHubat commit 80f86df

Compare with similar skills

Serpapi Performance Tuning 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 Performance Tuning compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Serpapi Performance Tuning this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1kAutomated safety check: PassMIT
System Designninehills/skills280—~4.7kAutomated safety check: PassMIT
System Designwondelai/skills2.4k—~4kAutomated safety check: PassMIT
Executing Distributed System Testsshenli/distributed-system-testing231—~5.1kAutomated safety check: NotesMIT
H Verifym0n0x41d/haft1.4k—~3.5kAutomated safety check: NotesCustom licence
Golang Samber Hotsamber/cc-skills-golang3.4k—~2kAutomated safety check: PassMIT

Similar skills

  • System Design

    ninehills/skills

    Design scalable distributed systems using structured approaches for load balancing, caching, database scaling, and message queues.

    280 GitHub stars~4.7k tokensUpdated 3 mo ago
    Backend & APIsAuto-check passed
  • System Design

    wondelai/skills

    Design scalable distributed systems using structured approaches for load balancing, caching, database scaling, and message queues.

    2.4k GitHub stars~4k tokensUpdated 29 days ago
    Backend & APIsAuto-check passed
  • Executing Distributed System Tests

    shenli/distributed-system-testing

    A skill your agent uses when running a previously designed distributed-systems test plan against a real or simulated cluster — driving fault injection, workload, chaos scenarios, linearizability /…

    231 GitHub stars~5.1k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check: notes
  • H Verify

    m0n0x41d/haft

    Verifies that a recorded DecisionRecord still holds — baseline-vs-measure evidence loop with drift detection per FPF Evidence Decay.

    1.4k GitHub stars~3.5k tokensUpdated 11 days ago
    DevOps & CloudAuto-check: notes
  • Golang Samber Hot

    samber/cc-skills-golang

    In-memory caching in Golang using samber/hot — eviction algorithms (LRU, LFU, TinyLFU, W-TinyLFU, S3FIFO, ARC, TwoQueue, SIEVE, FIFO), TTL, cache loaders, sharding, stale-while-revalidate, missing…

    3.4k GitHub stars~2k tokensUpdated 8 days ago
    DevOps & CloudAuto-check passed
  • Maintain CI

    NVIDIA/NeMo-Relay

    Official

    Change or review NeMo Relay GitHub Actions workflows where permissions, pinned actions, caching, reusable workflows, or release gates require repository-specific handling.

    192 GitHub stars~1k tokensUpdated yesterday
    DevOps & CloudAuto-check passed

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
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated yesterday
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Serpapi Performance Tuning

What does Serpapi Performance Tuning do?

Measure and improve SerpAPI latency, payload size, connection reuse, caching, and concurrency without breaking freshness or allowance controls. Serpapi Performance Tuning is an agent skill from jeremylongshore/tons-of-skills-marketplace. Measure and improve SerpAPI latency, payload size, connection reuse, caching, and concurrency without breaking freshness or allowance controls.

When should I use Serpapi Performance Tuning?

Serpapi Performance Tuning fits situations like: search performance misses an SLO; with tune SerpAPI performance.

How do I install Serpapi Performance Tuning in Claude Code?

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

How do I install Serpapi Performance Tuning in Codex?

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

Can I use Serpapi Performance Tuning 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-performance-tuning -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-performance-tuning, .gemini/skills/serpapi-performance-tuning, .github/skills/serpapi-performance-tuning and .opencode/skills/serpapi-performance-tuning in your project.

What does Serpapi Performance Tuning need to run?

Going by SKILL.md and its folder, Serpapi Performance Tuning 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. Compatibility (from SKILL.md): Designed for Claude Code; production cache, output, or concurrency changes require owner approval and measured rollback criteria.

Does Serpapi Performance Tuning access the network?

SKILL.md names 1 domain. As links in the text: serpapi.com. This is read from the text; nothing was executed.

Is Serpapi Performance Tuning 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 Performance Tuning use?

Serpapi Performance Tuning 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 Performance Tuning 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 Performance Tuning?

Skills that share tags, products or a category with Serpapi Performance Tuning: System Design (ninehills/skills, 280 stars), System Design (wondelai/skills, 2.4k stars), Executing Distributed System Tests (shenli/distributed-system-testing, 231 stars) and H Verify (m0n0x41d/haft, 1.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Serpapi Performance Tuning?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,825 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 9, 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.