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.

Install it, pinned
mdr add qusong0627/quantmind/news-sentiment-finbert@git:20260919.a5c8006

Pins 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

The exact contents, by fingerprint
mdr add qusong0627/quantmind/news-sentiment-finbert@sha256:16197469b596ddfc

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_jgx3fbtprsfre3ud.svg)](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.

versioncommittedcommitsizeaudit
git:20260919.a5c8006 latest2026-09-19 a5c8006 10,834 BA view · diff
git:20260829.c9fd96c2026-08-29 c9fd96c 12,686 BB view · diff
git:20260829.cda0e482026-08-29 cda0e48 12,688 BB view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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.

More from qusong0627/quantmind

AGENTS.md AGENTS.md file
qusong0627/quantmind · AGENTS.md
git:20261021.501dee8 · audit B · 1,774 stars
CLAUDE.md CLAUDE.md file
qusong0627/quantmind · CLAUDE.md
git:20261003.8b2ea6a · audit A · 1,774 stars
AGENTS.md@config/qwenpaw AGENTS.md file
qusong0627/quantmind · config/qwenpaw/AGENTS.md
git:20261003.8b2ea6a · audit A · 1,774 stars
AGENTS.md@rd-agent/rdagent/scenarios/rl/autorl_bench/agents/claude AGENTS.md file
qusong0627/quantmind · rd-agent/rdagent/scenarios/rl/autorl_bench/agents/claude/AGENTS.md
git:20260605.d7f99db · audit A · 1,774 stars
AGENTS.md@rd-agent/rdagent/scenarios/rl/autorl_bench/agents/codex AGENTS.md file
qusong0627/quantmind · rd-agent/rdagent/scenarios/rl/autorl_bench/agents/codex/AGENTS.md
git:20260605.d7f99db · audit A · 1,774 stars
AGENTS.md@rd-agent/rdagent/scenarios/rl/autorl_bench/agents/gemini AGENTS.md file
qusong0627/quantmind · rd-agent/rdagent/scenarios/rl/autorl_bench/agents/gemini/AGENTS.md
git:20260605.d7f99db · audit A · 1,774 stars
ai-ide-strategy-writing SKILL.md skill
qusong0627/quantmind · skills/ai-ide-strategy-writing/SKILL.md · AI-IDE 写策略与执行 — 用 AI 生成 Qlib 量化策略代码、Docker 容器执行策略/回测、自然语言条件选股、策略落库。在 QuantBot / Claude Code 中让 AI 写策略、生成 Qlib…
git:20260919.a5c8006 · audit B · 1,774 stars
backtest-center SKILL.md skill
qusong0627/quantmind · skills/backtest-center/SKILL.md · 回测中心 — 快速回测、专家模式、回测历史、策略对比、参数优化、策略管理、高级分析。在 QuantBot / Claude Code 中运行 Qlib…
git:20260919.a5c8006 · audit B · 1,774 stars
batch-inference-analysis SKILL.md skill
qusong0627/quantmind · skills/batch-inference-analysis/SKILL.md · 批量推理结果分析 — 用 QuantMind 选股策略方法论分析每日信号、行业轮动、个股分数区间、负分参考。在 QuantBot / Claude Code…
git:20260919.a5c8006 · audit B · 1,774 stars
daily-review SKILL.md skill
qusong0627/quantmind · skills/daily-review/SKILL.md · A股每日复盘(专业版)— 基于 QuantDB 本地数据 + 当日新闻情绪 + 模型推理信号 + L1/L2 因子截面 + 板块资金流的盘后复盘:指数、涨跌结构与涨停梯队、量能、行业/概念轮动、资金面、L2…
git:20261003.8b2ea6a · audit A · 1,774 stars
futuapi SKILL.md skill
qusong0627/quantmind · skills/futuapi/SKILL.md · 富途 OpenAPI 交易与行情助手。查询行情、K线、报价、快照、买卖盘、逐笔成交、分时数据;搜索标的与资讯;解析期权代码、查询期权链/到期日/IV/行权概率;执行买入/卖出/下单/撤单/改单;查询持仓/资金/账户/订单;订阅实时推送;加密…
v0.1.1 · audit A · 1,774 stars
install-futu-opend SKILL.md skill
qusong0627/quantmind · skills/install-futu-opend/SKILL.md · Futu OpenD 安装助手。自动下载安装Futu OpenD 并升级 Python SDK。支持 Windows、MacOS、Linux。用户提到安装、下载、启动、运行、配置 OpenD、开发环境、升级 SDK、futu-api…
v0.1.1 · audit A · 1,774 stars

Every file in qusong0627/quantmind

Browse by kind, by grade A, or by owner.