Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 92
  • 34k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-fixer

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install citation-fixer in Claude Code

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

A

No 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 →

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.

citation-fixer Install

Add to stack

Loading.