ssxb-keyword-search
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "ssxb-keyword-search" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-fed529e33e435f10d499343611d60eaffbf322a53e32425c02022416548963ce. Verify the upstream source and version against https://skillhub.cn/skills/user_058048a4/ssxb-keyword-search before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
The China Times Keyword Searcher: Searches the East View Chinese newspaper collection (CRL/lqrcn) for The China Times (approx. 1911-05-18 to 1948-12-04) by user keyword, returns all hits sorted by date (earliest to latest), extracts context snippets around the keyword within each column, produces a Chinese summary and commentary report, and attaches a deep link to the scanned archive for each hit. Returns the first 10 hits and the total count, then asks whether to continue page-by-page (10 per page) until all results are delivered. Trigger phrases include: search old newspapers for X; search X in The China Times; X appears in The China Times; old-paper keyword search.
Introduction source: third_party · user_058048a4 · 1.0.2 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: ssxb-keyword-search
slug: ssxb-keyword-search
displayName: 时事新报关键词检索19110518-19481204
version: 1.0.2
description: "根据用户输入的关键词,在 East View 中文报纸库(CRL/lqrcn)《时事新报》(The China Times,上海,约 1911-05-18 至 1948-12-04)站内检索该词全部结果,按时间(最早到最晚)排序,抽取每条命中栏目里关键词附近的上下文片段(而非整栏总结),生成中文概述与评论报告并附每条影印档案深链。先输出前 10 条与总条数,再逐页(每页 10 条)询问用户是否继续,直到全部结果输出完。当用户说「查某关键词的旧报纸」「时事新报里搜某某」「某某在时事新报出现」「旧报关键词检索」时触发。"
agent_created: true时事新报关键词检索
用户输入一个关键词(人名、事件、机构皆可,如 黄兴 / 袁世凯 / 宋教仁 / 保路运动 / 武昌起义), 本技能在《时事新报》全库内检索该词、按时间排序、抽取每条里关键词附近的上下文片段, 输出与该词直接相关的概述与评论(不是整版大文章的总结),并附影印档案链接。
关键背景(避免「牛头不对马嘴」)
East View 是影印图片库,正文藏在图片里,靠 OCR 文本层检索与展示:
- 检索命中 ≠ 头条内容。 关键词常出现在版面里某条电讯、某段杂闻、某则供词、某段按语中, 而非该版头条/大块论说。所以必须抽取「关键词被命中的那段上下文」来概括,绝不能抓整栏总结—— 之前整栏总结导致结论与关键词对不上,正是这个原因。
- OCR 把简体打成了繁体/异体(如 黄兴→黃興、袁世凯→袁世凱)。脚本用 opencc 自动把关键词转繁体去文本层命中;
若仍miss,可用
--images下载「片段图」(搜索引擎高亮关键词的那块影印截图)由你用视觉核验。 - 该报立场随年代变化:清末(1911)多用「匪/乱党/窜」等贬词;民初以后立场复杂。引用须与革命党自述、《申报》等对照。
工作流程(多轮)
第 1 步:跑脚本取「前 10 条 + 总条数」
用带 opencc 的 Python 运行脚本(务必用下面这个 venv 解释器,否则 opencc 缺失会漏掉繁体命中):
C:/Users/sunya/.workbuddy/binaries/python/envs/default/Scripts/python.exe scripts/search_ssxb.py "<关键词>" --page 1
- 默认
--sort time(时间最早→最晚)、--per-page 10。 - 首次运行会在
ssxb_search_cache/建索引缓存(翻页累加出总条数,大词可能十几页、约半分钟); 后续--page 2/3...直接读缓存、只抓当页 10 条栏目,很快。 - 脚本输出:关键词、排序、「该关键词共 N 条搜索结果」、本页每条的(日期 / 版次 / docid / 档案深链 / 文本层命中数 / 关键词上下文片段)。
- 若某条文本层未直接命中且想核验,加
--images会下载该条片段图到ssxb_search_cache/。 - 沙箱/网络提示:脚本必须访问
gpa.eastview.com才能抓 East View 档案。若建立索引时以exit code 1退出且无报错,通常是 WorkBuddy 沙箱拦截了外网请求。此时必须让 agent 用dangerouslyDisableSandbox: true运行 Bash 调用,或让用户点界面上的「关闭沙箱重跑」按钮。
第 2 步:按「黄兴检索」格式写报告(⚠️ 必须落盘为 .md 文件)
依据脚本给的每条上下文片段(不是整栏)撰写,格式如下(用户已认可此格式)。
必须写成 .md 文件,不可只在对话窗口贴文本。 具体要求:
- 文件名:
时事新报_{关键词}搜索_时间序第N页.md(第 1 页=「前十条」、第 2 页=「第 11–20 条」…)。- 写入当前工作目录,随后用
present_files呈现给用户。- 多页时每页一个独立文件(文件名带页码),不要覆盖上一页的文件。
- 理由:用户明确要求结果落盘为文件,而非只留在聊天里。
- 开头:关键词、排序方式、总条数、时间跨度(最早/最晚日期)。
- 总览表:
# | 日期 | 版次 | 与关键词关系(强·一手 / 中 / 弱·整版命中)| 内容摘要。 - 逐条详述:每条给
日期(版次)、清洗后的命中片段原文、概述、评论/史料价值、以及档案深链(脚本已给)。 - 可靠性提醒:该报立场、OCR 失真(括号内为依史实校读补入之字)、片段图核验提示。
写的时候:OCR 噪音要清洗(删乱码、补可读断句),但不要把脚本没给的史实硬塞进去; 片段看不清处如实标注「OCR 难辨,建议点开档案链接核对」。
第 3 步:告知总条数 + 询问是否继续
报告末尾明确写出「该关键词共 N 条」,并问用户:「是否需要继续输出第 11–20 条(后十条)?」
第 4 步:用户确认则取下一页,循环
用户说要 → 运行:
...python.exe scripts/search_ssxb.py "<关键词>" --page 2
写出「第 11–20 条」报告,再问是否继续 --page 3…… 直到:
- 用户说停;或
- 脚本输出「(已无更多结果:第 X 页为空,全部 N 条均已输出完)」→ 告知用户已全部输出完毕。
进阶用法
- 换排序:
--sort relevance按相关性(默认时间)。注意时间序最能串出史料脉络。 - 直接贴检索 URL:若用户贴来 East View 的搜索链接(含
txq=关键词),脚本会自动抽取关键词。 - 重建索引:关键词或排序变了用
--refresh强制重抓。 - 测试控量:
--index-limit N只翻前 N 页建索引(开发用,正常使用不必加)。
依赖
- 标准库即可,唯需
opencc-python-reimplemented做简→繁转换(已在C:/Users/sunya/.workbuddy/binaries/python/envs/default这个 venv 装好)。 若换机器运行,先path/to/venv/Scripts/pip.exe install opencc-python-reimplemented; 缺它时脚本仍可跑,但繁体关键词(黄兴类等)会漏命中,需用--images兜底。
Current listing version
1.0.2
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供《时事新报》历史档案关键词检索与上下文片段提取,满足史料挖掘与研究需求
- 功能闭环完整,支持分页交互与深链直达原始档案
Highlights
- 触发词覆盖合理变体,边界清晰,如「查某关键词的旧报纸」「时事新报里搜某某」
Areas to improve
-
缺少显式 When to Use 章节 Reported severity: Minor
文档未设置显式 When to Use 章节,但 description 已涵盖触发场景
Recommendation: 建议增加显式 When to Use 章节以提升可读性
Highlights
- 结构清晰,含关键背景、多步流程、输出格式与依赖说明
- 提供完整命令示例与出口条件
Areas to improve
-
未覆盖 East View 登录态失效场景 Reported severity: Minor
脚本依赖 East View 访问,但未说明登录态失效时的处理方案
Recommendation: 建议补充登录态失效的提示与解决方案
Highlights
- 工具来源明确,参数正确,覆盖沙箱拦截与 OCR 失真等异常
- 提供 --images 兜底机制与沙箱绕过方案
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.