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

docs-navigation

AI関連ドキュメントの階層構造を効率的に検索し、Claude CodeやBAMLなどのライブラリに関する情報を、ウェブ検索よりも迅速かつ的確に見つけ出すSkill。

📜 元の英語説明(参考)

Navigate hierarchical ai-docs indexes to find documentation. Check local docs FIRST for speed and curated context before web searching. Covers Claude Code, BAML, MCP, and other tracked libraries.

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

一言でいうと

AI関連ドキュメントの階層構造を効率的に検索し、Claude CodeやBAMLなどのライブラリに関する情報を、ウェブ検索よりも迅速かつ的確に見つけ出すSkill。

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

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

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

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

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

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して docs-navigation.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → docs-navigation フォルダができる
  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

階層的なドキュメントシステムをナビゲートし、最小限のトークン使用量で関連するコンテキストを見つけます。

変数

変数 デフォルト 説明
START_LEVEL auto autorootcategorylibrarysectionpage
KEYWORD_MATCH fuzzy インデックスナビゲーションのための fuzzy (セマンティック) または exact マッチング

指示

必須 - 常に適切なインデックスレベルから開始し、ドリルダウンしてください。

  • ページをロードする前に _index.toon ファイルを読んでください
  • タスクキーワードをインデックスキーワードと照合してください
  • 特定のページをロードし、完全なコンテキストはロードしないでください
  • インデックスの priority および when_to_use フィールドに注意してください

危険信号 - 停止して再検討

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

  • 単純な質問のために full-context.md をロードする
  • インデックスを読まずにファイルパスを推測する
  • インデックスをスキップして、すぐにページに移動する
  • 「念のため」にすべてをロードする

停止 -> 以下のナビゲーションプロトコルに従ってください -> その後、続行してください

ワークフロー

  1. [ ] チェックポイント: 何を知っているか(ライブラリ?セクション?トピック?)を特定します
  2. [ ] 適切なインデックスレベルから開始します
  3. [ ] インデックスを読み、キーワードをタスクと照合します
  4. [ ] 特定のページにドリルダウンします
  5. [ ] 必要なページのみをロードします
  6. [ ] チェックポイント: full-context.md は正当ですか?(まれに)

クックブック

レベル選択

  • IF: 階層のどこから開始すればよいかわからない場合
  • THEN: cookbook/level-selection.md を読んでください
  • RESULT: 知っていることに基づいて適切なレベルから開始します

キーワードマッチング

  • IF: トピックでドキュメントを検索する場合
  • THEN: cookbook/keyword-matching.md を読んでください
  • RESULT: インデックスキーワードを通じて関連するページを見つけます

効率的なページロード

  • IF: 複数のページをロードするか、トークン予算を管理する場合
  • THEN: cookbook/page-loading.md を読んでください
  • RESULT: 必要なコンテキストを取得しながら、トークン使用量を最小限に抑えます

階層

ai-docs/
├── _root_index.toon              # レベル 0: すべてのカテゴリ
├── libraries/
│   ├── _index.toon               # レベル 1: すべてのライブラリ
│   ├── {library}/
│   │   ├── _index.toon           # レベル 2: ライブラリセクション
│   │   ├── {section}/
│   │   │   ├── _index.toon       # レベル 3: セクションページ
│   │   │   └── pages/
│   │   │       └── {page}.toon   # レベル 4: ページ概要
│   │   └── full-context.md       # すべて (エスケープハッチ)

ナビゲーションプロトコル

ステップ 1: 適切なレベルから開始する

知っていること 開始場所
何も知らない ai-docs/_root_index.toon
カテゴリ (ライブラリ/フレームワーク) ai-docs/{category}/_index.toon
ライブラリ名 ai-docs/libraries/{lib}/_index.toon
ライブラリ + セクション ai-docs/libraries/{lib}/{section}/_index.toon
正確なページ ai-docs/libraries/{lib}/{section}/pages/{page}.toon

ステップ 2: インデックスを読み、キーワードを照合する

各インデックスには以下が含まれています:

  • description または purpose - このレベルに含まれるもの
  • keywords - タスクを照合するための用語
  • when_to_use - より深く掘り下げるべきかのガイダンス
  • 子パス - 次にナビゲートする場所

タスクをキーワードと照合する:

Task: "Handle LLM retry failures"
Keywords to find: retry, error, failure, fallback, timeout

Navigate:
1. libraries/_index.toon -> "baml" has "llm|structured-output"
2. baml/_index.toon -> common_tasks mentions "error handling"
3. baml/guide/_index.toon -> "error-handling" page has "retry|fallback"
4. baml/guide/pages/error-handling.toon -> Exact info needed

ステップ 3: 必要なものだけをロードする

実行:

@ai-docs/libraries/baml/guide/pages/error-handling.toon  # ~400 トークン

実行しない:

@ai-docs/libraries/baml/full-context.md  # ~15,000 トークン

