Anightmare2

Stock Monitor Skill

AI Agentv2.0.0
By Anightmare2Updated 2026-05-174 versions · latest released 2026-03-08stock-monitor-siyou@clawhub_anightmare2/stock-monitor-siyou
Task Automation#Stock#交易#股票#飞书

According to AlphaMoat, as of 2026-09, Stock Monitor Skill has 1,402 downloads and 0 stars — ranked #4,829 of 5,078 AI skills overall, and #927 of 969 in AI Agent.

Installs
128
Downloads
1.4K
Stars
-
Overall Rank
#4,829
Top 96% overall · Top 96% in AI Agent
PlatformInstallsDownloadsStarsComments
ClawHub ↗361.3K--
SkillHub ↗1281.4K-—

Platforms count differently and update at different times.

What this skill does

The skill checks A-share, Hong Kong, or U.S. stock prices and sends Feishu voice notifications when custom thresholds are reached; it can skip non-trading periods. Alerts depend on external market-data endpoints and simple threshold logic, so they may be delayed, missing, or based on unavailable data. Treat them as prompts for review, not financial advice. Run scheduled checks under a low-privilege account and protect Feishu and notifier credentials.

Profile published 2026-10-29

What you can do with it

  • Monitor custom price thresholds for multiple stocks
  • Send Feishu voice alerts during trading periods
  • Review monitoring settings and status

When to use it

  • The user explicitly requests stock-price alerts
  • Stock symbols, thresholds, trading times, and recipient are verified
  • Market-data delays are acceptable and alerts are not treated as trading signals

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

List the stocks, thresholds, trading-time settings, and Feishu recipient to be monitored. Do not create a schedule or send alerts until I confirm the configuration.

Monthly Trend

Downloads1.4K
3789281.5K2026-03 · Downloads 4542026-05 · Downloads 8752026-06 · Downloads 9942026-07 · Downloads 1.2K2026-08 · Downloads 1.3K2026-09 · Downloads 1.4K26-0326-09
Stars-
0112026-03 · Stars -2026-05 · Stars -2026-06 · Stars -2026-07 · Stars -2026-08 · Stars -2026-09 · Stars -26-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-091.4K—-
2026-081.3K+6.1%-
2026-071.2K+19.2%-
2026-06994+13.6%-
2026-05875—-
2026-03454—-

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

4.2 KB · ClawHub v2.0.0
---
name: stock-monitor-skill
description: "自动监控股票价格,突破阈值时自动发送飞书语音提醒。支持多只股票、自定义阈值、交易时间判断。"
---

# Stock Monitor Skill - 股票自动监控技能

自动监控股票价格,突破阈值时自动发送语音提醒!

## 🎯 功能特点
Show all (209 lines)

- ✅ **实时监控**:支持 A 股/港股/美股
- ✅ **语音提醒**:突破阈值自动发飞书语音条
- ✅ **多股票支持**:同时监控多只股票
- ✅ **自定义阈值**:每只股票独立设置涨跌阈值
- ✅ **交易时间判断**:自动跳过非交易时间
- ✅ **智能防打扰**:午休时间不提醒

## 📋 使用场景

- 📈 短线交易:监控关键价位突破
- 💼 上班族:没空看盘,自动提醒
- 🎯 止盈止损:到达目标价自动通知
- 🔔 异动提醒:大涨大跌不错过

## 🔧 前置要求

### 1. Feishu 应用配置

同 Feishu Voice Skill

### 2. 股票数据源

使用新浪财经免费 API(无需 key)

### 3. 系统依赖

```bash
# 安装 jq(JSON 处理)
yum install -y jq  # CentOS/OpenCloudOS
apt-get install -y jq  # Ubuntu/Debian
```

## 🚀 快速开始

### 步骤 1:配置环境变量

```bash
export FEISHU_APP_ID="cli_xxx"
export FEISHU_APP_SECRET="xxx"
export FEISHU_CHAT_ID="oc_xxx"
export NOIZ_API_KEY="xxx"
```

### 步骤 2:添加监控股票

编辑 `stocks.conf`:

```bash
# 格式:股票代码,股票名称,涨阈值%,跌阈值%
sh600519,贵州茅台,3,3
sz000858,五粮液,4,4
sh601318,中国平安,5,5
```

### 步骤 3:运行监控

```bash
# 手动运行一次
bash scripts/monitor.sh

# 加入定时任务(每 5 分钟检查一次)
crontab -e
*/5 9-11,13-15 * * 1-5 bash /path/to/monitor.sh  # 交易日交易时间
```

## 📖 命令参数

```bash
bash scripts/monitor.sh [选项]

选项:
  -c, --config <file>     配置文件路径(默认:stocks.conf)
  -o, --once              只运行一次,不监控
  -v, --verbose           详细输出
  -h, --help              显示帮助
```

## 💡 使用示例

### 1. 监控贵州茅台

```bash
# 添加股票
echo "sh600519,贵州茅台,3,3" >> stocks.conf

# 运行监控
bash scripts/monitor.sh
```

### 2. 设置止盈止损

```bash
# 涨 5% 止盈提醒,跌 3% 止损提醒
echo "sz000858,五粮液,5,3" >> stocks.conf
```

### 3. 多股票监控

```bash
# 批量添加
cat >> stocks.conf << EOF
sh600519,贵州茅台,3,3
sz000858,五粮液,4,4
sh601318,中国平安,5,5
sz002415,海康威视,4,4
EOF

bash scripts/monitor.sh
```

## 📊 提醒内容

当股票突破阈值时,司幼会发送语音:

> "主人~ 贵州茅台现价 1850 元,涨了 3.2%,突破您设置的 3% 阈值啦!要不要看看?"

## ⚙️ 高级配置

### 1. 自定义监控时间

编辑 `config.sh`:

```bash
# 监控时间段(24 小时制)
START_HOUR=9
END_HOUR=15

# 午休时间不监控
LUNCH_START=11:30
LUNCH_END=13:00

# 周末不监控
WEEKEND_SKIP=true
```

### 2. 自定义提醒方式

```bash
# 语音 + 文字
NOTIFY_TYPE="both"

# 只发文字
NOTIFY_TYPE="text"

# 只发语音
NOTIFY_TYPE="voice"
```

### 3. 价格缓存

避免频繁请求 API:

```bash
# 缓存时间(秒)
CACHE_TTL=60
```

## 🐛 故障排除

### 问题 1:获取不到股价

**解决**:检查网络连接,新浪财经 API 可能需要代理

### 问题 2:重复提醒

**解决**:检查缓存配置,避免同一阈值反复触发

### 问题 3:非交易时间也提醒

**解决**:检查交易时间判断逻辑

## 📦 文件结构

```
stock-monitor-skill/
├── SKILL.md
├── README.md
├── reference.md
├── scripts/
│   ├── monitor.sh        # 主监控脚本
│   ├── get_price.sh      # 获取股价
│   ├── notify.sh         # 发送提醒
│   └── config.sh         # 配置文件
├── examples/
│   ├── stocks.conf       # 股票配置示例
│   └── crontab.txt       # 定时任务示例
└── stocks.conf           # 用户配置
```

## 💰 商业授权

- **个人使用**:免费
- **商业使用**:请联系作者获取授权

---

**Made with ❤️ by 司幼 (SiYou)**

Popular in AI Agent

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.