Add get-api-key skill — generic SaaS API-key extraction#112
Conversation
Drives any authenticated SaaS dashboard via the browse CLI to create or reveal an API key. Reads the vendor's own docs (Phase 0) to learn the flow, then executes against the UI — avoids hardcoding site-specific selectors so the skill generalizes to dashboards it's never seen. Includes: - Phase 0 doc-reading via browse-driven Google search + canonical URL fallback (validated on GitHub fine-grained PATs). - Local (auto-connect to Chrome) and remote (Browserbase cloud + cookie-sync persistent context) auth-setup paths. - Remote-mode caveat documenting the 5-minute idle session expiry, with API recovery snippet. - Generic cross-SaaS UX patterns (custom comboboxes vs native selects, varied confirm-button labels, secret-in-snapshot extraction). - Failure-recovery playbook for billing prompts, sudo re-auth, stale refs, and session loss. Validated on Browserbase, OpenAI, Anthropic, Vercel, and GitHub (fine-grained PAT) via autobrowse iteration. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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 655b4a5. Configure here.
| browse get url | ||
| ``` | ||
| - URL contains the dashboard host AND NOT `/sign-in`, `/login`, `/auth` → proceed. | ||
| - Otherwise → return `{"success": false, "error_reasoning": "not authenticated"}`. Do NOT try to log in. |
There was a problem hiding this comment.
Phase 0 navigates away, Phase 1 auth check fails
Medium Severity
Phase 0 navigates the browser to external docs/Google pages, then Phase 1 immediately runs browse get url and checks whether the URL belongs to the dashboard host. After Phase 0, the URL will be a docs page, so Phase 1's check ("URL contains the dashboard host") will fail and the agent will incorrectly return "not authenticated". There's no instruction between phases to navigate back to the target dashboard before the auth verification.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 655b4a5. Configure here.


Summary
get-api-keyskill that drives any authenticated SaaS dashboard via thebrowseCLI to create or reveal an API keyWhat's inside
skills/get-api-key/SKILL.md— the skill prompt, structured as Phase 0 (docs) → Phase 1 (verify auth) → Phase 2 (find keys page) → Phase 3 (reveal/create) → Phase 4 (capture) → Phase 5 (return JSON)skills/get-api-key/LICENSE.txt— MIT, matching repo conventionHow it's generic
Validation
Built via
autobrowseiteration across five sites:bb_live_)sk-proj-)sk-ant-api03-)vcp_)/settings/personal-access-tokens/newand filled the form correctly in 13 turns)Test plan
doc_url_usedpopulated in the returned JSON)🤖 Generated with Claude Code
Note
Low Risk
Low risk: adds new documentation-only skill files with no runtime code changes; primary risk is users following the workflow to generate/expose real API secrets.
Overview
Adds a new
get-api-keyskill (skills/get-api-key/SKILL.md) that outlines a genericbrowse-CLI workflow to locate a SaaS API-keys page (optionally by first reading vendor docs), create/reveal a key, and return a standardized JSON payload including the secret.Includes setup guidance for local Chrome vs Browserbase remote sessions (with cookie syncing and session-expiry caveats), plus a new MIT
LICENSE.txtfor the skill.Reviewed by Cursor Bugbot for commit 655b4a5. Bugbot is set up for automated code reviews on this repo. Configure here.