オプション
家 Skill ドキュメント wiki-llms-txt

wiki-llms-txt

microsoft/skills microsoft/skills

llms.txt および llms-full.txt ファイルを生成します。これらのファイルは、llms.txt 仕様に準拠し、LLM がウィキドキュメントにアクセスしやすい形式で提供します。

...すべて拡張します
6
更新された時間 2026年9月11日

llms.txt ジェネレーター

生成 llms.txt および llms-full.txt llms.txt仕様に準拠し、LLMが利用しやすい形式でWikiドキュメントへのアクセスを提供するファイルを生成します。

このスキルが起動するタイミング

  • ユーザーが生成を依頼したとき llms.txt 、または llms.txt 標準について言及したとき
  • ユーザーがドキュメントを「LLMに適した」または「LLMが読み取れる」形式にしたい場合
  • ユーザーが言語モデル用のプロジェクト概要ファイルを要求した場合
  • ユーザーが言及した場合 llms-full.txt 、または文脈拡張されたドキュメントについて言及する

ソースリポジトリの解決(最初に必ず行うこと)

生成する前に、ソースリポジトリのコンテキストを解決してください:

  1. git remote の確認:以下のコマンドを実行 git remote get-url origin
  2. ユーザーに確認「これはローカルのみのリポジトリですか、それともソースリポジトリのURLをお持ちですか?」
    • リモートURL → 保存先 REPO_URL
    • ローカル → 相対パスのみを使用
  3. デフォルトのブランチを決定: 実行 git rev-parse --abbrev-ref HEAD
  4. 解決されるまで先に進まない

llms.txt フォーマット(仕様に準拠)

このファイルは llms.txt 仕様に準拠しています:

# {Project Name}

