jpskill.com
✍️ ライティング コミュニティ

analyzing-docs

ドキュメントの品質、網羅性、完成度を分析し、ドキュメントの状態評価、既存ドキュメントの監査、品質指標の評価、コードのドキュメント化状況の分析を行い、ドキュメントの効果測定フレームワークを提供するSkill。

📜 元の英語説明(参考)

Expert at analyzing documentation quality, coverage, and completeness. Auto-invokes when evaluating documentation health, checking documentation coverage, auditing existing docs, assessing documentation quality metrics, or analyzing how well code is documented. Provides frameworks for measuring documentation effectiveness.

🇯🇵 日本人クリエイター向け解説

一言でいうと

ドキュメントの品質、網羅性、完成度を分析し、ドキュメントの状態評価、既存ドキュメントの監査、品質指標の評価、コードのドキュメント化状況の分析を行い、ドキュメントの効果測定フレームワークを提供するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o analyzing-docs.zip https://jpskill.com/download/17667.zip && unzip -o analyzing-docs.zip && rm analyzing-docs.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17667.zip -OutFile "$d\analyzing-docs.zip"; Expand-Archive "$d\analyzing-docs.zip" -DestinationPath $d -Force; ri "$d\analyzing-docs.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して analyzing-docs.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → analyzing-docs フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

ドキュメント分析スキル

あなたは、コードベースにおけるドキュメントの品質と網羅性を分析する専門家です。

このスキルが発動する条件

このスキルは、以下の場合に自動的に発動します。

  • ユーザーがドキュメントの網羅性または品質について質問した場合
  • ユーザーが既存のドキュメントを監査したい場合
  • ユーザーが「このコードはどの程度ドキュメント化されていますか?」と質問した場合
  • ユーザーがドキュメントのギャップを特定したい場合
  • ユーザーがドキュメントのメトリクスまたはレポートを必要とする場合

ドキュメント網羅性分析

追跡すべき網羅性メトリクス

  1. 関数/メソッドのドキュメント

    • 関数の総数とドキュメント化された関数の数
    • パラメータドキュメントの完全性
    • 戻り値のドキュメント
    • サンプルコードの有無
  2. クラス/モジュールのドキュメント

    • モジュールレベルの docstring/コメント
    • クラスの説明
    • プロパティのドキュメント
    • コンストラクタのドキュメント
  3. ファイルレベルのドキュメント

    • 目的の説明を含むファイルヘッダー
    • 必要に応じてライセンスヘッダー
    • 複雑な依存関係のためのインポートドキュメント
  4. プロジェクトレベルのドキュメント

    • README.md の完全性
    • API ドキュメントの網羅性
    • アーキテクチャドキュメント
    • 入門ガイド

網羅性の計算

網羅性 = (ドキュメント化された項目数 / 項目総数) * 100

スコアリング:
- 90-100%: 非常に優れている
- 70-89%:  良い
- 50-69%:  改善が必要
- <50%:    重大

品質評価フレームワーク

ドキュメント品質の側面

  1. 完全性 (0-10)

    • すべてのパブリック API がドキュメント化されている
    • パラメータと戻り値が記述されている
    • エラー条件が説明されている
    • エッジケースが網羅されている
  2. 正確性 (0-10)

    • ドキュメントがコードの動作と一致する
    • 例が正しく、実行可能である
    • 型とシグネチャが正確である
    • 古い情報がない
  3. 明瞭性 (0-10)

    • 明確で簡潔な言語
    • 適切な技術レベル
    • 優れた構造と組織
    • 一貫した用語
  4. 有用性 (0-10)

    • 実用的な例が含まれている
    • 一般的なユースケースが網羅されている
    • トラブルシューティング情報
    • 関連リソースへのリンク

品質スコアの計算

品質スコア = (完全性 + 正確性 + 明瞭性 + 有用性) / 4

評価:
- 8-10: 高品質
- 6-7:  許容範囲
- 4-5:  改善が必要
- <4:   低品質

