citation-fixer
Что он делает
Этот скилл просматривает страницы вашей базы знаний и проверяет, что у каждого факта есть понятная пометка об источнике. Он исправляет неправильно оформленные ссылки и сообщает, что осталось.
Когда использовать
- ✓Когда вы хотите убедиться, что у каждого факта в базе знаний есть источник.
- ✓Когда ссылки на страницах выглядят неаккуратно, неполно или непоследовательно.
- ✓Когда на пост или твит сослались без работающей ссылки.
Ссылка на скилл
https://github.com/garrytan/gbrain/blob/master/plugin/skills/citation-fixer/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Проверь страницы моей базы знаний на отсутствующие ссылки на источники и исправь оформление там, где это возможно.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент читает каждую страницу и ищет факты без источника, пропущенные даты или неверный формат. Он исправляет проблемы с форматом, которые может исправить, и перечисляет оставшиеся пробелы.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с 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
Частые вопросы
Придумывает ли он источники?
Нет. Он использует стандартный формат цитирования и добавляет ссылки только из данных, которые может найти.
Что он делает с твитами без ссылок?
Он ищет их через интеграцию с X и добавляет подходящий веб-адрес, когда это возможно.
Будет ли мне сводка?
Да. Он сообщает, сколько страниц проверено, сколько исправлено и где остались пробелы.
Подробности
Оригинальное описание автора
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
Популярность
- Звёзды на GitHub
- 31k
- Место в рейтинге
- #9293
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
gbrain
31kПозволяет агенту искать в общей базе знаний компании факты о людях, проектах и решениях и сохранять в ней долговременные заметки.
brain-ingest-gate
31kПроверяет новое содержимое по существующей базе знаний до добавления, чтобы избежать дубликатов и сначала разрешить именованные сущности.
brain-link-discipline
31kСледит, чтобы агент в том же сообщении приложил рабочую ссылку на каждую страницу базы знаний, о которой он сообщает, чтобы вы сразу могли её открыть.
brain-ops
31kДаёт агенту базовую рутину для базы знаний: сначала проверить имеющийся контекст, сохранять явные заметки с источником и связывать родственные страницы.
Похожие скиллы
obsidian-vault-maintainer
394kПомогает агенту поддерживать в порядке хранилище памяти, совместимое с Obsidian: рабочие вики-ссылки, единые свойства и безопасные автогенерируемые разделы.
wiki-maintainer
394kПомогает агенту вести вики памяти OpenClaw: страницы остаются повторяемыми, управляемые блоки защищены, а противоречия и пробелы проверяются.
obsidian
394kПозволяет агенту читать, искать, создавать и редактировать заметки, задачи, ссылки и свойства Obsidian с помощью официальной командной строки Obsidian.