> {Dense one-paragraph summary — what it does, who it's for, key technologies}

{Important context paragraphs — constraints, architectural philosophy, non-obvious things}

## {Section Name}

- [{Page Title}]({relative-path-to-md}): {One-sentence description of what the reader will learn}

## Optional

- [{Page Title}]({relative-path-to-md}): {Description — these can be skipped for shorter context}

主なルール

  1. H1 — プロジェクト名(1つだけ、必須)
  2. Blockquote — 簡潔かつ具体的な要約(必須)。このプロジェクトに固有のものである必要があります。
  3. 文脈説明段落 — 一見して明らかではない制約、指示されなければLLMが誤認識してしまう事項
  4. H2セクション — トピックごとに整理され、それぞれに [Title](url): Description 項目リスト
  5. 「オプション」のH2 — 特別な意味:コンテキストを短くするため、ここへのリンクは省略可能
  6. 相対リンク — すべてのパスはウィキディレクトリを基準とする
  7. 動的 — すべてのコンテンツはテンプレートではなく、実際のWikiページから生成される
  8. セクションの順序 — 最も重要なものから:オンボーディング → アーキテクチャ → はじめに → 詳細解説 → オプション

説明の質

❌ 悪い ✅ 良好
「アーキテクチャの概要」 「Orleansのグレインが、少なくとも1回は確実に配信されるメッセージパッシングを介して通信する様子を示すシステムアーキテクチャ」
「入門ガイド」 「前提条件、Docker Compose を使用したローカル開発環境のセットアップ、および最初の API 呼び出しの手順」
「APIリファレンス」 「認証要件、レート制限、およびリクエスト/レスポンススキーマを含むRESTエンドポイント」

llms-full.txt の形式

以下の構造と同じですが llms.txt と同じ構造ですが、コンテンツ全体がインラインで記述されています:

# {Project Name}

> {Same summary}

{Same context}

## {Section Name}


{Full markdown content — frontmatter stripped, citations and diagrams preserved}

インライン化のルール

  • YAMLのフロントマター--- ブロック)を削除する
  • Mermaid図は保持する — ```mermaid フェンスをそのまま維持する
  • 引用情報を保持 — すべての [file:line](URL) リンクはそのまま維持
  • 表を保持 — すべてのMarkdown形式の表をそのまま維持
  • コメントを保持 — これらは図の出所情報を提供します

前提条件

このスキルは、Wikiページがすでに存在している場合に最も効果的に機能します( /deep-wiki:generate または /deep-wiki:page)を通じて)ウィキページがすでに存在している場合に、このスキルは最も効果的に機能します。まだウィキが存在しない場合は:

  1. 以下の実行をお勧めします /deep-wiki:generate
  2. 、あるいは llms.txt README およびソースコードのスキャン結果から生成(Wiki ページへのリンクは含まない)

出力ファイル

以下の3つのファイルを生成する:

ファイル 目的 発見可能性
./llms.txt ルート検出ファイル llms.txt仕様に基づく標準パス。GitHub MCP get_file_contents および search_code これを最初に検索します。
wiki/llms.txt Wiki相対リンク VitePressのデプロイおよびWiki内部のナビゲーション用。
wiki/llms-full.txt 完全なインラインコンテンツ すべてのドキュメントを1つのファイルにまとめて必要とするエージェント向けの包括的なリファレンス。

ルート ./llms.txt へのリンク wiki/ (例: [Guide](./wiki/onboarding/contributor-guide.md)) にリンクします。 wiki/llms.txt はウィキ相対パスを使用します(例: [Guide](./onboarding/contributor-guide.md)).

もしルート llms.txt がすでに存在し、それがdeep-wikiによって生成されたものではない場合は、上書きしないでください。

検証チェックリスト

確定する前に:

  • 実際に存在するすべてのリンクされたファイル llms.txt 実際に存在していること
  • すべての ブロックに llms-full.txt に実際のコンテンツが含まれていること(空ではないこと)
  • ブロッククォートはこのプロジェクト固有のものである(汎用的な定型文ではない)
  • セクションは重要度順に並べられている
  • セクション間で重複するページエントリがない
  • 「オプション」セクションには、真にオプションなコンテンツのみを含める
  • llms.txt 簡潔であること(1~5 KB)
  • llms-full.txt すべてのWikiページが含まれている
GitHubで見る
---
name: wiki-llms-txt
description: Generates llms.txt and llms-full.txt files that provide LLM-friendly access to wiki documentation, following the llms.txt specification.
license: MIT
---

# llms.txt Generator

Generate `llms.txt` and `llms-full.txt` files that provide LLM-friendly access to wiki documentation, following the [llms.txt specification](https://llmstxt.org/).

## When This Skill Activates

- User asks to generate `llms.txt` or mentions the llms.txt standard
- User wants to make documentation "LLM-friendly" or "LLM-readable"
- User asks for a project summary file for language models
- User mentions `llms-full.txt` or context-expanded documentation

## Source Repository Resolution (MUST DO FIRST)

Before generating, resolve the source repository context:

1. **Check for git remote**: Run `git remote get-url origin`
2. **Ask the user**: _"Is this a local-only repository, or do you have a source repository URL?"_
   - Remote URL → store as `REPO_URL`
   - Local → use relative paths only
3. **Determine default branch**: Run `git rev-parse --abbrev-ref HEAD`
4. **Do NOT proceed** until resolved

## llms.txt Format (Spec-Compliant)

The file follows the [llms.txt specification](https://llmstxt.org/):

```markdown
# {Project Name}

