Agent skill
verify-citations
Verify all citations in a document against the research corpus
Install this agent skill to your Project
npx add-skill https://github.com/jmagly/aiwg/tree/main/agentic/code/frameworks/sdlc-complete/skills/verify-citations
SKILL.md
Verify Citations Command
Validate that all citations, references, and factual claims are backed by actual sources in the research corpus.
Instructions
When invoked, perform systematic citation verification:
-
Parse Target File
- Load the specified file (or all markdown files if no path given)
- Extract all citation patterns:
@.aiwg/research/sources/*references@.aiwg/research/findings/*referencesREF-XXXinline references- DOI patterns (
10.XXXX/...) - Author-year patterns (
Author et al., YYYY)
-
Verify Each Citation
- Check file existence for @-mention references
- Validate REF-XXX against frontmatter in corpus
- Verify DOI format validity
- Check page number ranges
- Validate quoted text against source
-
Detect Hallucinations
- Flag citations to non-existent files
- Flag fabricated DOIs
- Flag statistics without sources
- Flag author names not in corpus
-
Check GRADE Compliance
- Load quality assessment for each cited source
- Compare hedging language to evidence quality
- Flag overclaiming (HIGH-confidence language for LOW evidence)
-
Generate Report
- Display summary table (total, valid, issues)
- List each issue with severity and fix suggestion
- Provide overall PASS/FAIL verdict
-
Auto-Fix Mode (--fix)
- Downgrade hedging language for GRADE violations
- Remove citations to non-existent sources (with comment)
- Add TODO markers for sources needing verification
Arguments
[file-path]- File to verify (default: all.mdfiles in current directory)--strict- Treat warnings as errors--fix- Automatically fix GRADE violations and remove hallucinated citations--report- Save report to.aiwg/reports/citation-verification.md--corpus-only- Only check @-mention references, skip author-year patterns
References
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/rules/citation-policy.md - Citation enforcement rules
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/agents/citation-verifier.md - Citation Verifier agent
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/schemas/research/citation-audit.yaml - Audit schema
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/schemas/research/hallucination-detection.yaml - Detection patterns
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
research-document
Generate summaries and literature notes from research papers
research-archive
Package research artifacts for long-term archival
research-cite
Format citations and generate bibliographies
induct-research
Induct research sources into a research repository. Point at an issue, a single file, a directory of papers, or a URI and the skill reads, annotates, and files structured induction tasks — one per source. Similar to address-issues but for research corpora instead of code backlogs.
research-provenance
Query provenance chains and artifact relationships
research-quality
Assess source quality using GRADE methodology
Didn't find tool you were looking for?