360 Secure SkillHub
360 安全技能中心

Personal Finish Notifier

通过 OpenClaw 传输把 Agent 完成事件转成简短自然的人味提醒,并提供安装 Claude Code 完成钩子的脚本与自检脚本;路由目标和通道由用户在配置文件中设置,可选自目标校验以避免误发。

kyoiii
kyoiii
热度 56.35
最近更新 2026-05-17 13:43:41
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add personal-finish-notifier
Metadata
name
personal-finish-notifier
description
Add a simple "Claude has finished." alert to Claude Code or other agent workflows through an OpenClaw-configured transport.
version
0.1.4

Personal Finish Notifier

Use this skill to wire agent completion events into a simple notification channel.

Principles

  • Treat notifications like a person checking back in, not a machine event log.
  • Keep the routing layer engine-agnostic.
  • Prefer a user-configured target and transport over hardcoded routing.
  • Prefer OpenClaw transports over engine-specific delivery logic.

Layout

  • scripts/notify.sh - core formatter + transport adapter
  • scripts/install-claude-hook.sh - install/update Claude hook wiring
  • scripts/test-openclaw.sh - send a live self-test through OpenClaw
  • references/architecture.md - rationale and extension points

Default setup

For Claude Code on this machine:

./scripts/install-claude-hook.sh

For a live delivery check:

./scripts/test-openclaw.sh

Inputs

The notifier reads hook JSON from stdin and settings from ~/.claude/mac-notify.env.

Required routing values:

  • OPENCLAW_NOTIFY_CHANNEL
  • OPENCLAW_NOTIFY_TARGET

Optional safety value:

  • OPENCLAW_NOTIFY_SELF_TARGET

If OPENCLAW_NOTIFY_SELF_TARGET is set, the script refuses to send when the target differs.

Adapters

  • Claude Code: Stop, TaskCompleted
  • OpenClaw transport: WhatsApp now
  • Future adapters: Codex completion hooks, native node notify, webhook, APNs

Message style

Human tone rules:

  • short
  • specific
  • reads like a teammate checking back in
  • avoid raw event names like Stop or end_turn

If you need architecture context or to add a new transport, read references/architecture.md.