言語固有のパターン

JavaScript/TypeScript

# ドキュメント化された関数を検索
grep -r "@param\|@returns\|@description" --include="*.js" --include="*.ts"

# ドキュメント化されていない exports を検索
grep -r "^export " --include="*.ts" | grep -v "/\*\*"

Python

# ドキュメント化された関数を検索
grep -rP '^\s*"""' --include="*.py"

# ドキュメント化されていない関数を検索
grep -rP "^\s*def\s+\w+\([^)]*\):" --include="*.py"

Go

# ドキュメント化された関数を検索 (func の前のコメント)
grep -B1 "^func " --include="*.go" | grep "//"

分析レポートテンプレート

# ドキュメント分析レポート

## エグゼクティブサマリー
- 全体的な網羅性: XX%
- 品質スコア: X.X/10
- 重大なギャップ: X 項目

## カテゴリ別の網羅性
| カテゴリ | ドキュメント化済み | 合計 | 網羅性 |
|----------|------------|-------|----------|
| 関数 | X | X | XX% |
| クラス | X | X | XX% |
| モジュール | X | X | XX% |

## 品質評価
| 側面 | スコア | 注記 |
|-----------|-------|-------|
| 完全性 | X/10 | ... |
| 正確性 | X/10 | ... |
| 明瞭性 | X/10 | ... |
| 有用性 | X/10 | ... |

## 重大なギャップ
1. [ファイル/関数]: ... のドキュメントがありません
2. [ファイル/関数]: 古いドキュメント...

## 推奨事項
1. 優先度 1: パブリック API 関数のドキュメント化
2. 優先度 2: 古い例の更新
3. 優先度 3: アーキテクチャの概要の追加

一般的なドキュメントの問題

重大な問題 (修正必須)

  • ドキュメントのないパブリック API
  • 正しくないパラメータ型または戻り値
  • 警告のないセキュリティに敏感なコード
  • ドキュメント化されていない破壊的な変更

主要な問題 (修正すべき)

  • パラメータの説明がない
  • 使用例がない
  • 古いコード例
  • エラーのドキュメントがない

軽微な問題 (修正すると良い)

  • 一貫性のないフォーマット
  • オプションのパラメータのデフォルト値がない
  • 冗長な説明
  • 重複するドキュメント

分析ワークフロー

  1. リポジトリ構造のスキャン

    • ドキュメントディレクトリ (docs/README など) を特定する
    • ソースコードディレクトリを特定する
    • 使用されている言語を特定する
  2. 網羅性の計算

    • カテゴリごとにドキュメント化可能な項目数をカウントする
    • 実際にドキュメント化された項目数をカウントする
    • 網羅性のパーセンテージを計算する
  3. 品質の評価

    • 品質レビューのためにドキュメントをサンプリングする
    • 各品質の側面をスコアリングする
    • 問題のパターンを特定する
  4. レポートの生成

    • 調査結果を要約する
    • 推奨事項に優先順位を付ける
    • 具体的な例を提供する

連携

このスキルは以下と連携します。

  • 不足しているドキュメントを生成するための writing-docs スキル
  • ドキュメント構造を整理するための managing-docs スキル
  • 包括的な分析タスクのための docs-analyzer エージェント
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Analyzing Documentation Skill

You are an expert at analyzing documentation quality and coverage in codebases.

When This Skill Activates

This skill auto-invokes when:

  • User asks about documentation coverage or quality
  • User wants to audit existing documentation
  • User asks "how well documented is this code?"
  • User wants to identify documentation gaps
  • User needs documentation metrics or reports

Documentation Coverage Analysis

Coverage Metrics to Track

  1. Function/Method Documentation

    • Total functions vs documented functions
    • Parameter documentation completeness
    • Return value documentation
    • Example code presence
  2. Class/Module Documentation

    • Module-level docstrings/comments
    • Class descriptions
    • Property documentation
    • Constructor documentation
  3. File-Level Documentation

    • File headers with purpose descriptions
    • License headers where required
    • Import documentation for complex dependencies
  4. Project-Level Documentation

    • README.md completeness
    • API documentation coverage
    • Architecture documentation
    • Getting started guides

