wiki-llms-txt
microsoft/skills
Gera os arquivos llms.txt e llms-full.txt, que oferecem acesso otimizado para LLMs à documentação da wiki, seguindo a especificação llms.txt.
...Expandir tudoGerador de llms.txt
Gerar llms.txt e llms-full.txt arquivos que oferecem acesso compatível com LLM à documentação da wiki, seguindo a especificação llms.txt.
Quando esta habilidade é ativada
- O usuário solicita a geração
llms.txtou menciona o padrão llms.txt - O usuário deseja tornar a documentação “compatível com LLMs” ou “legível por LLMs”
- O usuário solicita um arquivo de resumo do projeto para modelos de linguagem
- O usuário menciona
llms-full.txtou documentação com contexto expandido
Resolução do repositório de origem (DEVE SER FEITO PRIMEIRO)
Antes de gerar, resolva o contexto do repositório de origem:
- Verifique se há um git remote: Execute
git remote get-url origin - Pergunte ao usuário: “Este é um repositório apenas local ou você tem uma URL do repositório de origem?”
- URL remota → salvar como
REPO_URL - Local → use apenas caminhos relativos
- URL remota → salvar como
- Determinar o branch padrão: Executar
git rev-parse --abbrev-ref HEAD - NÃO prossiga até que esteja resolvido
Formato llms.txt (em conformidade com a especificação)
O arquivo segue a especificação 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}
Regras principais
- H1 — Nome do projeto (exatamente um, obrigatório)
- Blockquote — Resumo conciso e específico (obrigatório). Deve ser exclusivo para ESTE projeto.
- Parágrafos de contexto — Restrições não óbvias, coisas que os LLMs errariam se não fossem informados
- Seções H2 — Organizadas por tópico, cada uma com uma lista de
[Title](url): Descriptionitens - H2 “opcional” — Significado especial: os links aqui podem ser ignorados para um contexto mais conciso
- Links relativos — Todos os caminhos são relativos ao diretório da wiki
- Dinâmico — TODO o conteúdo derivado de páginas reais da wiki, não de modelos
- Ordem das seções — O mais importante primeiro: Introdução → Arquitetura → Primeiros passos → Aprofundamento → Opcional
Qualidade da descrição
| ❌ Ruim | ✅ Boa |
|---|---|
| “Visão geral da arquitetura” | “Arquitetura do sistema mostrando como os grains do Orleans se comunicam por meio da passagem de mensagens com entrega ‘pelo menos uma vez’” |
| “Guia de introdução” | “Pré-requisitos, configuração de desenvolvimento local com o Docker Compose e orientação passo a passo para a primeira chamada de API” |
| “Referência da API” | "Endpoints REST com requisitos de autenticação, limites de taxa e esquemas de solicitação/resposta" |
Formato llms-full.txt
A mesma estrutura do llms.txt , mas com o conteúdo completo incorporado:
# {Project Name}
> {Same summary}
{Same context}
## {Section Name}
{Full markdown content — frontmatter stripped, citations and diagrams preserved}
Regras de inclusão
- Remover o frontmatter YAML (
---) de cada página - Preservar diagramas Mermaid — manter
```mermaidas cercas intactas - Preservar citações — todos os
[file:line](URL)links permanecem como estão - Preservar tabelas — todas as tabelas em Markdown permanecem intactas
- Preservar comentários “
” — eles fornecem a proveniência do diagrama
Pré-requisitos
Essa funcionalidade funciona melhor quando já existem páginas wiki (por meio de /deep-wiki:generate ou /deep-wiki:page). Se ainda não houver nenhuma wiki:
- Sugiro executar
/deep-wiki:generateprimeiro - OU gerar um
llms.txta partir do README + varredura do código-fonte (sem links para páginas da wiki)
Arquivos de saída
Gerar três arquivos:
| Arquivo | Finalidade | Detectabilidade |
|---|---|---|
./llms.txt |
Arquivo raiz de descoberta | Caminho padrão conforme a especificação llms.txt. GitHub MCP get_file_contents e search_code encontre este primeiro. |
wiki/llms.txt |
Links relativos à wiki | Para implantação no VitePress e navegação interna na wiki. |
wiki/llms-full.txt |
Conteúdo completo incorporado | Referência abrangente para agentes que precisam de toda a documentação em um único arquivo. |
Os links raiz ./llms.txt aponta para wiki/ (por exemplo, [Guide](./wiki/onboarding/contributor-guide.md)). O wiki/llms.txt usa caminhos relativos ao wiki (por exemplo, [Guide](./onboarding/contributor-guide.md)).
Se uma raiz llms.txt já existir e NÃO tiver sido gerada pelo deep-wiki, NÃO a sobrescreva.
Lista de verificação
Antes de finalizar:
- Todos os arquivos vinculados devem
llms.txtexistam de fato - Todos os
blocos emllms-full.txttêm conteúdo real (não estão vazios) - A citação em bloco é específica para este projeto (não é um modelo genérico)
- Seções ordenadas por importância
- Não há entradas duplicadas nas páginas entre as seções
- A seção “Opcional” contém apenas conteúdo realmente opcional
-
llms.txtseja concisa (1 a 5 KB) -
llms-full.txtcontém todas as páginas da wiki
---
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
Todos os arquivos
0 arquivosInstalar wiki-llms-txt
Baixe e descompacte os arquivos de habilidades no diretório .claude/skills/.
Baixar ZIPClone o repositório e copie os arquivos da habilidade para o seu projeto.
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
Copiar





Lar
