← 返回
开发者工具 中文

macOS Automator

Automate macOS tasks by composing and executing Automator workflows through automator CLI and AppleScript control.
通过 Automator CLI 和 AppleScript 控制组合并执行 Automator 工作流,实现 macOS 任务自动化。
ivangdavila ivangdavila 来源
开发者工具 clawhub v1.0.0 1 版本 99871.1 Key: 无需
★ 0
Stars
📥 775
下载
💾 13
安装
1
版本
#latest

概述

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.

TopicFile
-------------
Setup behavior and activationsetup.md
Memory structurememory-template.md
Execution path matrixinterface-matrix.md
Workflow authoring patternsworkflow-authoring.md
Write safety gatesexecution-guardrails.md
Debug and recoverytroubleshooting.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

EndpointData SentPurpose
------------------------------
NoneNoneThis 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:

  • None by default.

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 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 个版本

  • v1.0.0 当前
    2026-03-30 02:31 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,230 📥 268,136
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,085 📥 813,436
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,383 📥 320,830