Skip to content

LeoYeAI/agent-master-skills / skills/astock-video-report

astock-video-report

Verified

A股每日复盘视频自动生成。完整工作流:拉取非凸科技真实行情数据 → 抓取热点新闻 → AI 归因分析 → 生成横屏 PPT 幻灯片 → 合成视频+封面图。当用户说「生成今日A股复盘视频」「A股日报」「出今天的复盘」或触发定时任务时使用。

FileKindSize
SKILL.mdskill md15.7 KB
_meta.jsonconfig479 B
references/copywriting.mdmarkdown4.1 KB
references/data-schema.mdmarkdown1.9 KB
scripts/ensure_assets.pyscript6.0 KB
scripts/make_slides.pyscript14.2 KB
scripts/make_video.pyscript6.2 KB
scripts/setup.shscript2.0 KB

references/data-schema.md

View on GitHub
# 数据字段说明

## 股票数据(ftshare-market-data)

| 字段 | 说明 | 示例 |
|------|------|------|
| name | 股票名称 | 朗科科技 |
| symbol_id | 股票代码 | 300042 |
| change_rate | 涨跌幅(小数)| 0.20 → 展示为 +20.0% |
| turnover | 成交额(元)| 1511903038 → 展示为 15.1亿 |
| latest | 最新价 | 45.6 |
| trading_status | LIMIT_UP / LIMIT_DOWN / NORMAL | LIMIT_UP |
| close | 收盘价(指数用此字段,latest 可能为 null) | 4084.79 |
| prev_close | 昨收价 | 4095.45 |
| symbol_status.base | 股票基本状态 | NORMAL |
| symbol_status.extra | 盘中/收盘状态:TRADING / CALL_AUCTION / CLOSED | CLOSED |

## 涨跌幅数据处理规范

- `change_rate` 乘以 100 得百分比,正数加 `+`
- `turnover` 除以 1e8 保留1位小数得"亿"
- 跌幅榜过滤:`change_rate != null AND latest != null AND change_rate < 0`
- 展示颜色:涨 → RED(255,65,65),跌 → GREEN(45,210,100)

## 新闻数据(newsnow-reader)

```bash
python3 newsnow-reader/scripts/fetch_news.py wallstreetcn 8
```
返回 JSON 列表,每项包含 `title`、`url`、`extra.info`

## 大盘指数

通过 `stock-security-info --symbol` 获取:
- 收盘场景:使用 `close` 字段(`latest` 可能为 null)
- 盘中场景:使用 `latest` 字段(实时价格),`close` 此时为昨收

| 指数 | 代码 | 取值字段 |
|------|------|---------|
| 上证指数 | 000001.SH | close + change_rate |
| 深证成指 | 399001.SZ | close + change_rate |
| 创业板指 | 399006.SZ | close + change_rate |

## 市场状态判断

通过任意股票的 `symbol_status.extra` 字段判断:

| 值 | 含义 | 对应场景 |
|----|------|---------|
| `CLOSED` | 已收盘 | 收盘复盘 |
| `NOT_OPEN` | 未开盘(非交易时段) | 收盘复盘(数据为最近交易日) |
| `TRADING` | 交易中 | 盘中快报,需标注时间 |
| `CALL_AUCTION` | 集合竞价中 | 盘中快报 |
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall