news-opensearch SKILL.md skillB

news-opensearch from yangsal/ashares_data_collect is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add yangsal/ashares_data_collect/news-opensearch@git:20260708.2b2773c

Pins git:20260708.2b2773c in mdr.lock. Pin the fingerprint instead.

Audit grade
B, 16 of 17 checks passed
Kind
SKILL.md skill
Repository
yangsal/ashares_data_collect
Path
skills/news-opensearch/SKILL.md
Versions recorded
1
Latest version
git:20260708.2b2773c, committed Jul 8, 2026
Size
6,895 bytes
Repository stars
39
License
MIT

A股新闻 OpenSearch 库的查询与分析技能。库内含四通道新闻数据(快讯 flash/新闻联播 cctv/公司公告 announcement/个股新闻 stock,2 万+ 文档持续增长),支持 BM25 关键词、 kNN 语义、hybrid 混合三种检索与聚合分析。当需要检索/统计/分析 A 股新闻舆情、公告、 个股消息面时使用。适用于任何智能体(Claude/Hermes 等)——本文档自包含。.

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

# A 股新闻库(OpenSearch)使用手册

## 1. 连接信息

| 项 | 值 |
|---|---|
| 端点 | `https://192.168.9.12:9200`(自签证书,客户端需关闭证书校验) |
| 只读账号 | `news_reader` / 密码见部署方(建置见 `docs/deploy/news-reader-account.md`) |
| 读入口 | 统一用别名 **`news`**(物理索引按年 `news-2026`、`news-2027`…,别名聚合全部) |
| 查询向量服务 | Ollama `http://192.168.9.12:11434`(内网免鉴权),模型 `bge-m3`,1024 维 |

Python 连接示例:

```python
from opensearchpy import OpenSearch
client = OpenSearch(
    hosts=[{"host": "192.168.9.12", "port": 9200}],
    http_auth=("news_reader", ",
    use_ssl=True, verify_certs=False, ssl_show_warn=False,
)
```

若在 data_collect 仓库环境内,直接用现成封装(读 config.yaml 凭据):
```python
from data_collect.utils.news_search import search_news
search_news("锂电池 产能扩张", top_k=10, channel="stock", mode="hybrid")
# → {"total": N, "hits": [{title, source, channel, pub_time, url, score, highlight}, ...]}
```

## 2. 数据模型(一篇新闻 = 一个文档)

| 字段 | 类型 | 含义与注意 |
|---|---|---|
| `channel` | keyword | 通道:`flash` 快讯 / `cctv` 联播 / `announcement` 公告 / `stock` 个股新闻 / `marker` 系统标记(**分析时务必排除**) |
| `source` | keyword | 数据源:cls/em(快讯)、cctv、cninfo(公告)、em_stock(个股) |
| `title` | text(中文分词) | 标题(清洗后) |
| `content` | text(中文分词) | 摘要/正文:快讯=全文、联播=全文、公告=标题、个股=~130字摘要 |
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add yangsal/ashares_data_collect/news-opensearch@sha256:3b36c25aa96702a2

The line at the top of this page pins the label git:20260708.2b2773c, 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_naqccinutzszz2sz.svg)](https://markdownregistry.com/a/art_naqccinutzszz2sz)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Jul 8, 2026.

versioncommittedcommitsizeaudit
git:20260708.2b2773c latest2026-07-08 2b2773c 6,895 BB view

Audit of the latest version

B  16 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • fail: No link to a raw IP address (matched: https://192.168.9.12:9200)
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6895 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 script tag

Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.

Source

GitHub

yangsal/ashares_data_collect · 39 stars · license MIT · pushed 2026-10-14 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_naqccinutzszz2sz
GET https://markdownregistry.com/api/v1/resolve?ref=yangsal/ashares_data_collect/news-opensearch
GET https://markdownregistry.com/api/v1/blob/3b36c25aa96702a2253a6f729a7d5d98385f0028c5ef91da3215fe02ff887b54

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 yangsal/ashares_data_collect

qmt-xtquant SKILL.md skill
yangsal/ashares_data_collect · skills/qmt-xtquant/SKILL.md · QMT/MiniQMT xtquant 原生 API 知识库,用于编写、调试或扩展调用 `xtquant.xtdata` 的 A 股数据采集任务。 适用场景:下载/读取…
git:20260625.6a59792 · audit A · 39 stars
tick-microstructure SKILL.md skill
yangsal/ashares_data_collect · skills/tick-microstructure/SKILL.md · A 股 L1 快照 tick 微观结构分析工具箱(知识库 + 可移植 Python 包 tick_analysis)。 从 3 秒快照+五档盘口+累计量额笔数计算:资金流向/主动买卖(Lee-Ready/BVC)、盘口压力(OBI/微价/委…
git:20260708.2b2773c · audit A · 39 stars

Every file in yangsal/ashares_data_collect

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