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.mdsource 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
- Scan pages. List pages and read each one, checking for inline
citations.[Source: ...] - Identify issues:
- Facts without any citation
- Citations missing date
- Citations missing source type
- Citations with wrong format
- Fix format issues. Rewrite malformed citations to match
.skills/conventions/quality.md - 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)