personal-finish-notifier

TotalClaw 作者 totalclaw v0.1.4

添加一个简单的“克劳德已经完成”。通过 OpenClaw 配置的传输向 Claude Code 或其他代理工作流程发出警报。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~personal-finish-notifier
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~personal-finish-notifier/file -o personal-finish-notifier.md
## 概述(中文)

添加一个简单的“克劳德已经完成”。通过 OpenClaw 配置的传输向 Claude Code 或其他代理工作流程发出警报。

## 原文

# 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:

```bash
./scripts/install-claude-hook.sh
```

For a live delivery check:

```bash
./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`.