wiki-llms-txt — скилл для Claude Code: что делает и как установить
Создаёт файлы llms.txt и llms-full.txt по спецификации llmstxt.org, превращая проектную документацию и вики в сжатый контекст для языковых моделей.
npx skills add microsoft/skills --skill wiki-llms-txt -a claude-codeЧто делает wiki-llms-txt
Скилл генерирует структурированную сводку по проекту по спецификации llms.txt. Он формирует заголовок, краткое описание в цитате, параграфы с архитектурным контекстом и списки ссылок на страницы вики. Разделы выстраиваются по строгому порядку: от онбординга и архитектуры до опциональных тем.
В процессе работы формируются три файла: корневой ./llms.txt, вариант для VitePress в wiki/llms.txt и полный wiki/llms-full.txt. Для полного файла скилл объединяет статьи внутри блоков <doc>: разметка очищается от шапок YAML, при этом диаграммы Mermaid, таблицы, цитаты и комментарии к источникам сохраняются без изменений.
Перед генерацией скилл обязательно проверяет ветку и адрес git remote origin через Git. Если корневой llms.txt уже существовал и был создан вручную, инструмент его не перезапишет. Генерация рассчитана на работу с готовыми страницами вики, созданными через /deep-wiki:generate или /deep-wiki:page.
Какие задачи решает
- подготовить проектную вики к индексации языковыми моделями
- собрать единый файл llms-full.txt со всеми статьями без шапок YAML
- сформировать ссылки на документацию по стандарту llmstxt.org
- сохранить диаграммы Mermaid и таблицы при экспорте вики в контекст для ИИ
Примеры запросов агенту
- Сделай llms.txt и llms-full.txt по нашей вики
- Сформируй файл llms.txt для языковых моделей по спецификации
- Подготовь llms-full.txt, включив все страницы из папки wiki
Как установить wiki-llms-txt
1Через Skills CLI (Vercel)
npx skills add microsoft/skills --skill wiki-llms-txt -a claude-code2Вручную: положить файлы
~/.claude/skills/wiki-llms-txt/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/wiki-llms-txt/
Вручную: положить файлы
.agents/skills/wiki-llms-txt/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/wiki-llms-txt/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install microsoft/skills wiki-llms-txt2Вручную: положить файлы
.github/skills/wiki-llms-txt/SKILL.mdКомандой платформы
gemini skills install https://github.com/microsoft/skills --path .github/plugins/deep-wiki/skills/wiki-llms-txtВручную: положить файлы
.devin/skills/wiki-llms-txt/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о wiki-llms-txt
Как установить wiki-llms-txt в Claude Code?
Выполните команду npx skills add microsoft/skills --skill wiki-llms-txt -a claude-code.
Что делает wiki-llms-txt?
Скилл анализирует проектную вики или репозиторий и создаёт файлы llms.txt и llms-full.txt со структурированным описанием и ссылками для нейросетей.
Что произойдёт, если в проекте ещё нет страниц вики?
Скилл предложит сначала запустить /deep-wiki:generate либо соберёт минимальный llms.txt на основе файла README и исходного кода.
Исходный текст
SKILL.md · MIT
---
name: wiki-llms-txt
description: Generates llms.txt and llms-full.txt files for LLM-friendly project documentation following the llms.txt specification. Use when the user wants to create LLM-readable summaries, llms.txt files, or make their wiki accessible to language models.
license: MIT
metadata:
author: Microsoft
version: "1.0.0"
---
# 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
© Microsoft · MIT · microsoft/skills