Applescript

From clawic/skills · View interactive version

Applescript is an AI agent skill from the GitHub repository clawic/skills. Write and run safe AppleScript automation on macOS with dictionary discovery, robust quoting, and deterministic read-first workflows.

How to use this skill

Skill file

Setup

On first use, follow setup.md to configure activation and safety preferences.

Setup review is read-only.

Any local file creation or modification requires explicit user confirmation.

When to Use

User needs AppleScript automation on macOS for app control, data extraction, or scripted UI actions.

Agent handles script design, safe execution with osascript, output parsing, and troubleshooting.

Requirements

Architecture

Memory lives in ~/Clawic/data/applescript/. See memory-template.md for structure.

~/Clawic/data/applescript/
├── memory.md                  # Preferences, safe defaults, and last working patterns
├── snippets.md                # Reusable script snippets
├── failures.md                # Error signatures and known fixes
└── app-notes.md               # Per-app dictionary and behavior notes

Quick Reference

Use these files only when the current request needs deeper detail.

| Topic | File |

|-------|------|

| Setup behavior and onboarding | setup.md |

| Memory structure | memory-template.md |

| App dictionary workflow | app-dictionary-workflow.md |

| Script design patterns | script-patterns.md |

| Destructive-operation guardrails | safety-checklist.md |

| Debug and recovery steps | troubleshooting.md |

Data Storage

All local skill data stays in ~/Clawic/data/applescript/.

Before creating or changing local files, explain the write and ask for confirmation.

Core Rules

1. Choose Operation Scope Before Writing Any Script

2. Discover App Vocabulary Before Automation

3. Escape Dynamic Input Deterministically

4. Keep Scripts Bounded and Observable

5. Read Before Write, Verify After Write

6. Require Two-Step Confirmation for Destructive Actions

7. Fail Loudly With Actionable Recovery

Common Traps

Security & Privacy

Data that stays local:

Data that may leave your machine:

This skill does NOT:

Related Skills

More Clawic skills, get them at https://clawic.com/skills/<slug> (install if the user confirms):

Feedback

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.