Agent skill

serpapi-performance-tuning

Optimize SerpApi performance with caching, async searches, and result filtering. Use when reducing latency, minimizing credit consumption, or optimizing search throughput. slow". '

intentsolutions.io2,596★ · 1 repos on radarProfile →
claude-codecan modify filesMIT
Install
npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill serpapi-performance-tuning --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 4 KB
Bundled scripts: none
Version: 1.4.0
Declared author: Jeremy Longshore <jeremy@intentsolutions.io>
Allowed tools: ReadWriteEdit
Requires: Designed for Claude Code
Path: plugins/saas-packs/serpapi-pack/skills/serpapi-performance-tuning/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 2,630
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# SerpApi Performance Tuning ## Overview SerpApi typical latency: 2-5 seconds per search (real-time scraping). Main optimization: aggressive caching since search results change slowly. Secondary: use Google Light API for faster responses, reduce `num` parameter, and parallelize independent searches. ## Instructions ### Step 1: Multi-Layer Caching ```typescript import { LRUCache } from 'lru-cache'; import { Redis } from 'ioredis'; import { getJson } from 'serpapi'; // L1: In-memory (fastest, per-instance) const l1 = new LRUCache<string, any>({ max: 1000, ttl: 600_000 }); // 10 min // L2: Redis (shared across instances) const redis = new Redis(process.env.REDIS_URL!); async function cachedSearch(params: Record<string, any>): Promise<any> { const key = `serpapi:${JSON.stringify(params)}`; // L1 check const l1Hit = l1.get(key); if (l1Hit) return l1Hit; // L2 check const l2Hit = await redis.get(key); if (l2Hit) { const parsed = JSON.parse(l2Hit); l1.set(key, parsed); return parsed; } // Cache miss: real API call const result = await getJson({ ...params, api_key: process.env.SERPAPI_API_KEY }); l1.set(key, result); await redis.setex(key, 3600, JSON.stringify(result)); // 1 hour in Redis

What's inside
Steps it walks through
  1. Overview
  2. Instructions
  3. Step 1: Multi-Layer Caching
  4. Step 2: Google Light API (Faster)
  5. Step 3: Reduce Response Size
  6. Step 4: Parallel Search
  7. Latency Benchmarks
  8. Error Handling
  9. Resources
  10. Next Steps
More from claude-code-plugins-plus-skills
All skills →
About this skill
What does the serpapi-performance-tuning skill do?

Optimize SerpApi performance with caching, async searches, and result filtering. Use when reducing latency, minimizing credit consumption, or optimizing search throughput. slow". '

How do I install it?

Run `npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill serpapi-performance-tuning --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From jeremylongshore/claude-code-plugins-plus-skills, a repository with 2,630 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going