Star a GitHub repository in Safari. Use when the user asks to star, favorite, or bookmark a GitHub repo via Safari and wants the action performed inside their own logged-in Safari session.
Ships in safari-browser. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Star a GitHub repository in the user's Safari session. Handles the logged-in / not-logged-in branch explicitly.
Trigger phrases:
Do NOT trigger for:
safari-github-unstar playbook).gh api ...) — unrelated to Safari UI.The user MUST satisfy these:
https://github.com/<owner>/<name>) or an <owner>/<name> slug you can expand.Open or focus the repo URL
safari-browser open https://github.com/<owner>/<name>
Expected: a Safari tab shows the repo page. safari-browser's default behaviour focuses an existing matching tab rather than opening a second one.
Wait for the page to settle
safari-browser wait --for-url "github.com/<owner>/<name>" --url <owner>/<name>
Expected: the URL resolver finds the GitHub tab and readyState reaches complete.
Detect login state
safari-browser js "!!document.querySelector('a[href=\"/login\"], a[href^=\"/login?\"]')" --url <owner>/<name>
Expected: true if a sign-in link is visible (user is NOT logged in), false otherwise.
true: STOP. Report "not logged in — ask the user whether they want to sign in manually or skip." Do NOT type credentials.false: continue to step 4.Snapshot to locate the Star button
safari-browser snapshot -i --url <owner>/<name>
Expected: a list of @eN refs. Look for an element labelled Star or Unstar with an aria-label containing "star this repository" or the repo name. Note its ref.
Check current star state before clicking
Examine the snapshot output or run:
safari-browser js "document.querySelector('form[action$=\"/star\"]')?.getAttribute('action') || document.querySelector('form[action$=\"/unstar\"]')?.getAttribute('action')" --url <owner>/<name>
Expected: ends with /star if currently unstarred, /unstar if already starred.
Click the Star button
safari-browser click @eN --url <owner>/<name>
Expected: button label flips to Starred within ~1 second.
true): Report and STOP. Typing credentials from an agent is a safety violation.safari-browser click button[aria-label*="star this repository" i] --url <owner>/<name>; if that also fails, ask the user.Success criteria — ALL must hold:
/unstar.safari-browser snapshot -i --url <owner>/<name> and confirm a ref labelled Starred or Unstar is present near where the Star ref used to be.If criterion 1 fails, the star click did NOT register — do NOT claim success.
document.title on client-side navigation, so a 🟢 marker set by safari-browser may be reset. Harmless but surprising.press_key to send "s" as a shortcut for star — use an explicit click.button[aria-label*="star" i] can match "Unstar" or even "star" inside sponsor copy. Prefer form[action$="/star"] when disambiguating.github.<company>.com has the same DOM but different URL. Adjust the --url substring in every command accordingly — this playbook targets github.com by default.gh auth) does not affect the web session; the two are independent.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/safari-browsermacOS native browser automation via Safari + AppleScript. Use when the user needs to automate websites that require login (Plaud, Elementor, banking, social media) — Safari preserves localStorage and cookies permanently. Also use when agent-browser fails due to session/auth issues, or when the user explicitly asks to use Safari. Triggers on: "login to site", "automate with Safari", "use Safari", "session expired with agent-browser", "Plaud upload", or any website automation where persistent auth is needed. ALSO use for reading Safari's local on-disk data — browsing history, bookmarks / Reading List, iCloud tabs from other devices, and downloads. Triggers on: "what did I look at", "find that page I saw", "I forgot the URL", "search my history", "my bookmarks", "tabs on my other Mac/iPhone", "what did I download". ALSO use to save the PDF or image a Safari tab shows, with pdf-cache or save-image, not Save As. Triggers on: "save the PDF this Safari tab shows", "存 Safari 分頁上的 PDF"./safari-google-fillFill Google Forms in Safari, verify section changes, and hand off file-upload pickers. Use for Google Forms questionnaires, registrations, or submissions in Safari./safari-plaud-uploadUpload audio files to Plaud via Safari. Use when the user asks to upload a recording to Plaud, add tracks to a Plaud folder, or trigger Plaud transcription from a file that is already on disk./safari-browser:safari-github-starfrom safari-browser
npx claudepluginhub psychquant/psychquant-claude-plugins --plugin safari-browser