literature-manager — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited literature-manager (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
使用 persistent storage 维护跨对话文献库,支持导出备份。
参考文件(操作前按需读取): -references/schema.md— 完整数据 schema(字段规范、key 规划、倒排索引结构) -scripts/convert_to_bib.py— JSON → BibTeX 转换脚本 -scripts/convert_to_ris.py— JSON → RIS 转换脚本
原则:persistent storage 提供便利性,导出文件提供安全性。即使账号或存储出问题,用户手上有最新的导出文件。
详细 schema 见 references/schema.md,这里只列关键结构:
| key | 内容 |
|---|---|
library:index | 主索引(轻量摘要,一次加载即可浏览全库) |
entry:{id} | 单条文献完整数据 |
library:tag_index | 标签 → 文献 ID 列表(倒排索引) |
library:author_index | 作者 → 文献 ID 列表 |
library:domain_index | 领域/子领域 → 文献 ID 列表 |
library:year_index | 年份 → 文献 ID 列表 |
library:export_log | 导出历史记录 |
首次使用时(library:index 不存在),创建空索引和空倒排索引。
从检索 skill 导入:用户在使用 literature-search-omfs 后说"存入文献库"或"保存这些"时,将检索结果中的文献转为 entry 格式存入。需要从检索结果中提取:标题、作者、年份、来源、DOI、领域、标签、信息可及度、置信度、一句话概括。
手动添加:用户提供文献信息,交互式补全缺失字段。至少需要标题和年份。
添加流程:
id(格式 e_{YYYYMMDD}_{seq},seq 从 library:index.next_id_seq 取)entry:{id}library:index(添加轻量摘要,递增 next_id_seq)批量添加:检索结果通常有多篇,支持一次性添加,逐条确认或用户说"全部添加"。
library:index,显示总数、各领域/集合分布library:tag_index,列出匹配文献library:author_indexlibrary:domain_indexlibrary:year_indexlibrary:index.entries 中筛选 collections 字段entry:{id},显示完整信息浏览时使用简洁列表格式:
[1] Zhang Y et al. (2024) Virtual Surgical Planning... 🟢📑 IJOMS Q1 IF=2.7
[2] Vaswani A et al. (2017) Attention Is All You Need 🟢📄 NeurIPS T1读取 entry:{id},在 notes 数组中追加或修改笔记条目。每条笔记带 note_id、content、created_at、updated_at。更新后写回 entry 并更新 library:index 中的 updated_at。
在 entry:{id} 的 relations 字段中添加/删除关系。支持的关系类型:cites、cited_by、related、supersedes、superseded_by、contradicts、extends。
添加关系时,如果 target 也在库中,双向更新(如 A cites B → B 的 relations 加 cited_by A)。
集合是跨领域的文献分组(如"毕业论文引用"、"2024年3月TMJ检索")。
library:index.collections 中添加,给相关 entry 的 collections 字段加上集合名collections 字段和索引中对应条目library:index.entries 中属于该集合的文献检测策略(按优先级):
添加新文献时自动运行去重检查。用户也可主动触发全库去重扫描。
发现重复时:展示两条文献的差异,让用户选择保留哪条或合并信息。
导出格式:
| 格式 | 用途 | 方法 |
|---|---|---|
| JSON(canonical) | 备份/重新导入 | 直接从 storage 序列化 |
| BibTeX (.bib) | Zotero/JabRef | JSON → scripts/convert_to_bib.py |
| RIS (.ris) | Zotero/Mendeley/EndNote | JSON → scripts/convert_to_ris.py |
| Markdown (.md) | 人类可读参考列表 | 直接生成 |
导出流程:
library:export_log 和各 entry 的 export_history增量导出:比较每条 entry 的 updated_at 与上次导出时间 library:index.last_export,只导出更新的条目。manifest 中记录 new/updated/deleted 数量。
导出提醒:当累计新增或修改 ≥5 条文献且距上次导出 >1 天时,在对话结束前主动提醒"建议导出备份"。
从用户上传的 canonical JSON 文件重建文献库:
entry:{id}library:index 和所有倒排索引支持合并导入(与现有库合并,按 DOI/id 去重)和覆盖导入(清空后重建)。
如果索引损坏或不一致:
list 方法枚举所有 entry:* keylibrary:index 和四个倒排索引当用户在使用 literature-search-omfs 检索后要求存入文献库时:
当用户在管理文献时需要补充检索,可以直接调用检索 skill。
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.