Gbrain citation-fixer

install
source · Clone the upstream repo
git clone https://github.com/garrytan/gbrain
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/garrytan/gbrain "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/citation-fixer" ~/.claude/skills/garrytan-gbrain-citation-fixer && rm -rf "$T"
manifest: skills/citation-fixer/SKILL.md
source content

Citation Fixer Skill

Contract

This skill guarantees:

  • Every brain page is scanned for citation compliance
  • Missing citations are flagged with specific location
  • Malformed citations are fixed to match the standard format
  • Results reported with counts (scanned, fixed, remaining)

Phases

  1. Scan pages. List pages and read each one, checking for inline
    [Source: ...]
    citations.
  2. Identify issues:
    • Facts without any citation
    • Citations missing date
    • Citations missing source type
    • Citations with wrong format
  3. Fix format issues. Rewrite malformed citations to match
    skills/conventions/quality.md
    .
  4. Report results. Count: pages scanned, citations found, issues fixed, remaining gaps.

Output Format

Citation Audit Report
=====================
Pages scanned: N
Citations found: N
Issues fixed: N
Remaining gaps: N (pages with uncitable facts)

Anti-Patterns

  • Inventing citations for facts that have no source
  • Removing facts that lack citations (flag them, don't delete)
  • Fixing citations without reading the full page context
  • Batch-fixing without checking quality (test-before-bulk convention)