citation-fixer
Was er macht
Dieser Skill geht die Seiten in deinem Brain durch und sorgt dafür, dass jeder Fakt einen klaren Quellenvermerk hat. Er korrigiert falsch formatierte Angaben und meldet, was übrig bleibt.
Wann du ihn nutzt
- ✓Wenn du prüfen willst, dass jeder Fakt in deinem Brain eine Quelle hat.
- ✓Wenn Quellenangaben auf deinen Seiten unordentlich, unvollständig oder uneinheitlich sind.
- ✓Wenn auf einen Beitrag oder Tweet ohne funktionierenden Link verwiesen wird.
Link zum Skill
https://github.com/garrytan/gbrain/blob/master/plugin/skills/citation-fixer/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Prüfe meine Brain-Seiten auf fehlende Quellenangaben und korrigiere die Formatierung, wo es geht.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent liest jede Seite und sucht nach Fakten ohne Quelle, fehlenden Datumsangaben oder falschen Formaten. Formatfehler behebt er, wo möglich, und listet die verbleibenden Lücken auf.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Citation Fixer Skill
Convention: see conventions/quality.md for the canonical citation format every fix should match.
Output rule: all links MUST be deterministic (built from API data, not composed by LLM). See _output-rules.md.
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.
- (v0.25.1) Tweet / post references without URLs are resolved via
X API and patched with deterministic
https://x.com/<handle>/status/<id>links. - Results reported with counts (scanned, fixed, remaining).
Phases
- Scan pages. List pages and read each one, checking for inline
[Source: ...]citations. - Identify issues:
- Facts without any citation
- Citations missing date
- Citations missing source type
- Citations with wrong format
- (v0.25.1) Tweet references without
x.comURLs
- Fix format issues. Rewrite malformed citations to match
conventions/quality.md. - (v0.25.1) Resolve tweet references via the X API integration.
- Report results. Count: pages scanned, citations found, issues fixed, tweets resolved, remaining gaps.
Tweet resolution pipeline (v0.25.1 extension)
For each broken tweet reference, follow this chain. The actual API call
goes through whatever X integration the host has configured (typical
shape: a recipe under recipes/x-api/ with handle / search-all
endpoints).
Step 1: Identify broken references
Scan the page for patterns that indicate tweet references without URLs:
- Contains words like
tweeted,posted,said on X,RT,retweet,X post - Contains quoted text that looks like a tweet (short, punchy, often starts with a quote)
- Has
[Source: ... X/Twitter ...]without anx.comURL - References engagement metrics (likes, impressions) without a link
Step 2: Extract searchable content
From each broken reference, extract:
- The handle (if mentioned:
@<username>) - The quoted text (if available)
- The approximate date (often present in surrounding timeline entries)
Step 3: Search for the actual tweet
Use the host's X API integration. Query patterns:
# Handle + quoted text:
from:<handle> "<exact quote fragment>"
# Quoted text only:
"<exact quote fragment>"
# Original of a retweet:
"<exact quote>" -is:retweet
Step 4: Verify and extract metadata
Once a candidate is found:
- Confirm the text matches the quoted fragment.
- Pull the tweet id, author handle, engagement metrics (likes / RTs / impressions).
- Construct the URL:
https://x.com/<handle>/status/<tweet_id>.
Step 5: Patch the brain page
Replace the broken citation with a proper one:
Before:
"<quote fragment>" [Source: <some hand-wavy attribution>]
After:
"<full verified quote>" — <N> likes, <N> RTs, <N> impressions
[Source: [X/<handle>, YYYY-MM-DD](https://x.com/<handle>/status/<tweet_id>)]
Batch mode
When sweeping many pages:
Find candidate pages
# Pages mentioning tweets but with no x.com links
for f in $(find . -name "*.md" -not -path "./node_modules/*"); do
refs=$(grep -ci "tweet\|posted\|x post\|RT\|retweet\|said on X" "$f")
links=$(grep -c "x.com/.*/status/" "$f")
if [ "$refs" -gt 2 ] && [ "$links" -eq 0 ]; then
echo "$f"
fi
done
Priority order
- Recently created / updated pages — fresh broken refs are easiest to resolve while context is fresh.
- High-traffic pages (frequent reads / writes from other skills).
- Everything else — bulk cleanup over time.
Rate limiting
- X API: respect the host's tier limits; don't hammer.
- Target ~50 pages per batch run.
- 1-3 API calls per page (search + verify).
- Batch-commit every 10-20 pages so a partial failure doesn't lose progress.
Output format
Citation Audit Report
=====================
Pages scanned: N
Citations found: N
Issues fixed: N
Tweet links resolved: N
Remaining gaps: N (pages with uncitable facts)
When it fails
Follow the agent operator protocol for any gbrain error code, exit code, [AGENT] block or notice block. Specific to this skill:
put_pagereturnsrevision_conflictmid-batch: re-read that page, re-apply only the citation fix, and continue; never ove
Häufige Fragen
Erfindet er Quellen?
Nein. Er verwendet das Standardformat für Quellenangaben und trägt Links nur aus Daten ein, die er nachschlagen kann.
Wie geht er mit Tweets ohne Link um?
Er sucht sie über die X-Integration nach und ergänzt die passende Web-Adresse, wenn er sie findet.
Bekomme ich eine Zusammenfassung?
Ja. Er meldet, wie viele Seiten geprüft und korrigiert wurden und wie viele noch Lücken haben.
Details
Originalbeschreibung des Autors
Audit and fix citation formatting across brain pages. Ensures every fact has an inline [Source: ...] citation matching the standard format. Extended in v0.25.1: scans for broken tweet/post references that lack actual URLs and resolves them via the host's X / Twitter API integration.
repo: garrytan/gbrain
Beliebtheit
- GitHub-Sterne
- 31k
- Platz im Ranking
- #9293
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
gbrain
31kLässt deinen Agenten in einem gemeinsamen Firmenwissens-Gehirn nach Fakten zu Personen, Projekten und Entscheidungen suchen und dauerhafte Notizen darin speichern.
brain-ingest-gate
31kPrüft neue Inhalte gegen ein bestehendes Wissens-Gehirn, bevor sie hinzugefügt werden, um Dubletten zu vermeiden und benannte Entitäten vorab zu klären.
brain-link-discipline
31kSorgt dafür, dass dein Agent jede Gehirn-Seite, über die er berichtet, im selben Beitrag mit einem funktionierenden Link versieht, damit du sie sofort öffnen kannst.
brain-ops
31kGibt deinem Agenten die Grundroutine für ein Wissens-Gehirn: zuerst vorhandenen Kontext prüfen, ausdrückliche Notizen mit Quelle speichern und verwandte Seiten verlinken.
Ähnliche Skills
obsidian-vault-maintainer
394kHilft deinem Agenten, einen Obsidian-tauglichen Gedächtnis-Vault ordentlich zu halten, mit funktionierenden Wiki-Links, einheitlichen Eigenschaften und sicheren generierten Abschnitten.
wiki-maintainer
394kHilft deinem Agenten, ein OpenClaw-Gedächtnis-Wiki mit wiederholbaren Seiten, sicheren verwalteten Blöcken und Prüfungen auf Widersprüche oder Lücken zu pflegen.
obsidian
394kLässt deinen Agenten Obsidian-Notizen, Aufgaben, Links und Eigenschaften mit der offiziellen Obsidian-Kommandozeile lesen, durchsuchen, erstellen und bearbeiten.