Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计异常

macos-launchdmacOS launchd 命令行

Agent Skill

macos-launchd 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

494

周安装

21

GitHub Stars

4

下载量

173
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:macos-launchd(macOS launchd 命令行)
来源仓库:https://github.com/alphaonedev/openclaw-graph
仓库路径:skills/macos-launchd
安装命令:
npx skills add https://github.com/alphaonedev/openclaw-graph --skill macos-launchd
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill macos-launchd

简介

macos-launchd 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合围绕仓库状态和代码变更进行整理。

  • 适用于开发协作场景,可在 Codex、Claude、Cursor、Gemini CLI 中辅助项目管理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限范围和是否触发联网或文件读写。
  • 建议在使用前检查维护状态和实际功能,避免依赖未经验证的自动化行为。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

macos-launchd

Purpose

This skill manages macOS launchd services, including LaunchDaemons and LaunchAgents, for tasks like running background processes, handling login items, and setting up the OpenClaw gateway service. It focuses on creating, loading, and controlling services via plist files and launchctl.

When to Use

Use this skill when you need to automate macOS services, such as starting a script on system boot (LaunchDaemon), running an app on user login (LaunchAgent), or ensuring the OpenClaw gateway service persists across reboots. Apply it for system-level tasks requiring persistence or for integrating OpenClaw with macOS environments.

Key Capabilities

  • Create and edit plist files for LaunchDaemons/Agents, specifying keys like Label, ProgramArguments, and RunAtLoad.
  • Load/unload services using launchctl to control execution.
  • Manage login items via System Events in AppleScript or launchctl equivalents.
  • Integrate with OpenClaw by configuring a service that runs the gateway, using environment variables for authentication like $OPENCLAW_API_KEY.
  • Handle service states, such as enabling/disabling, and monitor logs via Console.app.

Usage Patterns

To accomplish tasks, first create a plist file in /Library/LaunchDaemons (for system-wide) or ~/Library/LaunchAgents (for user-specific). Use launchctl commands to manage it. For OpenClaw integration, embed the gateway command in the plist and reference env vars. Always validate plist syntax before loading. For programmatic access, use AppleScript to add login items, e.g., via osascript.

Common Commands/API

  • Use launchctl load [-w] /path/to/com.example.plist to load a service; the -w flag writes to persistent storage.
  • Unload with launchctl unload [-w] /path/to/com.example.plist.
  • Start/stop services: launchctl start com.example.label or launchctl stop com.example.label.
  • Plist format example (in XML): <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key><string>com.example.service</string> <key>ProgramArguments</key><array><string>/usr/bin/python3</string><string>/path/to/script.py</string></array> <key>RunAtLoad</key><true/> </dict> </plist>
  • For OpenClaw gateway, use launchctl list | grep openclaw to check status.
  • API note: No direct API; interact via launchctl CLI or SystemConfiguration framework in Swift, e.g., SCDynamicStoreCopyConsoleUser() for user context.

Integration Notes

When integrating with OpenClaw, place the gateway service in a plist under ProgramArguments, e.g., <string>/path/to/openclaw-gateway --key $OPENCLAW_API_KEY</string>. Set the env var in the plist using EnvironmentVariablesOPENCLAW_API_KEYyour_key. Ensure the service runs as the correct user by adding UserNameyourusername. For cross-skill integration, reference the macos cluster; export paths like export PATH=$PATH:/usr/bin for launchctl access.

Error Handling

Check launchctl exit codes: 0 for success, non-zero for errors (e.g., 78 for invalid plist). Parse errors with plutil -lint /path/to/com.example.plist to validate before loading. If a service fails, use launchctl error <label> or check system logs with log show --predicate 'subsystem == "com.apple.launchd"'. For OpenClaw, if authentication fails, ensure $OPENCLAW_API_KEY is set and not expired; handle by restarting the service with launchctl kickstart -k com.openclaw.gateway. Always unload and reload services after edits to avoid conflicts.

Usage Examples

  1. Create a LaunchAgent to run a script on login: First, write a plist file at ~/Library/LaunchAgents/com.example.login.plist with the above format, then run launchctl load -w ~/Library/LaunchAgents/com.example.login.plist. To verify, use launchctl list | grep com.example.
  2. Set up OpenClaw gateway as a LaunchDaemon: Create /Library/LaunchDaemons/com.openclaw.gateway.plist with ProgramArguments/path/to/openclaw-gateway--key$OPENCLAW_API_KEY, then execute sudo launchctl load -w /Library/LaunchDaemons/com.openclaw.gateway.plist. Monitor with launchctl list com.openclaw.gateway.

Graph Relationships

  • Related to: macos (cluster), as it shares tags like "macos" and "services".
  • Links to: launchd (tag), for dependent skills like system management; openclaw (embedding hint), for gateway-specific integrations.
  • Connected via: plist (tag), potentially linking to file management skills; launchctl (description), for command-line utilities in macos cluster.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.12%
按下载量换算59

Claude

32.22%
按下载量换算56

Cursor

18.25%
按下载量换算32

Gemini CLI

9.38%
按下载量换算16

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills