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

docs-sources

ドキュメントプラットフォームの知識や取得戦略を持ち、新しいドキュメントソースの追加、取得方法の決定、ドキュメントフレームワークの検出、ドキュメントレジストリの設定などを行う際に活用するSkill。

📜 元の英語説明(参考)

Knowledge of documentation platforms and fetching strategies. Use when adding new documentation sources, determining fetch strategy for a docs site, detecting doc frameworks, or configuring the docs registry.

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

一言でいうと

ドキュメントプラットフォームの知識や取得戦略を持ち、新しいドキュメントソースの追加、取得方法の決定、ドキュメントフレームワークの検出、ドキュメントレジストリの設定などを行う際に活用するSkill。

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

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

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

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

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

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して docs-sources.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → docs-sources フォルダができる
  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 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

ドキュメントソース Skill

ドキュメントプラットフォームを理解し、それぞれのプラットフォームから効率的にコンテンツを取得する方法を理解します。20以上のプラットフォームとフレームワークをサポートします。

変数

変数 デフォルト 説明
PREFER_LLMSTXT true 他の戦略の前に llms.txt を確認します
PREFER_GITHUB true ウェブクローリングよりも生の GitHub を優先します
BROWSER_FALLBACK true curl が失敗した場合にブラウザ自動化を使用します
DEFAULT_STRATEGY web_crawl 検出が失敗した場合のフォールバック

指示

必須 - ドキュメントソースを追加または分析する際は、以下のワークフローの手順に従ってください。

  • 常に最初に AI ネイティブなシグナル (llms.txt) を確認してください
  • レンダリングされた HTML よりも生のコンテンツを優先してください
  • ブラウザ自動化は必要な場合にのみ使用してください

注意信号 - 中止して再検討

もしあなたが以下をしようとしているなら:

  • 最初に llms.txt を確認せずにサイトをウェブクローリングする
  • 最初に curl を試さずにブラウザ自動化を使用する
  • ドキュメントフレームワークを検出せずにソースを追加する
  • リポジトリが利用可能な場合に GitHub の生アクセスをスキップする

中止 -> 適切なクックブックファイルを読んでください -> 検出順序に従ってください -> その後、進んでください

簡単な意思決定木

どのドキュメントを追加しますか?
│
├─ /llms.txt はありますか? ──────────────────────► llmstxt-strategy.md
│
├─ GitHub リポジトリは利用可能ですか?
│   └─ docs.yml/mint.json/mkdocs.yml はありますか? ► github-strategy.md
│
├─ /openapi.json または /asyncapi.yaml はありますか? ─► openapi-strategy.md
│
├─ /sitemap.xml はありますか? ───────────────────► sitemap-strategy.md
│
├─ Curl の戻り値は 1KB 未満ですか? (JS レンダリング) ────► browser-strategy.md
│
└─ 他に何も機能しませんか? ─────────────────► sitemap-strategy.md (クロールモード)

ワークフロー

  1. [ ] ドキュメントの URL を特定します
  2. [ ] チェックポイント: AI ネイティブなシグナル (llms.txt, ai.txt) を確認します
  3. [ ] GitHub リポジトリが利用可能かどうかを確認します
  4. [ ] 設定ファイルからドキュメントフレームワークを検出します
  5. [ ] クックブックから適切な戦略を選択します
  6. [ ] チェックポイント: ブラウザを使用する前に curl でフェッチをテストします
  7. [ ] 正しい戦略でレジストリエントリを設定します
  8. [ ] フェッチが正しく動作することを確認します

戦略の優先順位

優先度 シグナル 戦略 クックブック
1 /llms.txt が存在する llmstxt cookbook/llmstxt-strategy.md
2 GitHub リポジトリが利用可能 github_raw cookbook/github-strategy.md
3 OpenAPI/AsyncAPI 仕様 openapi cookbook/openapi-strategy.md
4 /sitemap.xml が存在する web_sitemap cookbook/sitemap-strategy.md
5 JS レンダリング / curl が失敗 browser_crawl cookbook/browser-strategy.md
6 他に何も機能しない web_crawl cookbook/sitemap-strategy.md

クックブック

llms.txt (AI ネイティブ)

  • IF: サイトに /llms.txt または /llms-full.txt がある
  • THEN: cookbook/llmstxt-strategy.md を読んでください
  • CHECK: curl -sI {url}/llms.txt | head -1

GitHub Raw

  • IF: GitHub リポジトリがドキュメントサイトからリンクされている
  • THEN: cookbook/github-strategy.md を読んでください
  • サポート: Fern, Docusaurus, MkDocs, Mintlify, Sphinx, Nextra, Starlight

OpenAPI / AsyncAPI / GraphQL

  • IF: サイトに API 仕様 (/openapi.json, /asyncapi.yaml, /graphql) がある
  • THEN: cookbook/openapi-strategy.md を読んでください

Sitemap / Web Crawl

  • IF: サイトに /sitemap.xml があるか、クロールする必要がある
  • THEN: cookbook/sitemap-strategy.md を読んでください

ブラウザ自動化

  • IF: Curl が失敗する (JS レンダリング、ブロック、1KB 未満の応答)
  • THEN: cookbook/browser-strategy.md を読んでください
  • ALSO: IDE ブラウザツールについては browser-discovery skill を参照してください

簡単な検出コマンド

# llms.txt を確認
curl -sI "https://docs.viperjuice.dev/llms.txt" | head -1

# sitemap を確認
curl -sI "https://docs.viperjuice.dev/sitemap.xml" | head -1

# OpenAPI を確認
curl -sI "https://api.viperjuice.dev/openapi.json" | head -1

# curl の応答サイズをテスト (JS レンダリングを検出)
curl -s "https://docs.viperjuice.dev" | wc -c
# 1000 バイト未満の場合、JS レンダリングの可能性が高い -> ブラウザを使用

フレームワークの検出

フレームワーク 設定ファイル 一般的な場所
Fern docs.yml fern/docs.yml
Docusaurus docusaurus.config.js リポジトリのルート
MkDocs mkdocs.yml リポジトリのルート
Mintlify mint.json リポジトリのルート
Sphinx conf.py docs/conf.py
Nextra _meta.json pages/_meta.json
Starlight astro.config.mjs リポジトリのルート
Antora antora.yml リポジトリのルート
GitBook SUMMARY.md リポジトリのルート

詳細なパターンについては、reference/framework-detection.md を参照してください。

レジストリの設定

設定テンプレートについては、reference/registry-examples.md を参照してください。

基本的な構造:

{
  "source-id": {
    "name": "表示名",
    "strategy": "strategy_name",
    "paths": {
      "homepage": "https://..."
    }
  }
}

マニフェストからの自動検出

library-detection skill と組み合わせて使用​​すると、検出された依存関係に基づいてドキュメントソースを自動的に提案します。

ワークフロー

  1. library-detection skill からスタック情報を受け取ります
  2. 各フレームワーク/ライブラリを既知のドキュメントソースにマッピングします
  3. ソースがすでに ai-docs/libraries/_registry.json に存在するかどうかを確認します
  4. 不足しているソースに対して /ai-dev-kit:docs-add コマンドを提案します

ライブラリからドキュメントへのマッピング

ライブラリ ドキュメント URL 戦略
react https://react.dev llmstxt
next https://nextjs.org/docs github_raw
vue https://vuejs.org/guide github_raw
nuxt https://nuxt.com/docs github_raw
svelte https://svelte.dev/docs github_raw
fastapi https://fastapi.tiangolo.com github_raw
django https://docs.djangoproject.com web_sitemap
flask https://flask.palletsprojects.com web_sitemap
express https://expressjs.com web_sitemap
prisma https://www.prisma.io/docs llmstxt
drizzle https://orm.drizzle.team/docs github_raw
vitest https://vitest.dev github_raw
playwright https://playwright.dev/docs github_raw
tailwindcss https://tailwindcss.com/docs llmstxt
trpc https://trpc.io/docs github_raw
zod https://z

(原文がここで切り詰められています)

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Documentation Sources Skill

Understand documentation platforms and how to efficiently fetch content from each. Supports 20+ platforms and frameworks.

Variables

Variable Default Description
PREFER_LLMSTXT true Check for llms.txt before other strategies
PREFER_GITHUB true Prefer raw GitHub over web crawling
BROWSER_FALLBACK true Use browser automation when curl fails
DEFAULT_STRATEGY web_crawl Fallback when detection fails

Instructions

MANDATORY - Follow the Workflow steps below when adding or analyzing documentation sources.

  • Always check for AI-native signals first (llms.txt)
  • Prefer raw content over rendered HTML
  • Use browser automation only when necessary

Red Flags - STOP and Reconsider

If you're about to:

  • Web crawl a site without checking for llms.txt first
  • Use browser automation without trying curl first
  • Add a source without detecting the documentation framework
  • Skip GitHub raw access when repo is available

STOP -> Read the appropriate cookbook file -> Follow detection order -> Then proceed

Quick Decision Tree

What documentation are you adding?
│
├─ Has /llms.txt? ──────────────────────► llmstxt-strategy.md
│
├─ GitHub repo available?
│   └─ Has docs.yml/mint.json/mkdocs.yml? ► github-strategy.md
│
├─ Has /openapi.json or /asyncapi.yaml? ─► openapi-strategy.md
│
├─ Has /sitemap.xml? ───────────────────► sitemap-strategy.md
│
├─ Curl returns <1KB? (JS-rendered) ────► browser-strategy.md
│
└─ Nothing else works? ─────────────────► sitemap-strategy.md (crawl mode)

Workflow

  1. [ ] Identify the documentation URL
  2. [ ] CHECKPOINT: Check for AI-native signals (llms.txt, ai.txt)
  3. [ ] Check if GitHub repo is available
  4. [ ] Detect documentation framework from config files
  5. [ ] Select appropriate strategy from cookbook
  6. [ ] CHECKPOINT: Test fetch with curl before using browser
  7. [ ] Configure registry entry with correct strategy
  8. [ ] Validate fetch works correctly

Strategy Priority Order

Priority Signal Strategy Cookbook
1 /llms.txt exists llmstxt cookbook/llmstxt-strategy.md
2 GitHub repo available github_raw cookbook/github-strategy.md
3 OpenAPI/AsyncAPI spec openapi cookbook/openapi-strategy.md
4 /sitemap.xml exists web_sitemap cookbook/sitemap-strategy.md
5 JS-rendered / curl fails browser_crawl cookbook/browser-strategy.md
6 Nothing else works web_crawl cookbook/sitemap-strategy.md

Cookbook

llms.txt (AI-Native)

  • IF: Site has /llms.txt or /llms-full.txt
  • THEN: Read cookbook/llmstxt-strategy.md
  • CHECK: curl -sI {url}/llms.txt | head -1

GitHub Raw

  • IF: GitHub repo is linked from docs site
  • THEN: Read cookbook/github-strategy.md
  • SUPPORTS: Fern, Docusaurus, MkDocs, Mintlify, Sphinx, Nextra, Starlight

OpenAPI / AsyncAPI / GraphQL

  • IF: Site has API spec (/openapi.json, /asyncapi.yaml, /graphql)
  • THEN: Read cookbook/openapi-strategy.md

Sitemap / Web Crawl

  • IF: Site has /sitemap.xml or need to crawl
  • THEN: Read cookbook/sitemap-strategy.md

Browser Automation

  • IF: Curl fails (JS-rendered, blocked, <1KB response)
  • THEN: Read cookbook/browser-strategy.md
  • ALSO: See browser-discovery skill for IDE browser tools

Quick Detection Commands

# Check for llms.txt
curl -sI "https://docs.viperjuice.dev/llms.txt" | head -1

# Check for sitemap
curl -sI "https://docs.viperjuice.dev/sitemap.xml" | head -1

# Check for OpenAPI
curl -sI "https://api.viperjuice.dev/openapi.json" | head -1

# Test curl response size (detect JS-rendered)
curl -s "https://docs.viperjuice.dev" | wc -c
# If < 1000 bytes, likely JS-rendered -> use browser

Framework Detection

Framework Config File Typical Location
Fern docs.yml fern/docs.yml
Docusaurus docusaurus.config.js repo root
MkDocs mkdocs.yml repo root
Mintlify mint.json repo root
Sphinx conf.py docs/conf.py
Nextra _meta.json pages/_meta.json
Starlight astro.config.mjs repo root
Antora antora.yml repo root
GitBook SUMMARY.md repo root

See reference/framework-detection.md for detailed patterns.

Registry Configuration

See reference/registry-examples.md for configuration templates.

Basic structure:

{
  "source-id": {
    "name": "Display Name",
    "strategy": "strategy_name",
    "paths": {
      "homepage": "https://..."
    }
  }
}

Auto-Discovery from Manifests

When used with the library-detection skill, automatically suggest documentation sources based on detected dependencies.

Workflow

  1. Receive stack info from library-detection skill
  2. Map each framework/library to known documentation sources
  3. Check if source already exists in ai-docs/libraries/_registry.json
  4. Suggest /ai-dev-kit:docs-add commands for missing sources

Library-to-Docs Mapping

Library Documentation URL Strategy
react https://react.dev llmstxt
next https://nextjs.org/docs github_raw
vue https://vuejs.org/guide github_raw
nuxt https://nuxt.com/docs github_raw
svelte https://svelte.dev/docs github_raw
fastapi https://fastapi.tiangolo.com github_raw
django https://docs.djangoproject.com web_sitemap
flask https://flask.palletsprojects.com web_sitemap
express https://expressjs.com web_sitemap
prisma https://www.prisma.io/docs llmstxt
drizzle https://orm.drizzle.team/docs github_raw
vitest https://vitest.dev github_raw
playwright https://playwright.dev/docs github_raw
tailwindcss https://tailwindcss.com/docs llmstxt
trpc https://trpc.io/docs github_raw
zod https://zod.dev llmstxt

Auto-Discovery Command

When /ai-dev-kit:quickstart-codebase or manual request:

# Get detected frameworks
FRAMEWORKS=$(library-detection --output json | jq -r '.frameworks[].name')

# For each framework, check if docs exist
for fw in $FRAMEWORKS; do
  if ! grep -q "\"$fw\"" ai-docs/libraries/_registry.json; then
    echo "Missing docs for: $fw"
    echo "Suggest: /ai-dev-kit:docs-add <url> $fw"
  fi
done

Output

Returns list of:

{
  "already_tracked": ["react", "typescript"],
  "missing": [
    {"library": "fastapi", "url": "https://fastapi.tiangolo.com", "command": "/ai-dev-kit:docs-add https://fastapi.tiangolo.com fastapi"}
  ],
  "unknown": ["custom-internal-lib"]
}

Output

After adding a source, verify:

  1. Pages are discovered correctly
  2. Content is fetched without errors
  3. Registry entry is valid JSON