Fill Google Forms in Safari, verify section changes, and hand off file-upload pickers. Use for Google Forms questionnaires, registrations, or submissions in Safari.
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.
Use for a Google Form the user wants to complete in Safari, especially multi-section forms with file-upload questions. This playbook is scoped to Forms, not other Google applications. It records a DOM/Picker boundary; it does not promise unattended file uploads or submissions.
safari-browser documents --json, select the actual form tab and set FORM to a unique, observed form-ID path prefix that survives viewform/formResponse changes. Do not use a changing query parameter or terminal page name as the lock. For a short link, identify the resolved form tab first. Resolve duplicate matches explicitly and rediscover the target after an unexpected redirect; do not use --first-match to guess.TEXT_REF, CHOICE_REF, NEXT_REF and ANSWER must come from the current snapshot and the user's prepared content, not from the numeric examples in another session.Inspect the current section and visible question types:
: "${FORM:?Set FORM to the verified form-ID path prefix}"
safari-browser snapshot --page --url "$FORM"
Expected: the form's current section and actual controls are readable. A visible “Add file” / “新增檔案” control or file restriction is evidence of an upload question even when no input[type=file] or textarea is present. Private FB_PUBLIC_LOAD_DATA_ codes are not authoritative.
Fill a verified text control and read back its displayed value:
: "${TEXT_REF:?Use a current text-control reference}" "${ANSWER?Use the user's prepared answer}"
safari-browser fill "$TEXT_REF" "$ANSWER" --url "$FORM"
safari-browser snapshot --page --url "$FORM"
Expected: the intended question shows that answer. For a single-choice question, use a fresh observed option reference:
: "${CHOICE_REF:?Use the intended current choice reference}"
safari-browser click "$CHOICE_REF" --url "$FORM"
safari-browser snapshot --page --url "$FORM"
Expected: that option is visibly selected. Do not infer selection from exit zero or text that could match another question.
Advance one section only after its answers and validation state are correct:
: "${NEXT_REF:?Use the current Next control reference}"
safari-browser click "$NEXT_REF" --url "$FORM"
safari-browser snapshot --page --url "$FORM"
Expected: the intended next section heading/questions appear. Forms can update in place with no URL change. A change in body-text length is only a clue; validate the actual section. If the section does not advance, inspect required-field errors or intentional branching before another click. Refresh references after each section change.
At a file-upload question, this playbook hands file selection to the user. Inspect the visible control and restrictions. If there is no usable file input, do not call upload with a guessed selector or put the document's text into an unrelated field. If opening Add file is already authorized, click its observed reference once and inspect the resulting page/dialog state. When the current DOM path cannot access the Picker (including a cross-origin frame boundary), hand off:
Please choose the specified file in the Google file picker and wait for upload to finish. Let me know when the attachment appears; I will verify it before continuing. Pause for that action. Do not synthesize keyboard input, invent selectors inside inaccessible frames, repeatedly reopen the picker, or bypass origin restrictions. After the user finishes, take a fresh snapshot and verify the expected filename/attachment and that upload is no longer pending. User takeover might also navigate or submit: inspect the current state before resuming.
Recheck the remaining answers and attachments. Submit only if the user's existing request authorizes it; otherwise obtain the missing instruction after preparing the form for review. Use the current observed Submit reference once, then inspect the actual confirmation state. If the user already submitted during takeover, do not submit again. A timeout or ambiguous response is a reason to inspect, not automatically replay the action.
⚠ BLOCKING DIALOG: stop later steps, inspect dialog list, and select a named choice only within the user's intent. An incomplete/failed probe does not prove absence.formResponse URL appears, or click returns undefined: neither establishes submission nor non-submission. Check the visible form/confirmation state and ask what the user did during takeover if needed. Do not retry Submit to find out.Verify field values, selected choices, section transitions and attachment filenames from the current page after each action. For final submission, require the form's actual confirmation state—such as its customized response-recorded message together with the transition away from editable questions—not a URL pattern or a matching word somewhere in a question. If confirmation cannot be observed, report the submission as unverified.
location.href does not mean Next failed. Google also supports intentional branching back to earlier sections.input[type=file], or an internal data array.formResponse URL was observed. Its cause was not established. The rule above deliberately avoids claiming it was a normal session side effect or proof of no submission.What SKILL.md sets; muted values are Claude Code's defaults
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-github-starStar 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./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-google-fillfrom safari-browser
npx claudepluginhub psychquant/psychquant-claude-plugins --plugin safari-browser