SkillAgentSearch skills...

claude-for-safari

Give your AI Agent the power to control Safari on macOS. No extensions, no separate browser.

Install / Use

npx skills add SDLLL/claude-for-safari

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

80/100

Category

Automation

Supported Platforms

Claude Code

Our assessment of claude-for-safari

claude-for-safari scores 80/100 on our quality scale, 2502nd of 2,877 Automation skills we index.

Its SKILL.md is 6.6 KB long, well organised into 9 sections with 4 code examples: a thorough specification that gives an agent plenty to work with.

It has 103 GitHub stars, a meaningful sign that others use it.

Substance
29/30
Structure
20/20
Description
12/15
Adoption
9/20
Freshness
11/15

Maintenance, license and trust

  • The repository was last updated about 3 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
  • Our last check on 2026-10-18 found the source still online.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 93/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.

AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

claude-for-safari compared with similar skills

All 4 of these similar skills score higher than claude-for-safari; compare them before choosing.

SkillScoreStarsUpdatedFormat
claude-for-safari (this skill)by SDLLL801033mo agoSKILL.md
Agent-Reachby Panniantong100109.5k1d agoCLAUDE.md
headroomby headroomlabs-ai10079.0ktodayCLAUDE.md
CowAgentby zhayujie10047.8ktodayCLAUDE.md
Scraplingby D4Vinci10098.7ktodayMCP Server

Frequently asked questions

How do I install claude-for-safari?
Run npx skills add SDLLL/claude-for-safari. The install tabs above show the steps for each supported agent.
Which AI agents does claude-for-safari work with?
It is written for Claude Code, as a SKILL.md file. Other agents that read the same format can often use it too.
Is claude-for-safari safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 93/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is claude-for-safari still maintained?
The repository was last updated about 3 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
<h1 align="center">Claude for Safari</h1> <p align="center"> <strong>Give your AI Agent the power to control Safari</strong> </p> <p align="center"> <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg?style=for-the-badge" alt="MIT License"></a> <a href="https://www.apple.com/macos/"><img src="https://img.shields.io/badge/macOS-only-black.svg?style=for-the-badge&logo=apple" alt="macOS"></a> <a href="https://github.com/SDLLL/claude-for-safari/stargazers"><img src="https://img.shields.io/github/stars/SDLLL/claude-for-safari?style=for-the-badge" alt="GitHub Stars"></a> </p> <p align="center"> <a href="https://safari.skilljam.dev">Website</a> · <a href="#quick-start">Quick Start</a> · <a href="#features">Features</a> · <a href="#faq">FAQ</a> </p> <p align="center"> <a href="README.md">English</a> | <a href="README_CN.md">中文</a> </p>

Why This?

You want your AI Agent to help with browser tasks — then you discover:

  • 🔒 Playwright → Separate browser instance, hijacks your session
  • 🧩 Claude for Chrome → Requires Chrome extension, doesn't work with Safari
  • 📝 Copy & paste → Manually feeding page content to AI every time

You just want AI to use your Safari, as if you were doing it yourself.

Claude for Safari makes it one command:

npx skills add SDLLL/claude-for-safari

After installing, tell Claude "check what's open in my Safari" — it reads and controls your real browser directly.

If this saves you time, give it a ⭐ — it helps other developers discover the project!


Quick Start

Run this in your terminal:

npx skills add SDLLL/claude-for-safari

Then launch Claude Code:

claude

Say "show me what tabs are open in Safari". The agent will guide you through permission setup automatically.

Compatible with any AI Agent that supports Skills: Claude Code, Cursor, Windsurf, etc.

First-Time Setup

The agent auto-detects and guides you, but you can configure ahead of time:

  1. System Settings > Privacy & Security > Automation → Allow terminal to control Safari
  2. Safari > Settings > Advanced → Enable "Show features for web developers"
  3. Safari > Develop menu → Check "Allow JavaScript from Apple Events"
  4. (Optional) System Settings > Privacy & Security > Screen Recording → Allow the terminal or agent host (enables reliable background screenshots)
  5. (Optional) System Settings > Privacy & Security > Accessibility → Required only for System Events clicks and keystrokes

