AgentSkillsCN

Quarantine Skill

隔离技能

SKILL.md

Quarantine Skill

Query the macOS quarantine database to understand where files came from.

Use this skill when users ask about:

  • Download sources and origins
  • Which apps downloaded files
  • Security audit of downloads
  • Clearing download history

MCP Tools

ToolDescriptionDestructive
quarantine_recentRecent downloadsNo
quarantine_search_appSearch by app nameNo
quarantine_search_urlSearch by URL patternNo
quarantine_by_dateFilter by date rangeNo
quarantine_appsApps ranked by download countNo
quarantine_audit_weekWeekly audit summaryNo
quarantine_oldestOldest download recordNo
quarantine_clearClear history (requires confirm)YES

Usage Examples

Recent downloads:

code
quarantine_recent({ limit: 20 })

Find Safari downloads:

code
quarantine_search_app({ name: "Safari" })

Downloads from GitHub:

code
quarantine_search_url({ pattern: "github.com" })

Weekly audit:

code
quarantine_audit_week()

Clear history (DANGEROUS):

code
quarantine_clear({ confirm: true })

Database Info

  • Location: ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV2
  • Format: SQLite database
  • Purpose: Tracks download sources for Gatekeeper security

Common Use Cases

  1. Security audit: "What did I download this week?"
  2. Source lookup: "Where did this file come from?"
  3. App analysis: "Which apps download the most files?"
  4. Privacy cleanup: "Clear my download history"