news-sentiment-finbert SKILL.md skillA
news-sentiment-finbert from qusong0627/quantmind is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add qusong0627/quantmind/news-sentiment-finbert@git:20260919.a5c8006Pins git:20260919.a5c8006 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- qusong0627/quantmind
- Path
skills/news-sentiment-finbert/SKILL.md- Versions recorded
- 3
- Latest version
- git:20260919.a5c8006, committed Sep 19, 2026
- First version recorded
- Aug 29, 2026
- Size
- 10,834 bytes
- Repository stars
- 1,774
- License
- AGPL-3.0
RSS 新闻情绪识别(FinBERT 中文金融情感)安装与运维 — 情绪管线架构、transformers 安装、FinBERT 权重下载、字典法扩充、全量重算、情绪筛选/条形图/个股资讯标签的使用。在 QuantBot / Claude Code 中排查新闻情绪不生效、重新安装 FinBERT、扩充情绪词、触发新闻情绪重算时使用。触发词:情绪识别、FinBERT、情绪不生效、情绪都是中性、字典法、新闻重算、news sentiment.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
> ⚙️ 本技能遵循公共运行环境契约(最高优先级,先于本文其余内容执行):
> 详见 [_shared/env-contract.md](../_shared/env-contract.md),执行前先读它。
# 新闻情绪识别(FinBERT)安装与运维技能
QuantMind 的 RSS 新闻情绪识别管线:Huntly 抓取 → celery 每分钟 enrich → 股票/行业/事件标签 + 情绪分 → `news_article_enrichment` 表 → 前端 RSS 面板/个股资讯 Tab 展示利好/利空。
本技能覆盖**情绪层**的安装、验证、重算、排查、词库增强。
## 1. 架构与数据流
```
Huntly (RSS 抓取, 381 源, 41.5 万文章)
→ celery-beat 每 60s: news-enrich-recent (run_enrichment_batch)
→ NewsMatcher (Aho-Corasick + finance_lexicon 5 万词: 股票/行业/事件/情感)
→ sentiment.score() (两级融合)
字典法 dict_score (finance_lexicon sentiment_pos/neg 词权重差)
+ FinBERT (bardsai/finance-sentiment-zh-base, CPU, conf≥0.55 才融合)
→ 写入 news_article_enrichment 表 (model_version 带 +finbert 后缀表示 FinBERT 生效)
→ 前端:
/rss-news NewsPanel: 情绪筛选/利好利空强度排序/统计栏情绪分布条形图
个股终端「个股资讯」Tab: 每篇利好/利空标签 (stock_news 关联 enrichment)
```
**情绪词库**:finance_lexicon 已从最初的 230 词扩充到 **51,887 词**(sentiment_pos 27,227 / sentiment_neg 24,089 / event 571),来源见第 6 节。
## 6. 情绪词库增强(从 230 词 → 5 万词)
情绪词分两级来源,统一存 finance_lexicon:
### 6.1 现成情感词典(通用,可复现导入)
| 来源 | 词数 | 说明 |
|---|---|---|
| **DLUT 情感本体库** (github.com/yizhanmiao/DLUT-Emotionontology) | 22,001 | 中文情感词汇本体,强度 1-9,极性 1正/2负 |
…Read the whole file at its exact version.
How to install
mdr add qusong0627/quantmind/news-sentiment-finbert@sha256:16197469b596ddfcThe line at the top of this page pins the label git:20260919.a5c8006, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_jgx3fbtprsfre3ud)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between Aug 29, 2026 and Sep 19, 2026, about one every 11 days. Its first recorded version is graded B and its latest A.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260919.a5c8006 latest | 2026-09-19 | a5c8006 | 10,834 B | A | view · diff |
| git:20260829.c9fd96c | 2026-08-29 | c9fd96c | 12,686 B | B | view · diff |
| git:20260829.cda0e48 | 2026-08-29 | cda0e48 | 12,688 B | B | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (10834 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
qusong0627/quantmind · 1,774 stars · license AGPL-3.0 · pushed 2026-10-22 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_jgx3fbtprsfre3ud GET https://markdownregistry.com/api/v1/resolve?ref=qusong0627/quantmind/news-sentiment-finbert GET https://markdownregistry.com/api/v1/blob/16197469b596ddfcad6083589d9c3612fa771b3d279fa2312978b5688380b9df
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.