← 返回 Skills 市场
darwin7381

Service Persistence

作者 Joey Luo · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
99
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install service-persistence
功能描述
macOS 服務持久化與重啟恢復。管理 LaunchAgent、tmux bootstrap、wrapper daemon 三層架構, 確保電腦重啟後所有服務自動恢復。Use when: (1) 新增需要常駐的服務,(2) 把現有 tmux session 升級成 LaunchAgent, (3) 為互動式程式建...
安全使用建议
What to consider before installing: - Inspect and edit the scripts before deploying: replace hard-coded HOME (/Users/btai) and any absolute paths with variables or your own paths so they don't act on someone else's environment. - Pay special attention to scripts/restore-claude-telegram.sh: it launches a Claude process with '--dangerously-skip-permissions --permission-mode bypassPermissions' and a Telegram plugin. These flags likely disable built-in permission checks and could allow the process to access files, network endpoints, or credentials without further prompts. Remove or understand these flags before use. - The wrapper auto-accepts 'trust this folder' prompts by sending Enter to tmux panes. This can silently approve prompts that affect file access or authorization—remove auto-confirm behavior or require manual intervention for sensitive prompts. - Test in an isolated account or VM first. Verify what each LaunchAgent will run, check logs in ~/.openclaw/logs, and confirm no unexpected network connections or access to secrets occur. - If you only need non-interactive services, prefer Tier 1 LaunchAgents with explicit ProgramArguments and avoid tmux wrappers. For interactive services, require manual approval rather than automatic trust/confirmation. - After deployment, review ~/Library/LaunchAgents entries and the actual plist contents; uninstall (launchctl unload and remove plist) if behavior is unexpected. If you want, I can (1) produce a sanitized version of these scripts that remove auto-confirm and permission-bypass flags, (2) generate a checklist of exact lines to change for your username and paths, or (3) walk through a safe test plan to validate the skill in a sandbox.
能力评估
Purpose & Capability
The skill's core goal (managing LaunchAgents, tmux bootstrap, wrapper daemons) aligns with required actions (copy plists, create scripts, run launchctl). However included artifacts are highly personalized (hard-coded /Users/btai HOME and paths) and one wrapper specifically launches a Claude process with flags '--dangerously-skip-permissions --permission-mode bypassPermissions', which goes beyond 'service persistence' and introduces elevated access to user resources not justified by a generic persistence tool.
Instruction Scope
SKILL.md instructs copying scripts into ~/.openclaw, deploying plists to ~/Library/LaunchAgents, and running launchctl — all expected. But wrapper logic will capture tmux panes and automatically send Enter for 'trust this folder' prompts and automatically restart services; auto-confirming trust prompts and running an LLM with bypass flags gives the skill direct capability to approve prompts or re-start privileged processes without manual oversight.
Install Mechanism
No remote install or downloads are declared (instruction-only skill with embedded scripts). That lowers supply-chain risk: nothing fetched from arbitrary URLs. The install actions described (copying files to ~/Library/LaunchAgents and ~/.openclaw) are local and expected for this purpose.
Credentials
The skill declares no required env vars, but the included scripts hardcode HOME and PATH to a specific user (/Users/btai) and add user-local binary directories (e.g., ~/.bun/bin). Hardcoding a user account and adding user paths is not proportional for a generic skill and may cause the skill to run unintended binaries; the claude invocation with permission-bypass flags is especially disproportionate for a persistence helper.
Persistence & Privilege
The skill does not set always: true, but it instructs installing LaunchAgents (RunAtLoad / KeepAlive) which will give long-lived, autonomous execution under the installing user account. That is consistent with its purpose but is powerful: any wrapper/daemon placed under ~/Library/LaunchAgents will automatically run and persist across reboots.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install service-persistence
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /service-persistence 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Fix: add bun to PATH; add PATH pitfall docs; add known limitation for plugin subprocess silent fail
v1.0.0
Initial release: three-tier macOS service persistence (LaunchAgent + tmux bootstrap + wrapper daemon)
元数据
Slug service-persistence
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Service Persistence 是什么?

macOS 服務持久化與重啟恢復。管理 LaunchAgent、tmux bootstrap、wrapper daemon 三層架構, 確保電腦重啟後所有服務自動恢復。Use when: (1) 新增需要常駐的服務,(2) 把現有 tmux session 升級成 LaunchAgent, (3) 為互動式程式建... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 99 次。

如何安装 Service Persistence?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install service-persistence」即可一键安装,无需额外配置。

Service Persistence 是免费的吗?

是的,Service Persistence 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Service Persistence 支持哪些平台?

Service Persistence 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Service Persistence?

由 Joey Luo(@darwin7381)开发并维护,当前版本 v1.1.0。

💬 留言讨论