moonpay-price-alerts
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "moonpay-price-alerts" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-2b38c8a24ccf7efaf7d112b0e79cb2de293c20096a83aab4b93bbd43285dbe4c. Verify the upstream source and version against https://github.com/moonpay/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Sets desktop price alerts to notify you when a token reaches a target price. For observation only, does not execute trades, and only sends notifications.
Introduction source: third_party · moonpay · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Set up desktop price alerts that notify you when tokens hit target prices. Observe-only — no trading, just notifications.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- `mp` binary on PATH: `which mp` `jq` installed: `which jq` macOS: `osascript` (built-in) or Linux: `notify-send` (`sudo apt install libnotify-bin`)
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
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
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决加密资产用户实时价格监控的核心痛点
- 提供完整的端到端解决方案,从脚本编写到调度配置
Areas to improve
-
description写错位置 Reported severity: Minor
顶层frontmatter中description为空,实际描述内容在skill_body内部
Recommendation: 将description内容移至顶层frontmatter的description字段
Highlights
- 触发词精准完整,覆盖多种变体
- 边界清晰,不易与其他技能混淆
Areas to improve
-
缺少When to Use章节 Reported severity: Minor
虽有具体用例但未以明确章节标题组织
Recommendation: 增加明确的When to Use章节来组织不同使用场景
Highlights
- Phase/步骤清晰,有出口条件
- 含完整端到端示例,frontmatter完整
Areas to improve
-
plist示例需手动替换USERNAME Reported severity: Minor
Launchd plist示例中包含USERNAME占位符,新手可能直接使用导致失败
Recommendation: 在示例中添加更明显的替换说明或使用环境变量替代
Highlights
- 工具来源明确,参数正确
- 覆盖主要异常,不可逆操作有确认机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 17 -
Administrator or elevated privileges
Elevate only when necessary. Keep protection and certificate validation enabled and avoid broad system access.
Mentioned in main document · lines 17
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- www.apple.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
`mp` binary on PATH: `which mp` `jq` installed: `which jq` macOS: `osascript` (built-in) or Linux: `notify-send` (`sudo apt install libnotify-bin`)
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.