> {Dense one-paragraph summary — what it does, who it's for, key technologies}

{Important context paragraphs — constraints, architectural philosophy, non-obvious things}

## {Section Name}

- [{Page Title}]({relative-path-to-md}): {One-sentence description of what the reader will learn}

## Optional

- [{Page Title}]({relative-path-to-md}): {Description — these can be skipped for shorter context}
```

### Key Rules

1. **H1** — Project name (exactly one, required)
2. **Blockquote** — Dense, specific summary (required). Must be unique to THIS project.
3. **Context paragraphs** — Non-obvious constraints, things LLMs would get wrong without being told
4. **H2 sections** — Organized by topic, each with a list of `[Title](url): Description` entries
5. **"Optional" H2** — Special meaning: links here can be skipped for shorter context
6. **Relative links** — All paths relative to wiki directory
7. **Dynamic** — ALL content derived from actual wiki pages, not templates
8. **Section order** — Most important first: Onboarding → Architecture → Getting Started → Deep Dive → Optional

### Description Quality

| ❌ Bad | ✅ Good |
|--------|---------|
| "Architecture overview" | "System architecture showing how Orleans grains communicate via message passing with at-least-once delivery" |
| "Getting started guide" | "Prerequisites, local dev setup with Docker Compose, and first API call walkthrough" |
| "The API reference" | "REST endpoints with auth requirements, rate limits, and request/response schemas" |

## llms-full.txt Format

Same structure as `llms.txt` but with full content inlined:

```markdown
# {Project Name}

> {Same summary}

{Same context}

## {Section Name}

<doc title="{Page Title}" path="{relative-path}">
{Full markdown content — frontmatter stripped, citations and diagrams preserved}
</doc>
```

### Inlining Rules

- **Strip YAML frontmatter** (`---` blocks) from each page
- **Preserve Mermaid diagrams** — keep `` ```mermaid `` fences intact
- **Preserve citations** — all `[file:line](URL)` links stay as-is
- **Preserve tables** — all markdown tables stay intact
- **Preserve `<!-- Sources: -->` comments** — these provide diagram provenance

## Prerequisites

This skill works best when wiki pages already exist (via `/deep-wiki:generate` or `/deep-wiki:page`). If no wiki exists yet:

1. Suggest running `/deep-wiki:generate` first
2. OR generate a minimal `llms.txt` from README + source code scan (without wiki page links)

## Output Files

Generate three files:

| File | Purpose | Discoverability |
|------|---------|-----------------|
| `./llms.txt` | Root discovery file | Standard path per llms.txt spec. GitHub MCP `get_file_contents` and `search_code` find this first. |
| `wiki/llms.txt` | Wiki-relative links | For VitePress deployment and wiki-internal navigation. |
| `wiki/llms-full.txt` | Full inlined content | Comprehensive reference for agents needing all docs in one file. |

The root `./llms.txt` links into `wiki/` (e.g., `[Guide](./wiki/onboarding/contributor-guide.md)`). The `wiki/llms.txt` uses wiki-relative paths (e.g., `[Guide](./onboarding/contributor-guide.md)`).

If a root `llms.txt` already exists and was NOT generated by deep-wiki, do NOT overwrite it.

## Validation Checklist

Before finalizing:

- [ ] All linked files in `llms.txt` actually exist
- [ ] All `<doc>` blocks in `llms-full.txt` have real content (not empty)
- [ ] Blockquote is specific to this project (not generic boilerplate)
- [ ] Sections ordered by importance
- [ ] No duplicate page entries across sections
- [ ] "Optional" section only contains truly optional content
- [ ] `llms.txt` is concise (1-5 KB)
- [ ] `llms-full.txt` contains all wiki pages

すべてのファイル

0件のファイル

wiki-llms-txtをインストール

スキルファイルをダウンロードし、.claude/skills/ ディレクトリに解凍してください。

ZIPをダウンロード

リポジトリをクローンし、スキルファイルをプロジェクトにコピーしてください。

git clone https://github.com/microsoft/skills/tree/main/.github/plugins/deep-wiki/skills/wiki-llms-txt # Copy SKILL.md to your .claude/skills/ directory

コピー コピー
クイックセットアップ: スキルフォルダを .claude/skills/ にコピーしてください。 Claude が自動的にそのスキルを検出して使用します。
リポジトリ microsoft/skills

関連スキル

golang-dependency-injection
更新された時間 2026年6月29日
nuxthub
更新された時間 2026年8月23日
tc-tracker
更新された時間 2026年8月27日
code-quality
更新された時間 2026年8月22日
OR