用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/archibate/dotfiles-opencode --skill send-notify命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | send-notify |
| description | Send notifications to the user. TRIGGER when user says "notify me", "send notification", "alert me". |
Check which method is available:
# Linux desktop
echo $DISPLAY
# ntfy.sh remote
echo $NTFY_SH_PRIVATE_TOPIC
# macOS
uname -s
| Condition | Method |
|---|---|
$DISPLAY non-empty | Linux desktop (notify-send) |
uname -s = Darwin | macOS (terminal-notifier) |
$NTFY_SH_PRIVATE_TOPIC non-empty | Remote via ntfy.sh |
| None of the above | Fallback: write to /tmp/claude-notify |
notify-send -a "claude" -u critical "Claude" "<message>"
terminal-notifier -title "Claude" -message "<message>"
User must set up topic first:
export NTFY_SH_PRIVATE_TOPIC="your-secret-topic-name"
Send:
curl -s -d "<message>" "https://ntfy.sh/$NTFY_SH_PRIVATE_TOPIC"
Privacy: ntfy.sh topics are public. Never include sensitive data in notifications.
echo "$(date -Iseconds): <message>" >> /tmp/claude-notify
基于 SOC 职业分类