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でも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    aka-luanがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Doc Cleanup」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/aka-luan/doc-cleanup/tree/main/skills/doc-cleanup
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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で使用

TypingMindのチャットでDoc Cleanupを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にDoc Cleanupを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Doc Cleanupは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じ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.

よくある質問

AIスキル「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.

TypingMindでDoc Cleanupを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Doc Cleanupはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDoc Cleanupをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/aka-luan/doc-cleanup/tree/main/skills/doc-cleanupを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Doc Cleanupを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Doc Cleanupで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDoc Cleanupを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Doc Cleanup」は無料ですか?

はい。aka-luanがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