ステップ 4: 必要に応じて複数のページをロードする

複雑なタスクの場合は、いくつかの特定のページをロードします:

@ai-docs/libraries/baml/guide/pages/error-handling.toon
@ai-docs/libraries/baml/guide/pages/timeouts.toon
@ai-docs/libraries/baml/reference/pages/retry-policy.toon

それでも full-context.md よりはるかに安価です。

ステップ 5: full-context.md は控えめに使用する

以下の場合のみ:

  • 包括的なチュートリアルを作成する
  • 大規模な移行
  • ライブラリの初期の深い学習

インデックスファイル構造

カテゴリインデックス (_index.toon)

meta:
  level: category
  name: libraries
  count: 5

items[5]{id,name,description,path,keywords,priority}:
baml,BAML,Structured LLM outputs with type safety,./baml/_index.toon,llm|types|prompts,high
mcp,MCP,Tool integration for AI assistants,./mcp/_index.toon,tools|servers|context,high

ライブラリインデックス ({lib}/_index.toon)

meta:
  level: library
  name: BAML
  version: 0.70.0
  homepage: https://docs.boundaryml.com

overview: |
  Brief description of what this library does and when to use it.

sections[3]{id,name,path,page_count,when_to_use}:
guide,Guide,./guide/_index.toon,15,Learning concepts and tutorials
reference,Reference,./reference/_index.toon,25,Exact syntax and API details
examples,Examples,./examples/_index.toon,8,Working code samples

common_tasks[5]{task,section,page}:
Define output types,reference,types
Handle errors,guide,error-handling
Stream responses,guide,streaming

セクションインデックス ({lib}/{section}/_index.toon)

meta:
  level: section
  library: baml
  section: guide
  page_count: 15

pages[15]{id,title,path,priority,purpose,keywords}:
introduction,Introduction,./pages/introduction.toon,core,Overview and basic concepts,basics|overview|start
error-handling,Error Handling,./pages/error-handling.toon,important,Retry and fallback strategies,retry|error|fallback

ページ概要 ({lib}/{section}/pages/{page}.toon)

meta:
  level: page
  library: baml
  section: guide
  page: error-handling
  source_url: https://docs.boundaryml.com/guide/error-handling
  content_hash: abc123

summary:
  purpose: |
    One to two sentences on what this page teaches.

  key_concepts[5]: concept1|concept2|concept3|concept4|concept5

  gotchas[3]: warning1|warning2|warning3

code_patterns[2]:
  - lang: baml
    desc: What this pattern shows
    code: |
      // Truncated code example

related_pages[2]: ../pages/timeouts.toon|../../reference/pa
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Documentation Navigation Skill

Navigate the hierarchical documentation system to find relevant context with minimal token usage.

Variables

Variable Default Description
START_LEVEL auto auto, root, category, library, section, page
KEYWORD_MATCH fuzzy fuzzy (semantic) or exact matching for index navigation

Instructions

MANDATORY - Always start at the appropriate index level and drill down.

  • Read _index.toon files before loading pages
  • Match task keywords against index keywords
  • Load specific pages, not full contexts
  • Note priority and when_to_use fields in indexes

Red Flags - STOP and Reconsider

If you're about to:

  • Load full-context.md for a simple question
  • Guess file paths instead of reading the index
  • Skip the index and go straight to pages
  • Load everything "just in case"

STOP -> Follow the Navigation Protocol below -> Then proceed

Workflow

  1. [ ] CHECKPOINT: Identify what you know (library? section? topic?)
  2. [ ] Start at the appropriate index level
  3. [ ] Read index, match keywords to your task
  4. [ ] Drill down to specific pages
  5. [ ] Load only the pages you need
  6. [ ] CHECKPOINT: Is full-context.md justified? (rarely)

Cookbook

Level Selection

  • IF: Unsure where to start in the hierarchy
  • THEN: Read cookbook/level-selection.md
  • RESULT: Start at the right level based on what you know

Keyword Matching

  • IF: Searching for documentation by topic
  • THEN: Read cookbook/keyword-matching.md
  • RESULT: Find relevant pages through index keywords

Efficient Page Loading

  • IF: Loading multiple pages or managing token budget
  • THEN: Read cookbook/page-loading.md
  • RESULT: Minimize token usage while getting needed context

The Hierarchy

ai-docs/
├── _root_index.toon              # Level 0: All categories
├── libraries/
│   ├── _index.toon               # Level 1: All libraries
│   ├── {library}/
│   │   ├── _index.toon           # Level 2: Library sections
│   │   ├── {section}/
│   │   │   ├── _index.toon       # Level 3: Section pages
│   │   │   └── pages/
│   │   │       └── {page}.toon   # Level 4: Page summary
│   │   └── full-context.md       # Everything (escape hatch)

Navigation Protocol

Step 1: Start at the Right Level

