moonpay-price-alerts
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "moonpay-price-alerts":https://skillpi.com/zh/skills/deepskill-2b38c8a24ccf7efaf7d112b0e79cb2de293c20096a83aab4b93bbd43285dbe4c。安装前核对上游来源和版本:https://github.com/moonpay/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
设置桌面价格提醒,当代币达到目标价格时通知您。仅用于观察,不进行交易,仅接收通知。
介绍来源: third_party · moonpay · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: moonpay-price-alerts
description: Set up desktop price alerts that notify you when tokens hit target prices. Observe-only — no trading, just notifications.
tags: [alerts, research]Price alerts
Goal
Monitor token prices and get desktop notifications when they cross a threshold. Uses mp token search for price checks and OS notifications (osascript/notify-send) for alerts. Observe-only — no funds at risk.
Prerequisites
mpbinary on PATH:which mpjqinstalled:which jq- macOS:
osascript(built-in) or Linux:notify-send(sudo apt install libnotify-bin)
One-shot alert
"Tell me when SOL drops below $80" — checks every 5 minutes, fires once, then disables itself.
Script: ~/.config/moonpay/scripts/alert-sol-below-80.sh
#!/bin/bash
set -euo pipefail
MP="$(which mp)"
LOG="$HOME/.config/moonpay/logs/alerts.log"
mkdir -p "$(dirname "$LOG")"
log() { echo "[$(date -u +%Y-%m-%dT%H:%M:%SZ)] $*" >> "$LOG"; }
# --- Config ---
TOKEN="So11111111111111111111111111111111111111111"
CHAIN="solana"
SYMBOL="SOL"
TARGET=80
DIRECTION="below" # "above" or "below"
SCRIPT_NAME="alert-sol-below-80"
# --- Check price ---
PRICE=$("$MP" --json token search --query "$SYMBOL" --chain "$CHAIN" | jq -r '.items[0].marketData.price')
if [ -z "$PRICE" ] || [ "$PRICE" = "null" ]; then
log "ALERT $SCRIPT_NAME: price fetch failed, skipping"
exit 0
fi
# --- Compare ---
TRIGGERED=false
if [ "$DIRECTION" = "below" ] && (( $(echo "$PRICE < $TARGET" | bc -l) )); then
TRIGGERED=true
elif [ "$DIRECTION" = "above" ] && (( $(echo "$PRICE > $TARGET" | bc -l) )); then
TRIGGERED=true
fi
if [ "$TRIGGERED" = true ]; then
MSG="$SYMBOL is $DIRECTION \$$TARGET — currently \$$PRICE"
log "ALERT $SCRIPT_NAME: $MSG"
# Desktop notification
if [[ "$OSTYPE" == "darwin"* ]]; then
osascript -e "display notification \"$MSG\" with title \"MoonPay Alert\" sound name \"Glass\""
else
notify-send "MoonPay Alert" "$MSG"
fi
# Self-disable (one-shot)
if [[ "$OSTYPE" == "darwin"* ]]; then
launchctl unload "$HOME/Library/LaunchAgents/com.moonpay.${SCRIPT_NAME}.plist" 2>/dev/null || true
else
crontab -l | grep -v "$SCRIPT_NAME" | crontab -
fi
log "ALERT $SCRIPT_NAME: disabled after trigger"
else
log "ALERT $SCRIPT_NAME: $SYMBOL at \$$PRICE — not triggered ($DIRECTION $TARGET)"
fi
Schedule
Check every 5 minutes:
# cron (Linux)
*/5 * * * * ~/.config/moonpay/scripts/alert-sol-below-80.sh # moonpay:alert-sol-below-80
# launchd (macOS) — use StartInterval of 300 seconds in the plist
Launchd plist at ~/Library/LaunchAgents/com.moonpay.alert-sol-below-80.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.moonpay.alert-sol-below-80</string>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>/Users/USERNAME/.config/moonpay/scripts/alert-sol-below-80.sh</string>
</array>
<key>StartInterval</key>
<integer>300</integer>
<key>StandardErrorPath</key>
<string>/Users/USERNAME/.config/moonpay/logs/alert-sol-below-80.err</string>
</dict>
</plist>
Load: launchctl load ~/Library/LaunchAgents/com.moonpay.alert-sol-below-80.plist
Important: Replace USERNAME with the actual username. Tilde does not expand in plist files.
Recurring alert
"Alert me every hour while ETH is above $2000" — keeps firing on each check, doesn't self-disable.
Same script as above but remove the self-disable block. The alert fires every time the condition is met, until the user manually removes it.
Managing alerts
List active alerts
# macOS
launchctl list | grep moonpay
# Linux
crontab -l | grep moonpay
Remove an alert
# macOS
launchctl unload ~/Library/LaunchAgents/com.moonpay.alert-sol-below-80.plist
rm ~/Library/LaunchAgents/com.moonpay.alert-sol-below-80.plist
# Linux
crontab -l | grep -v "alert-sol-below-80" | crontab -
View alert history
tail -50 ~/.config/moonpay/logs/alerts.log
Tips
- Price checks via
mp token searchare free — no gas costs - 5-minute intervals are reasonable; don't go below 1 minute
- Use
mp token search --query "SOL" --chain solanato resolve token addresses - Alerts log to
~/.config/moonpay/logs/alerts.log— check this to verify they're running - The machine must be logged in for notifications and keychain access to work
bc -lhandles decimal comparison; if unavailable, useawk "BEGIN {exit !($PRICE < $TARGET)}"- This skill is observe-only — for automated buying/selling, see moonpay-trading-automation
Related skills
- moonpay-trading-automation — Automated trading (DCA, limit orders, stop losses)
- moonpay-discover-tokens — Research tokens and get current prices
- moonpay-check-wallet — Check portfolio before setting alerts
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决加密资产用户实时价格监控的核心痛点
- 提供完整的端到端解决方案,从脚本编写到调度配置
待提升项
-
description写错位置 原报告严重程度:轻微
顶层frontmatter中description为空,实际描述内容在skill_body内部
改进建议:将description内容移至顶层frontmatter的description字段
亮点
- 触发词精准完整,覆盖多种变体
- 边界清晰,不易与其他技能混淆
待提升项
-
缺少When to Use章节 原报告严重程度:轻微
虽有具体用例但未以明确章节标题组织
改进建议:增加明确的When to Use章节来组织不同使用场景
亮点
- Phase/步骤清晰,有出口条件
- 含完整端到端示例,frontmatter完整
待提升项
-
plist示例需手动替换USERNAME 原报告严重程度:轻微
Launchd plist示例中包含USERNAME占位符,新手可能直接使用导致失败
改进建议:在示例中添加更明显的替换说明或使用环境变量替代
亮点
- 工具来源明确,参数正确
- 覆盖主要异常,不可逆操作有确认机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 17 行 -
管理员或提升权限
确认确有必要再提升权限;不要关闭防护、绕过证书验证或扩大整个系统的访问权限。
主文档提及 · 第 17 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- www.apple.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。