Citation guard

From jmagly/aiwg · View interactive version

Citation guard is an AI agent skill from the GitHub repository jmagly/aiwg. Verify citations against the research corpus to prevent hallucinated references and enforce GRADE compliance

How to use this skill

Skill file

citation-guard

Automatically verify citations when agents generate content that makes factual claims or references research.

Triggers

Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):

Purpose

This skill acts as a passive citation guard, activating whenever agents generate content that includes citations or factual claims requiring evidence. It prevents citation hallucination by verifying references exist before they are written.

Behavior

When triggered, this skill:

  1. Intercept citation generation:
  1. Verify against corpus:

the timestamp exists in segments[], and the quoted words match the transcript text exactly

  1. Check GRADE compliance:
  1. Allow or warn:
  1. Track gaps:

Activation Conditions

activation:
  always_active_for:
    - technical-writer
    - documentation-synthesizer
    - requirements-analyst
    - architecture-designer
    - domain-expert
    - technical-researcher

  triggers_on_content:
    - pattern: "REF-\\d{3}"
    - pattern: "@\\.aiwg/research/"
    - pattern: "@\\.aiwg/research/.*@\\s*\\d{1,2}:\\d{2}(?::\\d{2})?"
    - pattern: "according to"
    - pattern: "research (shows|demonstrates|suggests|indicates)"
    - pattern: "\\(\\w+ et al\\., \\d{4}\\)"

Integration

This skill uses:

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.