Przejdź do treści
Biblioteka skilli
DevOps i chmura · Analiza

serpapi-performance-tuning

/serpapi-performance-tuning

Mierzy i poprawia opóźnienia SerpAPI, rozmiar odpowiedzi, ponowne użycie połączeń, buforowanie i współbieżność bez naruszania świeżości danych i kontroli limitu.

Licencja
MIT
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
4
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Mierzy i poprawia opóźnienia SerpAPI, rozmiar odpowiedzi, ponowne użycie połączeń, buforowanie i współbieżność bez naruszania świeżości danych i kontroli limitu.

Wyzwalacze z opisu

tune SerpAPI performance

Argumenty

/serpapi-performance-tuning [engine] [latency-slo] [freshness-slo]
Oryginalny opis (EN)

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".

Jak działa

  1. Overview
  2. Prerequisites
  3. Tool Discipline
  4. Current Contract
  5. Authentication
  6. Instructions
  7. Output
  8. Error Handling
  9. Example
  10. Resources
Sekcje z nagłówków SKILL.md, w oryginale · 64 linii, 445 słów
Podgląd SKILL.md
---
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".'
argument-hint: "[engine] [latency-slo] [freshness-slo]"
allowed-tools: Read, Glob, Grep, WebFetch, Write, Edit
version: 1.6.0
author: Jeremy Longshore <jeremy@intentsolutions.io>
license: MIT
tags: [saas, serpapi, performance, caching, observability]
model: inherit
effort: high
compatibility: Designed for Claude Code; production cache, output, or concurrency changes require owner approval and measured rollback criteria
---
# 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.

## 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

| Condition | Response |
|---|---|
| Cache serves semantically wrong data | Disable the layer and expand the normalized key contract. |
| `no_cache` raises usage unexpectedly | Remove it unless the freshness requirement explicitly justifies fresh fetches. |
| Parallelism causes 429s | Reduce admissions and coordinate through the shared limiter. |
| Field restriction breaks parsing | Restore 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

- [Google Search SerpAPI parameters](https://serpapi.com/search-api#serpapi-parameters)
- [JSON Restrictor](https://serpapi.com/json-restrictor)
- [Markdown output](https://serpapi.com/markdown)
- [Account API](https://serpapi.com/account-api)

## Next Steps

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

Wersje

W bazie nie ma innych skilli o nazwie serpapi-performance-tuning.

Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.

Migawka bazy z 13.11.2026 · wersja paczki 84b218cebda4 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100serpapi-cost-tuning
    Obniża zużycie wyszukiwań SerpAPI przez pomiar zapotrzebowania, buforowanie dokładnych zapytań, budżety dopuszczania i aktualne dane o cenach konta.
  • 100serpapi-ci-integration
    Zabezpiecza kod SerpAPI zsanityzowanymi fixture'ami i izoluje opcjonalne wyszukiwania na żywo w zaufanych środowiskach CI z kontrolą limitu, przy dodawaniu testów integracyjnych do automatyzacji.
  • 90search
    Pobiera na żywo wyniki z Google, map, wiadomości, zakupów, ofert pracy i ponad stu silników przez SerpApi, z linkami do źródeł.
  • 100vastai-performance-tuning
    Optymalizuje wydajność API Vast.ai przez cache, batching i pule połączeń, przy wolnych odpowiedziach i przepustowości żądań.
  • 100sentry-performance-tuning
    Optymalizuje konfigurację monitoringu wydajności w Sentry, w tym sample rate, narzut SDK i jakość danych o wydajności.
  • 100load-testing-k6-performance-scripts
    Tworzy skrypty k6 symulujące dużą liczbę użytkowników i sprawdza progi SLO oraz opóźnienia p95 i p99.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.