You Know Start Here
Nothing ai-docs/_root_index.toon
Category (libraries/frameworks) ai-docs/{category}/_index.toon
Library name ai-docs/libraries/{lib}/_index.toon
Library + section ai-docs/libraries/{lib}/{section}/_index.toon
Exact page ai-docs/libraries/{lib}/{section}/pages/{page}.toon

Step 2: Read Index, Match Keywords

Each index contains:

  • description or purpose - What this level contains
  • keywords - Terms for matching your task
  • when_to_use - Guidance on when to drill deeper
  • Child paths - Where to navigate next

Match your task against keywords:

Task: "Handle LLM retry failures"
Keywords to find: retry, error, failure, fallback, timeout

Navigate:
1. libraries/_index.toon -> "baml" has "llm|structured-output"
2. baml/_index.toon -> common_tasks mentions "error handling"
3. baml/guide/_index.toon -> "error-handling" page has "retry|fallback"
4. baml/guide/pages/error-handling.toon -> Exact info needed

Step 3: Load Only What's Needed

DO:

@ai-docs/libraries/baml/guide/pages/error-handling.toon  # ~400 tokens

DON'T:

@ai-docs/libraries/baml/full-context.md  # ~15,000 tokens

Step 4: Load Multiple Pages if Needed

For complex tasks, load several specific pages:

@ai-docs/libraries/baml/guide/pages/error-handling.toon
@ai-docs/libraries/baml/guide/pages/timeouts.toon
@ai-docs/libraries/baml/reference/pages/retry-policy.toon

Still far cheaper than full-context.md.

Step 5: Use full-context.md Sparingly

Only for:

  • Writing comprehensive tutorials
  • Major migrations
  • Initial deep learning of a library

Index File Structure

Category Index (_index.toon)

meta:
  level: category
  name: libraries
  count: 5

items[5]{id,name,description,path,keywords,priority}:
baml,BAML,Structured LLM outputs with type safety,./baml/_index.toon,llm|types|prompts,high
mcp,MCP,Tool integration for AI assistants,./mcp/_index.toon,tools|servers|context,high

Library Index ({lib}/_index.toon)

meta:
  level: library
  name: BAML
  version: 0.70.0
  homepage: https://docs.boundaryml.com

overview: |
  Brief description of what this library does and when to use it.

sections[3]{id,name,path,page_count,when_to_use}:
guide,Guide,./guide/_index.toon,15,Learning concepts and tutorials
reference,Reference,./reference/_index.toon,25,Exact syntax and API details
examples,Examples,./examples/_index.toon,8,Working code samples

common_tasks[5]{task,section,page}:
Define output types,reference,types
Handle errors,guide,error-handling
Stream responses,guide,streaming

Section Index ({lib}/{section}/_index.toon)

meta:
  level: section
  library: baml
  section: guide
  page_count: 15

pages[15]{id,title,path,priority,purpose,keywords}:
introduction,Introduction,./pages/introduction.toon,core,Overview and basic concepts,basics|overview|start
error-handling,Error Handling,./pages/error-handling.toon,important,Retry and fallback strategies,retry|error|fallback

Page Summary ({lib}/{section}/pages/{page}.toon)

meta:
  level: page
  library: baml
  section: guide
  page: error-handling
  source_url: https://docs.boundaryml.com/guide/error-handling
  content_hash: abc123

summary:
  purpose: |
    One to two sentences on what this page teaches.

  key_concepts[5]: concept1|concept2|concept3|concept4|concept5

  gotchas[3]: warning1|warning2|warning3

code_patterns[2]:
  - lang: baml
    desc: What this pattern shows
    code: |
      // Truncated code example

related_pages[2]: ../pages/timeouts.toon|../../reference/pages/retry-policy.toon

Navigation Examples

Example 1: Specific Feature

Task: "Configure BAML streaming"

1. @ai-docs/libraries/baml/_index.toon
   -> common_tasks: "Stream responses" -> guide/streaming

2. @ai-docs/libraries/baml/guide/pages/streaming.toon
   -> Get streaming configuration

Tokens: ~600

Example 2: Unknown Library

Task: "Type-safe database access in TypeScript"

1. @ai-docs/libraries/_index.toon
   -> Scan keywords: "prisma" has "database|orm|typescript"

2. @ai-docs/libraries/prisma/_index.toon
   -> Navigate to relevant section

Tokens: ~400 + next level

Example 3: Comprehensive Knowledge

Task: "Migrate entire codebase from X to BAML"

1. @ai-docs/libraries/baml/full-context.md
   -> Load everything (correct choice here)

Tokens: ~15,000 (justified for migration)

Anti-Patterns

Bad Good Why
Load full-context.md for simple question Navigate to specific page 95% token waste
Guess at file paths Start at index, drill down Indexes show what exists
Load everything "just in case" Load what task requires Wastes context window
Skip index, go straight to pages Read index first May miss better pages