Setup
On first use, follow setup.md to capture activation behavior and safety preferences.
Setup is read-only. Any local file write requires explicit user confirmation.
When to Use
User needs to automate macOS tasks with Automator workflows instead of manual UI steps.
Agent handles workflow execution, workflow composition, and repeatable runbooks using official Automator interfaces.
Requirements
- macOS with
automator and osascript available.
- Automator app installed at
/System/Applications/Automator.app.
- Explicit user confirmation before destructive or bulk operations.
Architecture
Memory lives in ~/automator/. See memory-template.md for structure.
~/automator/
├── memory.md # Activation rules and safety defaults
├── workflows.md # Known workflow paths and run arguments
├── action-catalog.md # Verified action names and categories
└── incidents.md # Failures and proven fixes
Quick Reference
Use these files when the task needs deeper detail.
| Topic |
File |
| Setup behavior and activation |
setup.md |
| Memory structure |
memory-template.md |
| Execution path matrix |
interface-matrix.md |
| Workflow authoring patterns |
workflow-authoring.md |
| Write safety gates |
execution-guardrails.md |
| Debug and recovery |
troubleshooting.md |
Data Storage
All local skill data stays in ~/automator/.
Before creating or changing local files, state the write scope and ask for confirmation.
External Endpoints
| Endpoint |
Data Sent |
Purpose |
| None |
None |
This skill uses local macOS interfaces only |
No other data is sent externally.
Core Rules
1. Pick Interface by Intent, Not Convenience
- For running an existing
.workflow, use automator CLI first.
- For composing or inspecting workflow internals, use Automator AppleScript commands from
workflow-authoring.md.
- Only use
shortcuts fallback if user explicitly asks for Shortcuts conversion.
2. Validate Workflow Identity Before Execution
- Require absolute workflow path and verify it exists.
- Confirm type (
.workflow) and target operation (read, write, destructive).
- If the workflow path is ambiguous, stop and ask one clarifying question.
3. Enforce Read-Before-Write for Workflow Changes
- Before editing, inspect current action list and settings.
- Apply one mutation at a time and re-read state after each mutation.
- Never batch-edit unknown actions in a single pass.
4. Parameterize Inputs with Explicit Boundaries
- Use
automator -i or -D name=value only with validated inputs.
- Reject unbounded stdin streams for write workflows.
- Echo resolved parameters before run so the user can verify intent.
5. Require Two-Step Confirmation for Destructive Runs
- Use
execution-guardrails.md before delete, reset, or mass-change paths.
- Ask for explicit confirmation that includes target and scope.
- If confirmation is missing, do not run the workflow.
6. Keep Runs Observable and Reproducible
- Prefer verbose mode (
-v) for first execution or after failure.
- Record command, input source, and result in concise run notes.
- Return actionable output, not only "completed" status.
7. Recover with Concrete Next Actions
- On failure, classify as path, permission, action mismatch, or runtime data error.
- Provide the next command to run, not generic retry advice.
- Persist only reusable fix patterns into local memory.
Automator Traps
- Running relative paths from unknown working directories -> workflow not found.
- Guessing action names without dictionary inspection -> compile succeeds, runtime fails.
- Feeding multiline stdin into write workflows without boundaries -> unintended bulk edits.
- Mixing Automator and Shortcuts assumptions in one run -> incompatible action model.
- Treating permission prompts as transient errors -> repeated blocked execution.
Security & Privacy
Data that stays local:
- Workflow paths, verified action names, and run diagnostics in
~/automator/.
- Command output required to complete the requested automation task.
Data that leaves your machine:
This skill does NOT:
- Access credentials outside the workflow request scope.
- Send workflow content to third-party services.
- Execute destructive automation without explicit confirmation.
Related Skills
Install with clawhub install <slug> if user confirms:
applescript - Script app automation with robust quoting and pre-read checks.
automate - Design reliable multi-step automation workflows.
macos - Use macOS command-line and system operation patterns.
workflow - Structure repeatable workflows and handoff checkpoints.
Feedback
- If useful:
clawhub star automator
- Stay updated:
clawhub sync
1---
2name: macos-automator
3slug: automator
4version: 1.0.0
5homepage: https://clawic.com/skills/automator
6description: Automate macOS tasks by composing and executing Automator workflows through automator CLI and AppleScript control.
7changelog: Initial release with Automator CLI execution paths, AppleScript authoring patterns, and safety-first write controls.
8metadata:
9 source: https://skillmd.com/skills/modbender/macos-automator
10 clawdbot:
11 emoji: A
12 requires:
13 bins:
14 - automator
15 - osascript
16 os:
17 - darwin
18 configPaths:
19 - ~/automator/
20---
21
22## Setup
23
24On first use, follow `setup.md` to capture activation behavior and safety preferences.
25Setup is read-only. Any local file write requires explicit user confirmation.
26
27## When to Use
28
29User needs to automate macOS tasks with Automator workflows instead of manual UI steps.
30Agent handles workflow execution, workflow composition, and repeatable runbooks using official Automator interfaces.
31
32## Requirements
33
34- macOS with `automator` and `osascript` available.
35- Automator app installed at `/System/Applications/Automator.app`.
36- Explicit user confirmation before destructive or bulk operations.
37
38## Architecture
39
40Memory lives in `~/automator/`. See `memory-template.md` for structure.
41
42```text
43~/automator/
44├── memory.md # Activation rules and safety defaults
45├── workflows.md # Known workflow paths and run arguments
46├── action-catalog.md # Verified action names and categories
47└── incidents.md # Failures and proven fixes
48```
49
50## Quick Reference
51
52Use these files when the task needs deeper detail.
53
54| Topic | File |
55|-------|------|
56| Setup behavior and activation | `setup.md` |
57| Memory structure | `memory-template.md` |
58| Execution path matrix | `interface-matrix.md` |
59| Workflow authoring patterns | `workflow-authoring.md` |
60| Write safety gates | `execution-guardrails.md` |
61| Debug and recovery | `troubleshooting.md` |
62
63## Data Storage
64
65All local skill data stays in `~/automator/`.
66Before creating or changing local files, state the write scope and ask for confirmation.
67
68## External Endpoints
69
70| Endpoint | Data Sent | Purpose |
71|----------|-----------|---------|
72| None | None | This skill uses local macOS interfaces only |
73
74No other data is sent externally.
75
76## Core Rules
77
78### 1. Pick Interface by Intent, Not Convenience
79- For running an existing `.workflow`, use `automator` CLI first.
80- For composing or inspecting workflow internals, use Automator AppleScript commands from `workflow-authoring.md`.
81- Only use `shortcuts` fallback if user explicitly asks for Shortcuts conversion.
82
83### 2. Validate Workflow Identity Before Execution
84- Require absolute workflow path and verify it exists.
85- Confirm type (`.workflow`) and target operation (read, write, destructive).
86- If the workflow path is ambiguous, stop and ask one clarifying question.
87
88### 3. Enforce Read-Before-Write for Workflow Changes
89- Before editing, inspect current action list and settings.
90- Apply one mutation at a time and re-read state after each mutation.
91- Never batch-edit unknown actions in a single pass.
92
93### 4. Parameterize Inputs with Explicit Boundaries
94- Use `automator -i` or `-D name=value` only with validated inputs.
95- Reject unbounded stdin streams for write workflows.
96- Echo resolved parameters before run so the user can verify intent.
97
98### 5. Require Two-Step Confirmation for Destructive Runs
99- Use `execution-guardrails.md` before delete, reset, or mass-change paths.
100- Ask for explicit confirmation that includes target and scope.
101- If confirmation is missing, do not run the workflow.
102
103### 6. Keep Runs Observable and Reproducible
104- Prefer verbose mode (`-v`) for first execution or after failure.
105- Record command, input source, and result in concise run notes.
106- Return actionable output, not only "completed" status.
107
108### 7. Recover with Concrete Next Actions
109- On failure, classify as path, permission, action mismatch, or runtime data error.
110- Provide the next command to run, not generic retry advice.
111- Persist only reusable fix patterns into local memory.
112
113## Automator Traps
114
115- Running relative paths from unknown working directories -> workflow not found.
116- Guessing action names without dictionary inspection -> compile succeeds, runtime fails.
117- Feeding multiline stdin into write workflows without boundaries -> unintended bulk edits.
118- Mixing Automator and Shortcuts assumptions in one run -> incompatible action model.
119- Treating permission prompts as transient errors -> repeated blocked execution.
120
121## Security & Privacy
122
123**Data that stays local:**
124- Workflow paths, verified action names, and run diagnostics in `~/automator/`.
125- Command output required to complete the requested automation task.
126
127**Data that leaves your machine:**
128- None by default.
129
130**This skill does NOT:**
131- Access credentials outside the workflow request scope.
132- Send workflow content to third-party services.
133- Execute destructive automation without explicit confirmation.
134
135## Related Skills
136Install with `clawhub install <slug>` if user confirms:
137- `applescript` - Script app automation with robust quoting and pre-read checks.
138- `automate` - Design reliable multi-step automation workflows.
139- `macos` - Use macOS command-line and system operation patterns.
140- `workflow` - Structure repeatable workflows and handoff checkpoints.
141
142## Feedback
143
144- If useful: `clawhub star automator`
145- Stay updated: `clawhub sync`