citation-fixer
Skill by garrytan
Citation Fixer audits brain pages for inline [Source: ...] citations and repairs their formatting. Since v0.25.1 it also resolves tweet references that lack x.com links, using the host's X API integration.
Install citation-fixer
Built from the published package, never by AI.
git clone --depth 1 https://github.com/garrytan/gbrain /tmp/gbrain && mkdir -p ~/.claude/skills && cp -r /tmp/gbrain/skills/citation-fixer ~/.claude/skills/citation-fixerRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/garrytan/gbrain /tmp/gbrain && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/gbrain/skills/citation-fixer ~/.gemini/antigravity-cli/skills/citation-fixerAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Citation Fixer scans brain pages for inline [Source: ...] citations that match the standard format in conventions/quality.md. It flags facts with no citation and citations missing a date or source type, then rewrites malformed citations to the standard. Facts without a source are flagged rather than deleted or invented.
Since v0.25.1, it also finds tweet or post references that have no x.com URL. It searches through the host's X API integration, checks that the text matches, and patches the page with a link built from the returned tweet ID. Each run reports pages scanned, citations found, issues fixed, tweets resolved and remaining gaps. It suits users who keep a set of cited pages and want batch cleanup.
Written from the project's SKILL.md and checked against it.
What it can do
- Citation auditScans pages for facts without citations and for citations missing a date or source type.
- Format fixesRewrites malformed inline [Source: ...] citations to match the standard format.
- Tweet resolutionFinds tweet references without x.com URLs and resolves them via the host's X API integration.
- Batch modeSweeps many pages, prioritizing recent and high-traffic ones, and commits in small groups.
- Audit reportReports pages scanned, citations found, issues fixed, tweets resolved and remaining gaps.
What you need
- Brain pages accessible through search, get_page, put_page and list_pages
- An X / Twitter API integration configured in the host, for tweet resolution
Try asking
- Fix citations on this page
- Run a citation audit across my brain pages
- Resolve broken tweet references and add x.com links
Good to know
- Flags facts that lack a source instead of deleting or inventing citations.
- Tweet URLs come only from X API results, never guessed IDs.
- Batch runs target about 50 pages, respecting the host's X API tier limits.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/citation-fixer/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
routing-eval.jsonl585 B
Alternatives to citation-fixer
All alternatives →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
Compare with agentmemory-config, understand-knowledge or reports
citation-fixer: common questions
What does citation-fixer check for?
It checks that every fact has an inline [Source: ...] citation in the standard format, with a date and source type. It also looks for tweet references that lack x.com URLs.
How does it add links to tweets?
It searches through the host's X API integration, confirms the text matches, and builds the URL as https://x.com/<handle>/status/<tweet_id>. It does not guess tweet IDs.
Does it delete facts that lack citations?
No. The skill says to flag facts without citations and not remove them.
How do I install citation-fixer?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is citation-fixer free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is citation-fixer safe to use?
It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to citation-fixer?
Similar skills: agentmemory-config, understand-knowledge, reports, forget.