Features

No browser extension, proxy, or persistent daemon. The core uses macOS-native capabilities; optional window helpers require an available Swift toolchain.

| Capability | What the Agent Does | How | |---|---|---| | List tabs | List all windows and tabs with title & URL | AppleScript | | Read pages | Extract text, structured data, simplified DOM | AppleScript + JavaScript | | Execute JS | Run arbitrary JavaScript in page context | AppleScript do JavaScript | | Screenshot | Capture Safari window — AI can "see" the page | screencapture | | Navigate | Open URLs, new tabs, new windows | AppleScript | | Click | Click elements (React/Vue/Angular compatible) | JavaScript dispatchEvent | | Type | Fill forms, simulate keyboard input | JavaScript + System Events | | Safe form filling | Discover fields and fill supported non-sensitive controls with per-field verification | Bundled JavaScript + JXA | | Network observation | Observe redacted page-level fetch/XHR metadata; bodies are explicit opt-in | Bundled JavaScript | | Control indicator | Show when an agent is changing a page and clean up afterward | Bundled JavaScript | | Scroll | Scroll up/down, scroll to element | JavaScript scrollBy/scrollTo | | Switch tabs | Switch by index or URL keyword | AppleScript | | Wait for load | Wait until page is fully loaded | JavaScript readyState |

Screenshot Modes

| Mode | Permission Required | Window Switch | Best For | |---|---|---|---| | Background | Screen Recording | No switch | Recommended, seamless | | User-visible | Varies by macOS policy | Yes | Fallback when background capture is unavailable |


How It Works

Claude Code ──osascript──► Safari (reads/controls your real browser)
     │
     └──screencapture──► screenshot ──► Claude sees the page

No extensions, proxy servers, or persistent background services.

The skill uses AppleScript, page JavaScript, screencapture, and optional bundled helpers. Page-injected helpers can be detected by websites and are removed after use.


FAQ

<details> <summary><strong>Do I need to install anything?</strong></summary>

The core requires no browser extension or separate automation browser. It uses macOS AppleScript and screencapture; compiling the optional multi-window helper requires swiftc/Apple Command Line Tools.

</details> <details> <summary><strong>Does it support Chrome / Firefox / Arc?</strong></summary>

Safari only. For other browsers, use <a href="https://github.com/nicepkg/playwright-mcp">Playwright MCP</a> or <a href="https://github.com/Areo-Joe/chrome-acp">Chrome ACP</a>. Safari is the only macOS browser with full AppleScript automation support.

</details> <details> <summary><strong>Is it safe? Will AI do random things?</strong></summary>

The skill requires target verification, preserves site confirmation dialogs, excludes sensitive form fields, and asks for authorization before consequential actions. Your agent host's own permission policy still applies.

</details> <details> <summary><strong>The window flickers when taking screenshots?</strong></summary>

Grant Screen Recording permission to the terminal or agent host for reliable background window capture. Without it, use a user-visible Screenshot workflow and verify the resulting image rather than assuming capture succeeded.

</details> <details> <summary><strong>Which AI Agents are compatible?</strong></summary>

Any agent supporting Claude Code Skills: Claude Code, Cursor, Windsurf, etc.

</details>

Acknowledgements

  • @rrecio contributed the form, control-indicator, window-helper, network-observer, and real-Safari testing ideas in PR #2.
  • @jordan-brough contributed permission, dialog, locale, timestamp, and Safari UI measurement findings in PR #3.

Their work informed the maintainer-integrated, safety-hardened implementation.


License

MIT

Related Skills

View on GitHub
GitHub Stars103
CategoryAutomation
Updated3mo ago
Forks18

Languages

JavaScript

Trust signals

93/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 low1 info