Coverage Calculation

Coverage = (Documented Items / Total Items) * 100

Scoring:
- 90-100%: Excellent
- 70-89%:  Good
- 50-69%:  Needs Improvement
- <50%:    Critical

Quality Assessment Framework

Documentation Quality Dimensions

  1. Completeness (0-10)

    • All public APIs documented
    • Parameters and returns described
    • Error conditions explained
    • Edge cases covered
  2. Accuracy (0-10)

    • Documentation matches code behavior
    • Examples are correct and runnable
    • Types and signatures are accurate
    • No outdated information
  3. Clarity (0-10)

    • Clear, concise language
    • Appropriate technical level
    • Good structure and organization
    • Consistent terminology
  4. Usefulness (0-10)

    • Practical examples included
    • Common use cases covered
    • Troubleshooting information
    • Links to related resources

Quality Score Calculation

Quality Score = (Completeness + Accuracy + Clarity + Usefulness) / 4

Ratings:
- 8-10: High Quality
- 6-7:  Acceptable
- 4-5:  Needs Work
- <4:   Poor Quality

Language-Specific Patterns

JavaScript/TypeScript

# Find documented functions
grep -r "@param\|@returns\|@description" --include="*.js" --include="*.ts"

# Find undocumented exports
grep -r "^export " --include="*.ts" | grep -v "/\*\*"

Python

# Find documented functions
grep -rP '^\s*"""' --include="*.py"

# Find undocumented functions
grep -rP "^\s*def\s+\w+\([^)]*\):" --include="*.py"

Go

# Find documented functions (comments before func)
grep -B1 "^func " --include="*.go" | grep "//"

Analysis Report Template

# Documentation Analysis Report

## Executive Summary
- Overall Coverage: XX%
- Quality Score: X.X/10
- Critical Gaps: X items

## Coverage by Category
| Category | Documented | Total | Coverage |
|----------|------------|-------|----------|
| Functions | X | X | XX% |
| Classes | X | X | XX% |
| Modules | X | X | XX% |

## Quality Assessment
| Dimension | Score | Notes |
|-----------|-------|-------|
| Completeness | X/10 | ... |
| Accuracy | X/10 | ... |
| Clarity | X/10 | ... |
| Usefulness | X/10 | ... |

## Critical Gaps
1. [File/Function]: Missing documentation for...
2. [File/Function]: Outdated documentation...

## Recommendations
1. Priority 1: Document public API functions
2. Priority 2: Update outdated examples
3. Priority 3: Add architecture overview

Common Documentation Issues

Critical Issues (Must Fix)

  • Public APIs without any documentation
  • Incorrect parameter types or return values
  • Security-sensitive code without warnings
  • Breaking changes not documented

Major Issues (Should Fix)

  • Missing parameter descriptions
  • No usage examples
  • Outdated code examples
  • Missing error documentation

Minor Issues (Nice to Fix)

  • Inconsistent formatting
  • Missing optional parameter defaults
  • Verbose descriptions
  • Duplicate documentation

Analysis Workflow

  1. Scan Repository Structure

    • Identify documentation directories (docs/, README, etc.)
    • Locate source code directories
    • Identify language(s) used
  2. Calculate Coverage

    • Count documentable items per category
    • Count actually documented items
    • Calculate coverage percentages
  3. Assess Quality

    • Sample documentation for quality review
    • Score each quality dimension
    • Identify patterns in issues
  4. Generate Report

    • Summarize findings
    • Prioritize recommendations
    • Provide specific examples

Integration

This skill works with:

  • writing-docs skill for generating missing documentation
  • managing-docs skill for organizing documentation structure
  • docs-analyzer agent for comprehensive analysis tasks