AgentSkillsCN

cite-assist

在写作过程中随时核实引文。可在本地检查参考文献,若缺失则在线搜索,纠正可能的“幻觉”引用。写作时应主动采取此类措施。

SKILL.md
--- frontmatter
name: cite-assist
description: Verify citations when writing. Check bibliography locally, search online if missing, fix hallucinations. Use proactively during writing.
proactive: true

Citation Assistant

Workflow

When writing text with citations:

1. Write text with \citep{} or \citet{}

2. For each citation, check if it exists locally

code
Grep: pattern="citationKey" path="bibliography.bib"

3. If NOT in bibliography.bib

Search online to verify the citation is real:

  • Use WebSearch to find the paper
  • Verify: title, authors, year, venue match what you claimed

If citation exists online:

  • Propose BibTeX entry to add
  • Justify why this citation supports the claim
code
Citation needed: [citationKey]
Claim: "[what you wrote]"

Found: [Paper title] by [Authors], [Year]
URL: [link]

Proposed BibTeX:
@article{citationKey,
    title = {...},
    author = {...},
    year = {...},
    ...
}

Justification: This paper supports the claim because [reason].

Add to bibliography.bib? [Y/n]

If citation is hallucinated (doesn't exist or doesn't match):

  • Immediately re-edit the text
  • Either find a real citation or remove the claim
code
Hallucination detected: [citationKey]
Claimed: "[what you wrote]"
Reality: Paper doesn't exist / doesn't say this

Re-editing text to fix...

4. Summary after writing

code
Citations verified:
- \citep{existing1} - in bib
- \citep{existing2} - in bib

Citations to add:
- \citep{newKey} - [proposed entry]

Fixed hallucinations:
- Removed claim about X (no valid citation)

Rules

  • Always verify before proposing
  • Never invent citations
  • If unsure, search first
  • Fix mistakes immediately