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.
mdr add yangsal/ashares_data_collect/news-opensearch@git:20260708.2b2773cPins 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
mdr add yangsal/ashares_data_collect/news-opensearch@sha256:3b36c25aa96702a2The 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.
[](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.
Audit of the latest version
- 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
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.