The vault.
All optional. tag defaults to "paper" (leading #
stripped if provided). folder restricts the scan. limit defaults
to 100.
{ scanned, flagged } — scanned counts notes carrying the
tag; flagged is the subset with missing frontmatter citation.
const audit = await paperAudit(vault, { tag: "paper", limit: 50 });
console.log(`${audit.flagged.length}/${audit.scanned} papers need citation`);
for (const p of audit.flagged) {
if (p.proposed_frontmatter_patch) {
await frontmatterSet(vault, { path: p.path, set: p.proposed_frontmatter_patch });
}
}
Audit
#paper-tagged notes for missing citation metadata.Scans every note carrying the configured tag and verifies frontmatter has at least one of
arxiv/doi/url/isbn. Notes with detectable identifiers in body text (e.g.arxiv:2401.12345from quick-capture) but missing frontmatter receive an actionableproposed_frontmatter_patch.