notify
Send notifications to various destinations such as Discord, Telegram, Slack, Microsoft Teams, and email.
- License 许可
- MPL-2.0
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- notify
- updated
- 1785283200000
- lint_skip
- [ "stale-path" ]
- description
- Send notifications to various destinations such as Discord, Telegram, Slack, Microsoft Teams, and email.
02 资源文件 4
- 其他examples/apprise.conf1.6 KB
- 参考文档examples/apprise.yaml1.8 KB
- 参考文档examples/usage.md969 B
- 脚本scripts/notify.sh3.5 KB
03 SKILL.md 正文
Notify
Use this skill when you need to send a notification to a human or system audience without building a custom integration for that destination.
Objective
Send short operational notifications with a familiar interface:
--channelmaps to an Apprise tag--subjector--titlemaps to the Apprise title--bodyor--stdinprovides the message body- destination routing lives in an Apprise config file instead of hard-coded SMTP recipients
Requirements
The OpenPalm assistant image ships Apprise pre-installed (an isolated venv at
/opt/assistant-tools, already on PATH), so inside the assistant container
there is nothing to install. On a host without it, install via
uv tool install apprise or pipx install apprise (a bare pip install
fails on Debian-managed Python).
Script
Run the wrapper script from this skill directory:
bash scripts/notify.sh [options]
Recommended pattern:
- Put real destinations in an Apprise config file.
- Tag each destination by audience or urgency.
- Call
notify.shwith a title, a body, and one or more tags.
Options
| Option | Description | Default |
|---|---|---|
--channel, -c |
Apprise tag to notify; alias for --tag |
- |
--tag, -g |
Apprise tag to notify; can be repeated | - |
--config, -f |
Apprise config file; can be repeated | Apprise default search paths |
--subject, --title, -s, -t |
Notification title | Notification |
--body, -b |
Message body | - |
--stdin |
Read message body from stdin | false |
--attach |
Attachment path or URL; can be repeated | - |
--dry-run, -d |
Resolve config and tags without sending | false |
Usage Pattern
For one audience:
bash scripts/notify.sh \
--channel ops \
--subject "Deploy complete" \
--body "Release 2026.03.28 is now live"
For multiple audiences using OR logic:
bash scripts/notify.sh \
--tag ops \
--tag email \
--subject "Deploy complete" \
--body "Release 2026.03.28 is now live"
For a narrower filter using AND logic:
bash scripts/notify.sh \
--tag ops,critical \
--subject "Database error" \
--body "Primary database health checks are failing"
Config Resolution
Configuration is resolved in this order:
--config/-fvalues passed to the scriptAPPRISE_NOTIFY_CONFIGenvironment variable- Apprise default config search paths such as
~/.apprise,~/.config/apprise.conf, and~/.config/apprise.yaml
Example:
export APPRISE_NOTIFY_CONFIG="$HOME/.config/apprise/apprise.conf"
See examples/apprise.conf and examples/apprise.yaml for starter configs, including Telegram, Slack, and Microsoft Teams examples.
Config Model
This skill expects an Apprise config file in text or YAML format.
Simple text example:
discord=discord://webhook_id/webhook_token
alerts,critical=discord://another_webhook_id/another_webhook_token
email=mailtos://user:password@smtp.example.com?to=team@example.com&from=bot@example.com
Tag behavior follows Apprise rules:
- repeated
--tagvalues use OR logic - comma-separated tags inside one value use AND logic
Operating Notes
- The wrapper fails fast if the
appriseCLI is not installed. - The wrapper requires at least one
--channelor--tag. - If
--bodyis omitted and stdin is piped, stdin is consumed automatically. - Prefer tags over raw Apprise URLs so credentials stay in config files instead of shell history.
- The config examples in this skill follow Apprise text-config syntax documented at
https://appriseit.com/config/.
04 同仓库更多 Skills
tax-filing-checklist
Walk through the steps and documents needed to file an individual federal income tax return
patient-vitals-charting
Record patient vital signs consistently and flag values outside the normal reference range
pasta-from-scratch
Make fresh egg pasta dough from scratch, roll it, and cut it into shapes
knife-sharpening
Sharpen and hone kitchen knives to keep an edge safe and effective
first-aid-response
Respond to a first aid emergency using a scene-safety-first, ABC-based (airway, breathing, circulation) approach
contract-review-basics
Review a contract draft for missing terms, ambiguous language, and risky clauses before signing