Pharma Daily Report logo

Pharma Daily Report

CommunityPopular
daymade
pharma-daily-report

生成 A 股医药行业日报:从新浪财经抓取 20 只核心医药股实时行情,分析 7 大细分赛道排名、涨跌榜 TOP 3、资金流向,然后通过飞书发送富文本日报。 覆盖恒瑞医药、百济神州、智飞生物、药明康德、迈瑞医疗、片仔癀、云南白药等 20 只核心标的。 当用户需要 医药日报、医药行业日报、pharma daily report、 新浪财经医药数据、A 股医药板块分析、飞书推送医药数据、 制药行业快报 时触发。也适用于"帮我看一下今天医药板块"、 "给飞书发一份今天的医药数据"等口语化请求。

Overview

Publisherdaymade
Repositoryclaude-code-skills
Skill namepharma-daily-report
Stars
1.4K
Forks
219
Bundled files
4
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by daymade on GitHub. Read the source before you install it.

Installation

Install the Pharma Daily Report AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/daymade/claude-code-skills.git /tmp/claude-code-skills
mkdir -p .claude/skills
cp -r /tmp/claude-code-skills/daymade-financial/pharma-daily-report .claude/skills/pharma-daily-report
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Pharma Daily Report in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Pharma Daily Report on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Pharma Daily Report is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

医药行业日报

从新浪财经免费公开接口抓取 A 股医药板块实时行情,分析后通过飞书发送日报。

这个 skill 做什么

  1. 抓取 20 只核心医药股实时数据(新浪 hq.sinajs.cn,GBK 编码,免费无需认证)
  2. 计算赛道排名、涨跌榜 TOP 3、资金流向估算
  3. 生成飞书富文本日报(含涨跌颜色、赛道奖牌)
  4. 通过 lark-cli 发送到指定飞书对话
  5. 在原始数据目录保存当日快照 JSON

能力边界

能做的:

  • A 股医药行业 20 只核心标的的实时快照
  • 7 大细分赛道对比(创新药 / CXO / 医疗器械 / 中药 / 综合医药 / 医疗服务 / 生物制品)
  • 飞书 markdown 美化的日报输出

不能做的:

  • 不提供投资建议(日报自带免责声明)
  • 不抓取付费/Paywall 内容(只用新浪免费接口)
  • 不保证数据无误(来源标注为新浪,交易决策请多方交叉验证)

前置条件

  • Python 3.8+(只用 stdlib 的 urllib,无需 pip 装任何包)
  • lark-cli 已安装且已登录飞书账号
  • 能访问 hq.sinajs.cn

如果用户没装 lark-cli:

bash
npm install -g @larksuite/cli
lark-cli auth login --recommend

注意:飞书是国内服务,lark-cli 命令行前必须加 LARK_CLI_NO_PROXY=1

使用流程

Step 1:确认参数

问用户确认:

  • 飞书 profile:用哪个飞书账号发?如果不清楚自己有哪些 profile,运行 lark-cli profile list 查看(详见 references/feishu_profiles.md
  • 飞书对话:发到哪个群/人?用户如果不清楚自己的 chat_id,帮他查:
    bash
    LARK_CLI_NO_PROXY=1 lark-cli im +chat-search --query " " --page-size 20
    发给自己就用 Feishu Assistant 对话。发给群就搜群名。
  • 股票池:默认用 20 只医药核心标的(见 references/stock_pool.md)。用户可以说"只看创新药"或"加上某某股票"来定制。

Step 2:运行数据管线

直接执行 scripts/daily_pipeline.py

bash
python3 scripts/daily_pipeline.py \
  --feishu-profile <你的飞书profile名> \
  --feishu-chat-id <你的飞书chat_id>

脚本一气呵成:抓数据 → 分析 → 生成日报 → 发飞书 → 存快照。

Step 3:向用户汇报结果

告诉用户关键数据:

  • 几只上涨 / 几只下跌 / 平均涨跌幅
  • 最强赛道和最弱赛道
  • 领涨和领跌 TOP 3
  • 飞书是否发送成功

数据管线详解

新浪财经实时行情接口

http://hq.sinajs.cn/list=sh600276,sz300122,...

返回 GBK 编码文本,每行格式:

var hq_str_sh600276="股票名称,今开,昨收,现价,最高,最低,...,成交金额,...,日期,时间"

32 个逗号分隔字段。关键字段(从 0 开始数):

位置含义示例
0股票名称恒瑞医药
2昨收45.60
3现价46.10
4今日最高46.50
5今日最低45.30
9成交金额(元)850000000

代码前缀规则:6 开头 = sh,其他 = sz

完整字段速查见 references/sina_api.md

赛道分类

20 只股票分为 7 个赛道(见 references/stock_pool.md),分析时按赛道聚合涨跌幅和成交额。

资金流向估算

新浪免费接口不提供买卖方向数据。脚本用"涨的股票的成交额 - 跌的股票的成交额"粗略估算净流向,报告中标注为"估算"。

常见问题

股票名称出现空格

新浪返回的个别名称带空格(如"新 和 成"),脚本内置归一化。

飞书消息太长

飞书 markdown 消息有约 4096 字节限制。超长自动截断并标注。

非交易时段

交易时间 9:30-15:00 外,新浪返回上一个收盘价,涨跌幅接近 0。报告仍会显示,但数据时间可以判断是否实时。

网络问题

新浪不可达时脚本报错退出,不使用缓存(金融数据宁可没有也不能是旧的)。

Next Step: 定时发送

日报做好后,用户可能想每天自动发送。建议:

日报测试发送成功!要不要设置每天早上 9:03 自动发到飞书?

A) 设工作日 9:03 — 每个交易日开盘前收到(推荐) B) 设每天 9:03 — 周末也发(数据不动但能看到) C) 暂时不设,手动跑就行

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Pharma Daily Report AI skill do?

生成 A 股医药行业日报:从新浪财经抓取 20 只核心医药股实时行情,分析 7 大细分赛道排名、涨跌榜 TOP 3、资金流向,然后通过飞书发送富文本日报。 覆盖恒瑞医药、百济神州、智飞生物、药明康德、迈瑞医疗、片仔癀、云南白药等 20 只核心标的。 当用户需要 医药日报、医药行业日报、pharma daily report、 新浪财经医药数据、A 股医药板块分析、飞书推送医药数据、 制药行业快报 时触发。也适用于"帮我看一下今天医药板块"、 "给飞书发一份今天的医药数据"等口语化请求。

Why use Pharma Daily Report on TypingMind?

Because you install it once and use it with any model. Pharma Daily Report is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Pharma Daily Report in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/daymade/claude-code-skills/tree/main/daymade-financial/pharma-daily-report. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Pharma Daily Report?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Pharma Daily Report?

As many as you like. As long as a model supports skills, you can use Pharma Daily Report with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Pharma Daily Report AI skill free?

Yes. It is published on GitHub by daymade under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