repo-docs
ユーザーが「リポジトリのドキュメント作成」「APIドキュメントの記述」「アーキテクチャ設計書の作成」などを依頼した場合に、リポジトリ全体のドキュメント生成やコード分析、複数リポジトリを跨いだ連携に関するドキュメント作成を支援するSkill。
📜 元の英語説明(参考)
This skill should be used when the user asks to "generate repository documentation", "create a README", "document API", "write architecture docs", "add CONTRIBUTING guide", "update repo docs", "document codebase", or mentions repository documentation, codebase analysis, or cross-repository integration documentation.
🇯🇵 日本人クリエイター向け解説
ユーザーが「リポジトリのドキュメント作成」「APIドキュメントの記述」「アーキテクチャ設計書の作成」などを依頼した場合に、リポジトリ全体のドキュメント生成やコード分析、複数リポジトリを跨いだ連携に関するドキュメント作成を支援するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o repo-docs.zip https://jpskill.com/download/17325.zip && unzip -o repo-docs.zip && rm repo-docs.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17325.zip -OutFile "$d\repo-docs.zip"; Expand-Archive "$d\repo-docs.zip" -DestinationPath $d -Force; ri "$d\repo-docs.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
repo-docs.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
repo-docsフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 5
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
リポジトリドキュメント
リポジトリ間の統合ポイントと依存関係を認識し、包括的で自己完結型のコードリポジトリのドキュメントを生成します。
目的
README ファイル、API ドキュメント、貢献ガイド、アーキテクチャドキュメントを含むリポジトリドキュメントを作成および維持します。生成される各ドキュメントは自己完結型でありながら、リポジトリが他のリポジトリ、サービス、および外部依存関係とどのように相互作用するかを明示的に文書化します。
使用するタイミング
このスキルは、以下の場合にトリガーします。
- ユーザーが「このリポジトリのドキュメントを生成する」ように依頼した場合
- ユーザーが「README を作成/更新する」、「API を文書化する」、「アーキテクチャドキュメントを作成する」と述べた場合
- ユーザーが「このリポジトリが他のリポジトリにどのように接続するか」について質問した場合
- ユーザーが「CONTRIBUTING ガイド」または「セットアップドキュメント」を要求した場合
- ユーザーが他のリポジトリとの統合ポイントを文書化したい場合
ドキュメントのワークフロー
フェーズ 1: リポジトリの分析
ドキュメントを生成する前に、コードベースを分析して以下を理解します。
-
リポジトリの構造
Globを使用して、主要なファイル (README.md、package.json、pyproject.toml、go.mod、Cargo.toml、pom.xmlなど) を検出します。- メインのソースディレクトリ (
src/、lib/、app/、internal/など) を特定します。 - 構成ファイル (
.env.example、docker/、k8s/など) を見つけます。 - 既存のドキュメント (
docs/、*.mdファイル) を特定します。
-
リポジトリ間の統合の発見
- 他のリポジトリを参照するインポート/リクワイアを検索します (
Grepを使用して一般的なパターンを検索します)。 - 内部サービスを指す API クライアントライブラリを探します。
- 共有の依存関係またはモノレポの参照を見つけます。
- 外部サービス統合 (データベース、API、メッセージキュー) を特定します。
.gitmodules、workspace宣言、またはサブパッケージの参照を確認します。
- 他のリポジトリを参照するインポート/リクワイアを検索します (
-
テクノロジーの検出
- 主要なプログラミング言語を特定します。
- フレームワークと主要な依存関係を見つけます。
- ビルドシステムとツールを検出します。
- テストフレームワークと CI/CD 構成をメモします。
フェーズ 2: ドキュメントの生成
ドキュメントの種類ごとに、examples/ の構造化されたテンプレートに従います。テンプレートには以下が含まれます。
- プレースホルダーコンテンツを含むセクションヘッダー
- 統合ポイントの特定のプレースホルダー
- リポジトリ間の依存関係セクション
重要な原則: 生成されるすべてのドキュメントには、以下を明示的に文書化する「統合」または「関連リポジトリ」セクションを含める必要があります。
- このリポジトリが依存する他のリポジトリ
- このリポジトリが他のリポジトリによってどのように消費されるか
- 外部サービスと依存関係
- リポジトリ間のデータフロー
フェーズ 3: 既存のドキュメントの更新
既存のドキュメントを更新する場合:
Readを使用して現在のドキュメントを読み取ります。- 現在のコードベースの状態と比較します。
- ギャップ (欠落している機能、古い統合、古い依存関係) を特定します。
Editを使用して特定のセクションを更新します。- 既存の口調とフォーマットを適切な場所で保持します。
- 新しく発見された統合ポイントを追加します。
ドキュメントの種類
README.md
リポジトリの主要なエントリポイント。examples/README-template.md を開始点として使用します。
必要なセクション:
- プロジェクトのタイトルと簡単な説明
- 他のリポジトリとの統合ポイント
- クイックスタート/インストール
- 使用例
- API/CLI リファレンス (詳細なドキュメントへのリンクがある場合)
- 貢献 (CONTRIBUTING.md へのリンク)
- ライセンス
API ドキュメント
パブリック API、関数、クラス、およびエンドポイントを文書化します。examples/API-template.md を使用します。
必要なセクション:
- 概要
- 認証/認可
- シグネチャ付きのエンドポイント/関数
- リクエスト/レスポンスの例
- エラー処理
- レート制限 (該当する場合)
- 他のサービスとの統合ポイント
CONTRIBUTING.md
貢献者のためのガイド。examples/CONTRIBUTING-template.md を使用します。
必要なセクション:
- 前提条件 (クローンする他のリポジトリ、インストールするツール)
- 開発環境のセットアップ
- テストの実行
- コーディングスタイルガイドライン
- プルリクエストのプロセス
- 関連リポジトリとその役割
ARCHITECTURE.md
高レベルの設計と統合に関するドキュメント。examples/ARCHITECTURE-template.md を使用します。
必要なセクション:
- システム概要
- コンポーネント図 (口頭で説明するか、Mermaid を使用)
- リポジトリ間のアーキテクチャ
- リポジトリ間のデータフロー
- 設計上の決定とその根拠
- スケーリングに関する考慮事項
INTEGRATIONS.md (オプションですが推奨)
リポジトリ間の関係専用のドキュメント。examples/INTEGRATIONS-template.md を使用します。
セクション:
- 上流の依存関係 (これが依存するリポジトリ/サービス)
- 下流のコンシューマー (これに依存するリポジトリ/サービス)
- 兄弟リポジトリ (同じエコシステム内の関連リポジトリ)
- 外部サービス
- サービス間の通信プロトコル
統合発見のガイドライン
統合ポイントをスキャンするときは、以下を検索します。
| パターン | 示すもの |
|---|---|
from @org/ |
内部パッケージ/リポジトリのインポート (JS/TS) |
import.*internal |
内部インポート (Python/Java) |
github.com/org/ |
他のリポジトリへの Go モジュール参照 |
client.*[Aa]pi |
他のサービスへの API クライアント |
restTemplate |
REST クライアントの使用 (Java) |
fetch( または axios |
外部サービスへの HTTP 呼び出し |
messaging: |
Spring Cloud/Sidecar 統合 |
pom.xml <artifactId> |
Maven の依存関係 |
scripts/find-integration-points.py を使用して検出を自動化します。
ライティングのガイドライン
1. 統合について具体的に記述する
- リポジトリを明示的に名前で指定する: 「認証には
user-serviceリポジトリに依存します」 - 関係を説明する: 「このリポジトリは Kafka 経由で
event-busからイベントを消費します」 - 可能な場合は、実際のリポジトリにリンクする
2. 自己完結型でありながら接続されている
- 各ドキュメントは単独で存在する必要があります
- 他のドキュメントとリポジトリを明示的に相互参照する
- より広いエコシステムに慣れていない人のために十分なコンテキストを含める
3. 簡潔でスキャンしやすい
- リストと手順には、段落ではなく箇条書きを使用する
- 本質的なことから始める - 最も重要な情報を最初に配置する
- 参照資料 (構成、コマンド、オプ
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Repository Documentation
Generate comprehensive, self-contained documentation for code repositories with awareness of cross-repository integration points and dependencies.
Purpose
Create and maintain repository documentation that includes README files, API documentation, contributing guides, and architecture documents. Each generated document is self-contained while explicitly documenting how the repository interacts with other repositories, services, and external dependencies.
When to Use
Trigger this skill when:
- User asks to "generate documentation for this repo"
- User mentions "create/update README", "document API", "write architecture docs"
- User asks about "how this repo connects to other repos"
- User requests "CONTRIBUTING guide" or "setup documentation"
- User wants to document integration points with other repositories
Documentation Workflow
Phase 1: Repository Analysis
Before generating documentation, analyze the codebase to understand:
-
Repository Structure
- Use
Globto discover key files:README.md,package.json,pyproject.toml,go.mod,Cargo.toml,pom.xml, etc. - Identify main source directories (
src/,lib/,app/,internal/, etc.) - Find configuration files (
.env.example,docker/,k8s/, etc.) - Locate existing documentation (
docs/,*.mdfiles)
- Use
-
Cross-Repository Integration Discovery
- Search for imports/requires referencing other repos (use
Grepfor common patterns) - Look for API client libraries pointing to internal services
- Find shared dependencies or monorepo references
- Identify external service integrations (databases, APIs, message queues)
- Check for
.gitmodules,workspacedeclarations, or subpackage references
- Search for imports/requires referencing other repos (use
-
Technology Detection
- Identify primary programming language(s)
- Find frameworks and major dependencies
- Detect build systems and tooling
- Note testing frameworks and CI/CD configuration
Phase 2: Document Generation
For each document type, follow the structured templates in examples/. Templates contain:
- Section headers with placeholder content
- Specific placeholders for integration points
- Cross-repository dependency sections
Key Principle: Every generated document must include an "Integrations" or "Related Repositories" section that explicitly documents:
- Which other repositories this repo depends on
- How this repo is consumed by other repositories
- External services and dependencies
- Data flow between repositories
Phase 3: Existing Document Updates
When updating existing documentation:
- Read the current document using
Read - Compare against current codebase state
- Identify gaps (missing features, outdated integrations, stale dependencies)
- Use
Editto update specific sections - Preserve existing voice and formatting where appropriate
- Add newly discovered integration points
Document Types
README.md
The primary entry point for the repository. Use examples/README-template.md as a starting point.
Required sections:
- Project title and brief description
- Integration points with other repositories
- Quick start / Installation
- Usage examples
- API/CLI reference (link to detailed docs if separate)
- Contributing (link to CONTRIBUTING.md)
- License
API Documentation
Document public APIs, functions, classes, and endpoints. Use examples/API-template.md.
Required sections:
- Overview
- Authentication/Authorization
- Endpoints/Functions with signatures
- Request/response examples
- Error handling
- Rate limits (if applicable)
- Integration points with other services
CONTRIBUTING.md
Guide for contributors. Use examples/CONTRIBUTING-template.md.
Required sections:
- Prerequisites (other repos to clone, tools to install)
- Development setup
- Running tests
- Code style guidelines
- Pull request process
- Related repositories and their roles
ARCHITECTURE.md
High-level design and integration documentation. Use examples/ARCHITECTURE-template.md.
Required sections:
- System overview
- Component diagram (describe verbally or use Mermaid)
- Cross-repository architecture
- Data flow between repositories
- Design decisions and rationale
- Scaling considerations
INTEGRATIONS.md (Optional but Recommended)
Dedicated document for cross-repository relationships. Use examples/INTEGRATIONS-template.md.
Sections:
- Upstream dependencies (repos/services this depends on)
- Downstream consumers (repos/services that depend on this)
- Sibling repositories (related repos in the same ecosystem)
- External services
- Communication protocols between services
Integration Discovery Guidelines
When scanning for integration points, search for:
| Pattern | Indicates |
|---|---|
from @org/ |
Internal package/repo imports (JS/TS) |
import.*internal |
Internal imports (Python/Java) |
github.com/org/ |
Go module references to other repos |
client.*[Aa]pi |
API clients to other services |
restTemplate |
REST client usage (Java) |
fetch( or axios |
HTTP calls to external services |
messaging: |
Spring Cloud/Sidecar integrations |
pom.xml <artifactId> |
Maven dependencies |
Use scripts/find-integration-points.py to automate discovery.
Writing Guidelines
1. Be Specific About Integrations
- Name the repositories explicitly: "Depends on
user-servicerepo for authentication" - Explain the relationship: "This repo consumes events from
event-busvia Kafka" - Link to the actual repositories when possible
2. Self-Contained Yet Connected
- Each document should stand alone
- Cross-reference other documents and repositories explicitly
- Include enough context for someone new to the broader ecosystem
3. Concise and Scannable
- Use bullet points over paragraphs for lists and procedures
- Lead with the essential - put most important information first
- Use tables for reference material (configs, commands, options)
- Code over prose - show examples instead of lengthy explanations
- Collapse details - use collapsible sections or "expand to read more" for depth
- One concept per section - avoid mixing multiple topics
- Link, don't duplicate - reference existing docs instead of repeating
- Target reading time - a README should take ~3-5 minutes to scan
4. Keep Examples Current
- Use actual code snippets from the repository
- Verify commands work before including them
- Update version numbers and dependency references
- Keep examples minimal - show only what's needed to understand
5. Progressive Detail
- Lead with high-level overview
- Link to detailed documentation
- Provide quick paths to "just make it work" and deep dives
Tools and Utilities
Scripts
Use scripts in scripts/ for automation:
find-integration-points.py- Scan codebase for references to other repositoriesanalyze-repo-structure.py- Generate summary of repository structure and dependencies
Execute scripts without reading into context:
python skills/repo-docs/scripts/find-integration-points.py /path/to/repo
References
Consult references/ for detailed guidance:
references/best-practices.md- Repository documentation standardsreferences/integration-patterns.md- Common integration patterns and how to document themreferences/tech-detection.md- Technology detection patterns
Additional Resources
Reference Files
For detailed guidance beyond this core workflow:
references/best-practices.md- Industry standards for repository documentationreferences/integration-patterns.md- Documenting microservices, monorepos, and distributed systemsreferences/tech-detection.md- Patterns for identifying technologies and frameworks
Example Templates
Templates in examples/ provide starting points:
examples/README-template.md- Standard README structure with integrations sectionexamples/API-template.md- API documentation templateexamples/CONTRIBUTING-template.md- Contributor guide templateexamples/ARCHITECTURE-template.md- Architecture documentation templateexamples/INTEGRATIONS-template.md- Dedicated integrations document
Scripts
Utilities in scripts/:
scripts/find-integration-points.py- Automated integration discoveryscripts/analyze-repo-structure.py- Repository structure analysis
Quality Checklist
Before finalizing documentation, verify:
- [ ] All cross-repository dependencies are documented
- [ ] Integration points are explicitly named and described
- [ ] Quick start instructions actually work
- [ ] Code examples are from the actual codebase
- [ ] Links to other repos are included where applicable
- [ ] External service dependencies are listed
- [ ] Setup instructions include dependencies on other repos
- [ ] Document is readable without access to other repositories
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (9,353 bytes)
- 📎 references/integration-patterns.md (5,049 bytes)
- 📎 references/tech-detection.md (5,604 bytes)
- 📎 scripts/analyze-repo-structure.py (8,801 bytes)
- 📎 scripts/find-integration-points.py (8,280 bytes)