跳到主要内容
知仓学习社ZHICANG

validate-bib

Validate bibliography entries against citations in manuscript and Quarto book files. Find missing entries, unused references, potential typos, and q…

不碰外部(只输出文字)无严重或高危命中brycewang-stanford/Auto-Empirical-Research-Skills

它会碰到什么

扫了多少1 个文本文件,2 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Validate Bibliography

Cross-reference all citations in manuscript and book files against bibliography entries.


Workflow

Step 1: Read the bibliography

Read docs/overleaf/refs.bib and extract all citation keys.

Step 2: Scan all files for citation keys

  • .tex files in docs/overleaf/: look for \textcite{, \parencite{, \cite{, \citet{, \citep{, \citeauthor{, \citeyear{}
  • .qmd files in book/: look for @key, [@key], [@key1; @key2]
  • Extract all unique citation keys used

Step 3: Cross-reference

  • Missing entries (CRITICAL): Citations used in files but NOT in refs.bib
  • Unused entries (informational): Entries in refs.bib not cited anywhere
  • Potential typos: Similar-but-not-matching keys (Levenshtein distance)

Step 4: Check entry quality

For each bib entry:

  • Required fields present (author, title, year, journal/booktitle)
  • Author field properly formatted (Last, First and Last, First)
  • Year is reasonable (1900-2026)
  • No malformed characters or encoding issues
  • Entry type appropriate (@article, @incollection, @techreport, etc.)

Step 5: Report findings

## Bibliography Validation Report
**Date:** YYYY-MM-DD
**Bibliography:** docs/overleaf/refs.bib
**Total entries:** N
**Files scanned:** N .tex + N .qmd

### Missing Entries (CRITICAL)
| Citation Key | Used In | Line |
|-------------|---------|------|
| ... | ... | ... |

### Unused Entries
| Citation Key | Entry Type |
|-------------|------------|
| ... | ... |

### Potential Typos
| Used Key | Similar Bib Key | File |
|----------|----------------|------|
| ... | ... | ... |

### Quality Issues
| Citation Key | Issue |
|-------------|-------|
| ... | Missing journal field |

Files to scan

docs/overleaf/*.tex
book/*.qmd

Bibliography location

docs/overleaf/refs.bib

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

同名技能的其他版本

有 4 个不同仓库或目录里都有叫 validate-bib 的技能。它们内容并不相同,别混用: