From mactools
查询 Safari 浏览历史和书签。当用户需要回顾浏览过的网页、查找书签、查看阅读列表时使用。Use when the user needs to review browsing history, find bookmarks, or view reading list. Keywords: Safari, 浏览历史, 书签, 阅读列表, 网页记录, browsing history, bookmarks, reading list.
npx claudepluginhub n0rvyn/indie-toolkit --plugin mactoolsThis skill is limited to using the following tools:
Query Safari browsing history, bookmarks, and reading list. All operations are read-only.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Designs, implements, and audits WCAG 2.2 AA accessible UIs for Web (ARIA/HTML5), iOS (SwiftUI traits), and Android (Compose semantics). Audits code for compliance gaps.
Query Safari browsing history, bookmarks, and reading list. All operations are read-only.
BASE="${CLAUDE_PLUGIN_ROOT:-${CODEX_HOME:-$HOME/.codex}}"
SKILLS_ROOT="$BASE/skills"
[ -d "$SKILLS_ROOT/safari/scripts" ] || SKILLS_ROOT="$BASE/indie-toolkit/mactools/skills"
${SKILLS_ROOT}/safari/scripts/safari.sh
# Recent history (default: 7 days, 20 results)
${SKILLS_ROOT}/safari/scripts/safari.sh history
# History from last 30 days
${SKILLS_ROOT}/safari/scripts/safari.sh history 30
# History from last 3 days, max 10 results
${SKILLS_ROOT}/safari/scripts/safari.sh history 3 -n 10
# Search by URL or title
${SKILLS_ROOT}/safari/scripts/safari.sh search "apple developer"
# Search with result limit
${SKILLS_ROOT}/safari/scripts/safari.sh search "swift" -n 50
# Top 20 most visited sites
${SKILLS_ROOT}/safari/scripts/safari.sh top
# Top 10
${SKILLS_ROOT}/safari/scripts/safari.sh top -n 10
# List bookmarks (title, URL, folder)
${SKILLS_ROOT}/safari/scripts/safari.sh bookmarks
# Limit results
${SKILLS_ROOT}/safari/scripts/safari.sh bookmarks -n 50
# Search bookmarks by title or URL
${SKILLS_ROOT}/safari/scripts/safari.sh search-bookmarks "github"
# Show reading list items
${SKILLS_ROOT}/safari/scripts/safari.sh reading-list
# Limit results
${SKILLS_ROOT}/safari/scripts/safari.sh reading-list -n 10
1. How to use Swift Concurrency - Apple Developer
URL: https://developer.apple.com/...
Visited: 2026-02-10 14:30 | Visits: 5
1. GitHub
URL: https://github.com/
Total visits: 342 | Last visit: 2026-02-10 15:00
1. Swift Documentation
URL: https://docs.swift.org/
Folder: Development/Apple
1. Understanding async/await in Swift
URL: https://example.com/article
Added: 2026-02-08 10:30
Preview: This article explains how async/await works...
| Option | Description | Default |
|---|---|---|
-n <count> | Maximum number of results | 20 |
# What did I browse in the last 3 days?
${SKILLS_ROOT}/safari/scripts/safari.sh history 3
# Search for a specific topic
${SKILLS_ROOT}/safari/scripts/safari.sh search "SwiftUI"
# List all bookmarks
${SKILLS_ROOT}/safari/scripts/safari.sh bookmarks -n 100
# Search bookmarks for a keyword
${SKILLS_ROOT}/safari/scripts/safari.sh search-bookmarks "reference"
# Check reading list
${SKILLS_ROOT}/safari/scripts/safari.sh reading-list
# Which sites do I visit most?
${SKILLS_ROOT}/safari/scripts/safari.sh top -n 20
| Issue | Solution |
|---|---|
| "Cannot read Safari history database" | Grant Full Disk Access to your terminal app: System Settings > Privacy & Security > Full Disk Access |
| "Cannot read Safari bookmarks plist" | Same as above: grant Full Disk Access |
| "No results found" for history | Try increasing the days parameter, or check that Safari has history |
| Empty bookmark results | Bookmarks may be synced via iCloud; ensure Safari has local bookmarks |
| Data | Location | Access Method |
|---|---|---|
| History | ~/Library/Safari/History.db | sqlite3 (read-only copy) |
| Bookmarks | ~/Library/Safari/Bookmarks.plist | python3 plistlib |
| Reading List | ~/Library/Safari/Bookmarks.plist | python3 plistlib (ReadingList entries) |