install
source · Clone the upstream repo
git clone https://github.com/jmagly/aiwg
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/jmagly/aiwg "$T" && mkdir -p ~/.claude/skills && cp -r "$T/agentic/code/frameworks/sdlc-complete/skills/verify-citations" ~/.claude/skills/jmagly-aiwg-verify-citations-9bdff5 && rm -rf "$T"
manifest:
agentic/code/frameworks/sdlc-complete/skills/verify-citations/SKILL.mdsource content
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:
references@.aiwg/research/sources/*
references@.aiwg/research/findings/*
inline referencesREF-XXX- 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 to verify (default: all[file-path]
files in current directory).md
- Treat warnings as errors--strict
- Automatically fix GRADE violations and remove hallucinated citations--fix
- Save report to--report.aiwg/reports/citation-verification.md
- Only check @-mention references, skip author-year patterns--corpus-only
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