Conversation
shrey258
marked this pull request as ready for review
May 27, 2026 06:49
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 3257959. Configure here.
The router doc is read after install — guidance about "when to install" or "once installed" is read by a reader who's already there. Tighten the two sentences so they describe the skill's responsibility directly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
shrey258
marked this pull request as draft
May 28, 2026 09:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Turn the SerpApi foundational skill into a master router so agents reliably pick the right engine/fields and can use the Chorus proxy without requiring user-managed keys.
Key Changes
Foundational/serpapias a master router with an explicit decision table (engine/params/fields).x-api-keywhenVIBECODE_API_KEYis present.Testing
bash scripts/serpapi.sh google_hotels --q "hotels near JFK" --check_in_date 2026-06-12 --check_out_date 2026-06-13 --max_price 200 --currency USD --gl usinside a runner container and verify JSON returns.Note
Make SerpApi script a master router skill with proxy support
api_keytochorus-proxywhenSERPAPI_API_KEYis unset, targeting the Chorus proxy at${SERPAPI_BASE_URL:-https://serpapi.com.proxy.chorus.com}/search.json.VIBECODE_API_KEYas anx-api-keyheader when the variable is set.SERPAPI_API_KEYis unset; real credentials should not be embedded and are replaced by the proxy key mechanism.Macroscope summarized ef02221.
Note
Medium Risk
Proxy and optional API-key behavior change how requests authenticate; misconfiguration outside Chorus runners could break calls, but scope is limited to skill docs and the wrapper script.
Overview
This PR reframes the SerpApi foundational skill as a master router: agents classify intent via a decision table (engine, parameters, and response keys), follow workflow guides for hotels, forum research, shopping, jobs, and maps/reviews, and apply response discipline instead of assuming generic
organic_results.scripts/serpapi.shnow targets the Chorus proxy (SERPAPI_BASE_URLdefaulting tohttps://serpapi.com.proxy.chorus.com/search.json), uses achorus-proxyplaceholder whenSERPAPI_API_KEYis unset, and sendsx-api-keywhenVIBECODE_API_KEYis set. Skill metadata no longer requiresSERPAPI_API_KEYin the environment.references/engines.mdaligns setup docs with the proxy, adds an Amazon engine section, and clarifies Trends, App Store, and Google Play response shapes. The inline engine catalog table was removed fromSKILL.mdin favor of the router table andengines.md.Reviewed by Cursor Bugbot for commit ef02221. Bugbot is set up for automated code reviews on this repo. Configure here.
Greptile Summary
Reframes the SerpApi foundational skill as a master router by replacing the flat engine catalog with an intent-to-engine decision table, high-value workflow guides, and explicit response-field contracts. The shell wrapper switches from hard-failing on a missing key to a
chorus-proxyplaceholder and routes requests through the Chorus proxy by default, with optionalx-api-keyinjection fromVIBECODE_API_KEY.SKILL.md: New routing contract, decision table covering 12 intent categories, and five concrete workflow sections (hotels, Reddit opinions, price comparison, jobs, venue reviews).SERPAPI_API_KEYis removed as a required env var.scripts/serpapi.sh:BASE_URLdefaults to the Chorus proxy;VIBECODE_API_KEY, when set, is forwarded asx-api-keyto whichever URLBASE_URLresolves to.references/engines.md: Proxy URL updated, Amazon engine section added, and response-field notes added for Apple App Store and Google Play.Confidence Score: 5/5
Safe to merge — changes are limited to documentation and a thin wrapper update with intentional proxy defaults.
The executable change in
serpapi.shis small and well-scoped: a default fallback key, a new base URL, and a conditional header. Thex-api-keyforwarding concern only manifests whenSERPAPI_BASE_URLis deliberately overridden to a non-Chorus host whileVIBECODE_API_KEYis also present — an atypical configuration. No application data paths, auth logic, or stored state are affected.No files require special attention beyond the minor credential-forwarding note on
serpapi.sh.Important Files Changed
SERPAPI_API_KEYenv requirement from metadata. Documentation-only change with no logic.API_KEYfallback from hard-fail tochorus-proxyplaceholder, switches defaultBASE_URLto the Chorus proxy, and conditionally injectsx-api-keyheader fromVIBECODE_API_KEY. The header is forwarded unconditionally to anyBASE_URLrather than being scoped to the Chorus proxy, and the curl if/else branch is redundant.Sequence Diagram
sequenceDiagram participant Agent participant Script as serpapi.sh participant Proxy as Chorus Proxy participant SerpApi Agent->>Script: bash serpapi.sh engine [--param value] Note over Script: Resolve auth key and base URL from env Script->>Script: build_url with engine and params alt proxy auth header present Script->>Proxy: GET /search.json + x-api-key header else no proxy auth Script->>Proxy: GET /search.json end Proxy->>SerpApi: Proxied request SerpApi-->>Proxy: JSON response Proxy-->>Script: JSON response Script-->>Agent: Formatted JSON outputComments Outside Diff (1)
Foundational/serpapi/scripts/serpapi.sh, line 36-37 (link)The
Amazonengine section was added toengines.mdin this PR but the list of supported engines in the header comment ofserpapi.shwas not updated. Agents and developers reading the inline help will not seeamazonas a supported engine, which undermines the discoverability goal of the master-router skill.Prompt To Fix With AI
Prompt To Fix All With AI
Reviews (6): Last reviewed commit: "drop platform-recommender references in ..." | Re-trigger Greptile