Doc Gapのロゴ

Doc Gap

組織
opendatahub-io
doc-gap

Use this skill to analyze context sufficiency for documentation generation. Reads workspace/context-package.json and produces workspace/gap-report.json with severity-rated gaps and a proceed/gather-more/stop recommendation.

概要

公開者opendatahub-io
リポジトリai-helpers
スキル名doc-gap
スター
39
フォーク
76
同梱ファイル
1
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

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

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/opendatahub-io/ai-helpers.git /tmp/ai-helpers
mkdir -p .claude/skills
cp -r /tmp/ai-helpers/plugins/odh-documentation/skills/doc-gap .claude/skills/doc-gap
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

doc-gap

Assess whether the gathered context is sufficient to produce quality documentation.

Prerequisites

workspace/context-package.json must exist (produced by doc-gather).

Parse arguments

$ARGUMENTS optionally contains a component name to focus the analysis on. If empty, analyze all components found in the context package.

Input validation:

  • If a component name is provided, validate it against the component list in workspace/context-package.json.
  • Accept only exact matches against known component names.
  • If the component name is not found, halt with a clear error and do not run LLM assessment.

Step 1: Read context package

Read workspace/context-package.json and extract:

  • Ticket metadata (summary, components, fix_versions)
  • List of gathered context files with their source types
  • Product configuration (docs conventions)

Step 2: Deterministic coverage checks

Perform these checks without LLM judgment:

  1. Component coverage: For each component in the ticket, check if at least one context file from that component's repo exists.
  2. Documentation existence: Check if existing documentation files are present in the context.
  3. API reference availability: If the ticket involves API changes, check for CRD type definitions or API spec files.
  4. Source code presence: Check if implementation source code is included.
  5. Architecture docs: Check for architecture context files.

Record each check as a finding with pass/fail status.

Step 3: LLM assessment

Read the gap analysis prompt from ${CLAUDE_SKILL_DIR}/prompts/gap-analysis.md.

Construct an LLM prompt combining:

  • The gap analysis prompt template
  • Ticket metadata from the context package
  • Summary of gathered files (file paths, source types, relevance scores)
  • Content snippets from the highest-scored files (first 500 chars each, up to 20 files), after deterministic secret/PII redaction
  • Results of deterministic checks from Step 2

Before prompt assembly, apply deterministic redaction to all snippets:

  • Detect and mask secrets (API keys, tokens, passwords, private keys, kubeconfig credentials) with consistent placeholders (e.g., <REDACTED_TOKEN_1>).
  • Mask PII fields (emails, phone numbers) unless explicitly required.
  • Record redaction statistics (number of snippets scanned, items redacted by type) for inclusion in the gap report.

Ask the LLM to assess:

  • Is the context sufficient to write accurate docs?
  • What specific information is missing?
  • What is the recommendation: proceed, gather-more, or stop?

Step 4: Synthesize findings

Combine deterministic check results with LLM assessment into a unified gap report.

Step 5: Write gap report

Write workspace/gap-report.json with this structure:

json
{
    "recommendation": "proceed",
    "confidence": 0.82,
    "summary": "Context is sufficient for basic documentation...",
    "deterministic_checks": [
        {
            "check": "component_coverage",
            "status": "pass",
            "details": "Found context for 2/2 ticket components"
        }
    ],
    "gaps": [
        {
            "severity": "medium",
            "category": "examples",
            "description": "No sample YAML configurations found",
            "impact": "Documentation will lack concrete examples",
            "suggestion": "Check component repo for example/ directory"
        }
    ],
    "existing_coverage": [
        {
            "topic": "Model serving overview",
            "source": "modules/serving/pages/con_model-serving.adoc",
            "quality": "sufficient"
        }
    ],
    "analyzed_at": "2026-04-14T10:35:00Z"
}

Schema requirements:

  • Required keys: recommendation, confidence, summary, deterministic_checks, gaps, existing_coverage, analyzed_at.
  • recommendation MUST be one of: proceed, gather-more, stop.
  • confidence MUST be a float in [0.0, 1.0].
  • If schema validation fails, halt and return an error instead of writing a partial report.

Output

Primary: workspace/gap-report.json Report to caller: recommendation, confidence score, number of gaps by severity.

Gotchas

  • The workspace/context-package.json file must already exist (produced by doc-gather) — this skill will not create it.
  • Component names must exactly match entries in the context package; partial or fuzzy matches are rejected.
  • Snippets are redacted for secrets and PII before LLM assessment, so redaction artifacts in the gap report are expected, not errors.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Doc Gap」では何ができますか?

Use this skill to analyze context sufficiency for documentation generation. Reads workspace/context-package.json and produces workspace/gap-report.json with severity-rated gaps and a proceed/gather-more/stop recommendation.

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

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

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

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-documentation/skills/doc-gapを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

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

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

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

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

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

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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