wiki-llms-txt
microsoft/skills
Genera los archivos llms.txt y llms-full.txt, que facilitan el acceso de los modelos de lenguaje a gran escala (LLM) a la documentación de la wiki, siguiendo la especificación de llms.txt.
...Expandir todoGenerador de llms.txt
Generar llms.txt y llms-full.txt archivos que facilitan el acceso a la documentación wiki para los modelos de lenguaje grande (LLM), siguiendo la especificación llms.txt.
Cuándo se activa esta habilidad
- El usuario solicita generar
llms.txto menciona el estándar llms.txt - El usuario quiere que la documentación sea «compatible con los modelos de lenguaje grande» o «legible por los modelos de lenguaje grande»
- El usuario solicita un archivo de resumen del proyecto para modelos de lenguaje
- El usuario menciona
llms-full.txto la documentación con contexto ampliado
Resolución del repositorio de origen (SE DEBE HACER PRIMERO)
Antes de generar, resuelve el contexto del repositorio de origen:
- Comprobar si hay un git remote: Ejecutar
git remote get-url origin - Pregunta al usuario: «¿Se trata de un repositorio solo local o dispones de una URL del repositorio de origen?»
- URL remota → guardar como
REPO_URL - Local → utiliza solo rutas relativas
- URL remota → guardar como
- Determina la rama predeterminada: Ejecutar
git rev-parse --abbrev-ref HEAD - NO continúe hasta que se haya resuelto
Formato llms.txt (conforme a la especificación)
El archivo sigue la especificación 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}
Reglas clave
- H1 — Nombre del proyecto (exactamente uno, obligatorio)
- Cita destacada — Resumen conciso y específico (obligatorio). Debe ser exclusivo de ESTE proyecto.
- Párrafos de contexto — Restricciones no evidentes, aspectos en los que los LLM se equivocarían si no se les indicara
- Secciones H2 — Organizadas por tema, cada una con una lista de
[Title](url): Descriptionentradas - H2 «opcional» — Significado especial: los enlaces aquí se pueden omitir para acortar el contexto
- Enlaces relativos — Todas las rutas son relativas al directorio wiki
- Dinámico — TODO el contenido se deriva de páginas reales de la wiki, no de plantillas
- Orden de las secciones — Lo más importante primero: Iniciación → Arquitectura → Primeros pasos → Análisis en profundidad → Opcional
Calidad de la descripción
| ❌ Mala | ✅ Buena |
|---|---|
| «Descripción general de la arquitectura» | «Arquitectura del sistema que muestra cómo los grains de Orleans se comunican mediante el intercambio de mensajes con entrega «al menos una vez»» |
| «Guía de introducción» | «Requisitos previos, configuración de desarrollo local con Docker Compose y guía paso a paso para la primera llamada a la API» |
| «Referencia de la API» | «Puntos finales REST con requisitos de autenticación, límites de frecuencia y esquemas de solicitud/respuesta» |
Formato llms-full.txt
Misma estructura que llms.txt pero con el contenido completo integrado:
# {Project Name}
> {Same summary}
{Same context}
## {Section Name}
{Full markdown content — frontmatter stripped, citations and diagrams preserved}
Reglas de inclusión
- Eliminar el frontmatter YAML (
---) de cada página - Conservar los diagramas de Mermaid — mantener
```mermaidlas vallas intactas - Conservar las citas: todos los
[file:line](URL)enlaces se mantienen tal cual - Conservar las tablas: todas las tablas de Markdown permanecen intactas
- Conservar los comentarios «
»: proporcionan la procedencia de los diagramas
Requisitos previos
Esta función funciona mejor cuando ya existen páginas wiki (a través de /deep-wiki:generate o /deep-wiki:page). Si aún no existe ninguna wiki:
- Se recomienda ejecutar
/deep-wiki:generateprimero - O bien generar un
llms.txta partir del README y un análisis del código fuente (sin enlaces a páginas wiki)
Archivos de salida
Generar tres archivos:
| Archivo | Finalidad | Detectabilidad |
|---|---|---|
./llms.txt |
Archivo raíz de descubrimiento | Ruta estándar según la especificación llms.txt. GitHub MCP get_file_contents y search_code búscalo primero. |
wiki/llms.txt |
Enlaces relativos a la wiki | Para la implementación de VitePress y la navegación interna de la wiki. |
wiki/llms-full.txt |
Contenido completo integrado | Referencia completa para agentes que necesitan toda la documentación en un solo archivo. |
Los enlaces de raíz ./llms.txt enlaza a wiki/ (p. ej., [Guide](./wiki/onboarding/contributor-guide.md)). El wiki/llms.txt utiliza rutas relativas al wiki (p. ej., [Guide](./onboarding/contributor-guide.md)).
Si ya existe una raíz llms.txt ya existe y NO ha sido generada por deep-wiki, NO la sobrescribas.
Lista de comprobación
Antes de finalizar:
- Todos los archivos enlazados deben
llms.txtexisten realmente - Todos los
bloques dellms-full.txttienen contenido real (no están vacíos) - La cita destacada es específica de este proyecto (no es un texto genérico predefinido)
- Secciones ordenadas por importancia
- No hay entradas de página duplicadas entre secciones
- La sección «Opcional» solo contiene contenido verdaderamente opcional
-
llms.txtes concisa (1-5 KB) -
llms-full.txtcontiene todas las páginas 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 los archivos
0 archivosInstalar wiki-llms-txt
Descarga y descomprime los archivos de habilidades en tu directorio .claude/skills/.
Descargar ZIPClona el repositorio y copia los archivos de la habilidad a tu proyecto.
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





Hogar
