Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/serpapi-reference-architecture

@0d57af8
Run it yourself

Design a governed SerpAPI search service with engine adapters, policy enforcement, caching, capacity management, observability, and privacy boundaries. Use when conducting architecture review. Trigger with "design a SerpAPI architecture".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/serpapi-reference-architecture

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈68 tokens for metadata: the name and description. ≈935 when used: this file.

Description uses 3.4% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈271 characters, or 3.4%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

SerpAPI Governed Reference Architecture

Overview

Place SerpAPI behind an application boundary that controls identity, parameters, data, allowance, and failure behavior for every engine.

Prerequisites

  • Business use cases, caller identities, engines, data classes, freshness and latency objectives
  • Volume model, account contract, downstream systems, and regulatory/retention requirements
  • Security, product, finance, reliability, and platform owners

Tool Discipline

Use Read, Glob, and Grep to ground the design in repository and infrastructure topology, WebFetch to verify current vendor contracts, and Write or Edit for diagrams, decision records, interfaces, threat models, and rollout evidence.

Current Contract

SerpAPI has engine-specific requests and variable response sections, private-key authentication, account-level search and throughput capacity, optional async/archive processing, one-hour exact-query server caching, and Enterprise ZeroTrace. Async depends on archive retrieval, while ZeroTrace intentionally prevents stored search records.

Authentication

Keep SERPAPI_KEY in a server-side secret boundary. Authenticate application callers independently and enforce use-case authorization before the gateway maps input to allowlisted vendor parameters.

Instructions

  1. Map callers, trust zones, engines, queries, results, stores, consumers, data classes, and systems of record.
  2. Define an authenticated gateway with use-case-specific input schemas, engine adapters, output projections, and policy enforcement.
  3. Add an application cache with credential-free semantic keys, freshness TTLs, encryption and retention appropriate to the data class.
  4. Coordinate admission, concurrency, pagination, retries, and background work against live Account API capacity.
  5. Separate synchronous calls from async/archive jobs and prove that any ZeroTrace path does not rely on archive replay.
  6. Emit safe metrics and search-ID correlation without query, result, key-bearing URL, or account leakage.
  7. Design fixture-first tests, canary, reconciliation, degradation, support escalation, key rotation, disaster recovery, and rollback.
  8. Record alternatives, constraints, approvals, unresolved risks, and a staged implementation plan.

Approval Boundaries

Do not provision infrastructure, expose routes, create secrets, enable account features, or send production searches from an architecture exercise.

Output

Return context and container diagrams, trust/data flows, gateway and adapter contracts, cache/capacity design, privacy decision, failure model, test/rollout plan, risks, and decision owners.

Error Handling

Condition Response
Gateway is a generic parameter pass-through Replace it with use-case schemas and allowlists.
Capacity is managed per instance only Add shared admission control across credential-sharing workers.
ZeroTrace path requires replay Redesign the diagnostic and recovery model.
Search results become a system of record Define provenance, refresh, deletion, and reconciliation explicitly.

Example

caller -> authenticated policy gateway -> engine adapter -> capacity limiter -> SerpAPI
                                      \-> semantic cache
search metadata -> redacted telemetry; normalized results -> governed consumer

Resources

Next Steps

Validate the design with security, product, finance, and reliability owners before creating an implementation tranche.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides a reference architecture for search-powered applications using SerpApi. It follows security best practices by recommending environment variables for secret management. However, as the architecture involves processing external search results, it presents a standard entry point for indirect prompt injections.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 19 hours ago.

Activeupdated 2 months ago
What it can do
Reads files Network Edits files
Modelinherit
argument-hint
[use-case] [engines] [data-classification]
version
1.6.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
All 6 allowed tools
ReadGlobGrepWebFetchWriteEdit
Other metadata
tags
[
  "saas",
  "serpapi",
  "architecture",
  "governance",
  "reliability"
]
model
inherit
effort
high
compatibility
Designed for Claude Code; architecture output is a review artifact and does not authorize infrastructure, account, or production changes

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/serpapi-reference-architecture