Логотип Doc Cleanup

Doc Cleanup

Спільнота
aka-luan
doc-cleanup

Audit and clean Markdown documentation for context rot. Use when docs may contain completed-work logs, executed plans, stale claims, contradictions, dead paths, or drifted authorities, especially in agent-required reading.

Огляд

Видавецьaka-luan
Репозиторійdoc-cleanup
Назва навичкиdoc-cleanup
Зірки
47
Форки
1
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: aka-luan. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Doc Cleanup у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/aka-luan/doc-cleanup/tree/main/skills/doc-cleanup
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/aka-luan/doc-cleanup.git /tmp/doc-cleanup
mkdir -p .claude/skills
cp -r /tmp/doc-cleanup/skills/doc-cleanup .claude/skills/doc-cleanup
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Doc Cleanup в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Doc Cleanup, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Doc Cleanup не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Doc cleanup

Remove context rot from Markdown without erasing load-bearing rules or useful history. Treat every doc claim as a hypothesis and the repository as evidence.

Work in two passes: diagnose and report without editing, then execute only after the user approves the proposed cleanup. Approval to edit does not imply approval to commit.

1. Inventory the full scope

Enumerate every in-scope *.md file, excluding generated, dependency, VCS, and user-excluded paths. Record each file's line count and role:

  • entry: AGENTS.md, CLAUDE.md, or equivalent
  • required: an entry doc instructs agents to read it
  • reference: consulted conditionally
  • historical: retained for lookup, not current guidance

Follow the reading pointers in every entry doc. Weight findings by reading frequency: rot in required reading costs more than rot in an archive.

Inventory is complete when every in-scope Markdown file has a role and every entry-doc reading pointer is accounted for as resolved, dead, or external.

2. Diagnose without editing

Read every in-scope doc deeply enough to test it for these rot patterns:

  1. Completed-work logs — finished checklists, phase logs, implementation narratives, post-mortems, and verification transcripts presented as live guidance.
  2. Executed plans — shipped plans still written as intent, including superseded analysis and rejected options.
  3. Internal contradictions — competing values, corrections below stale tables, or dated addenda that reverse earlier guidance.
  4. Stale claims — references to renamed symbols, changed constants, wrong line numbers, or work described as unmerged after it landed.
  5. Dead paths — missing files, obsolete machine paths, moved repositories, or removed tools.
  6. Authority drift — a purported source of truth that no longer matches the implemented behavior or a later authoritative decision.

For each suspected hit, capture:

  • exact file and line location
  • the claim or content at issue
  • repository evidence from file lookup, search, configuration, tests, or Git history
  • confidence and any unresolved ambiguity
  • the smallest safe disposition: keep, correct, condense, archive, or banner

Code proves implemented behavior, not necessarily intended behavior. When a doc may define the intended contract, report the mismatch as unresolved authority drift unless repository evidence establishes which authority superseded it.

Mark load-bearing content that must survive: hard rules, active decisions, recurring traps, do-this guidance, and domain vocabulary. A trap remains current even when the story of discovering it is historical.

Diagnosis is complete when every inventoried file is either represented by at least one evidence-backed finding or explicitly marked clean, and every factual finding has been checked against repository evidence.

3. Report and stop

Present findings from highest to lowest reading frequency × misdirection risk. For each one, show the claim, evidence, consequence, and proposed disposition. Then give a per-file cleanup plan, list unresolved decisions separately, and state which load-bearing content will remain.

Stop for approval. The diagnostic pass must leave the worktree unchanged.

Reporting is complete when the user can approve, reject, or amend every proposed file change without additional investigation.

4. Execute the approved plan

Re-check each factual claim immediately before writing it. Apply only approved changes, using this per-file playbook:

  • Archive history that must remain conveniently discoverable. Put a verbatim copy or clearly bounded extract in docs/archive/ with a collision-resistant source-and-date name. Record its source path and Git blob or content hash in the cleanup report or a sidecar manifest, leaving verbatim content untouched. Verify a full-file archive against the captured pre-edit source; verify an extract against its recorded source bounds. Git history alone is sufficient when discoverability does not justify a live archive.
  • Rewrite live guidance as current facts. Add a short archive pointer when one was created. Derive every retained factual claim from current evidence, rather than carrying it forward unchecked.
  • Point to authorities. Name the owning schema, configuration, or source file instead of duplicating volatile values.
  • Condense completed work. Replace finished checklists with a short outcome; preserve open items in their original wording.
  • Preserve traps. Turn recurring gotchas into short imperative guidance before moving their historical narrative.
  • Banner unresolved drift. State the mismatch and the currently operative authority; avoid silently rewriting a contract whose ownership is unclear.
  • Repair entry docs. Fix dead reading pointers and stale feature claims, and keep the required-reading set minimal.

Execution is complete when every approved finding has a corresponding diff or a documented reason no change was needed, and every retained factual claim touched by the rewrite has fresh evidence.

5. Verify and hand off

Verify that:

  • every relative link in each touched file resolves
  • full-file archives match their captured pre-edit sources byte-for-byte, and extracts match their recorded source bounds
  • load-bearing content identified during diagnosis survives in live guidance
  • the diff contains only approved Markdown changes
  • no new contradiction was introduced across touched docs

Report the changed files, archive mappings, corrected contradictions, unresolved authority decisions, and verification performed. Offer a docs-only commit with a specific message; create it only when the user authorizes the commit.

The cleanup is complete when every approved finding is accounted for, all checks pass, and the user has a reviewable diff plus any remaining decisions.

Поширені запитання

Що робить навичка ШІ Doc Cleanup?

Audit and clean Markdown documentation for context rot. Use when docs may contain completed-work logs, executed plans, stale claims, contradictions, dead paths, or drifted authorities, especially in agent-required reading.

Навіщо використовувати Doc Cleanup у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Doc Cleanup — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Doc Cleanup у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/aka-luan/doc-cleanup/tree/main/skills/doc-cleanup. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Doc Cleanup?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Doc Cleanup?

Зі скількома забажаєте. У TypingMind ви можете використовувати Doc Cleanup із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Doc Cleanup?

Так. На GitHub цю навичку публікує aka-luan за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