lat-md
Qué hace
Esta skill explica cómo escribir archivos de documentación lat.md, que describen las decisiones de diseño, las reglas y las pruebas de un proyecto con un formato fijo. Está pensada para personas que mantienen notas estructuradas del proyecto a las que el código puede remitir.
Cuándo usarla
- ✓Cuando necesitas crear una nueva sección en la carpeta lat.md de un proyecto.
- ✓Cuando estás editando archivos lat.md existentes y necesitas la estructura correcta.
- ✓Cuando quieres revisar si las notas lat.md siguen las reglas requeridas.
Link de la skill
https://github.com/fathah/hermes-desktop/blob/main/.agents/skills/lat-md/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Puedes ayudarme a escribir una sección de lat.md que explique cómo funcionan las reglas de inicio de sesión de mi proyecto?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente sigue un conjunto de reglas: cada sección empieza con un párrafo de apertura breve, y las notas describen qué hace el proyecto y por qué, en lugar de repetir el código. El texto está pensado para que lo encuentren la búsqueda y otras herramientas.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
lat.md Authoring Guide
This skill covers the syntax, structure rules, and conventions for writing lat.md/ files. Load it whenever you need to create or edit sections in the lat.md/ directory.
What belongs in lat.md
lat.md/ files describe what the project does and why — domain concepts, key design decisions, business logic, and test specifications. They do NOT duplicate source code. Think of each section as an anchor that source code references back to.
Good candidates for sections:
- Architecture decisions and their rationale
- Domain concepts and business rules
- API contracts and protocols
- Test specifications (what is tested and why)
- Non-obvious constraints or invariants
Bad candidates:
- Step-by-step code walkthroughs (the code itself is the walkthrough)
- Auto-generated API docs (use tools for that)
- Temporary notes or TODOs
Section structure
Every section must have a leading paragraph — at least one sentence immediately after the heading, before any child headings or other block content.
The first paragraph must be ≤250 characters (excluding [[wiki link]] content). This paragraph is the section's identity — it appears in search results, command output, and RAG context.
# Good Section
Brief overview of what this section documents and why it matters.
More detail can go in subsequent paragraphs, code blocks, or lists.
## Child heading
Details about this child topic.
# Bad Section
## Child heading
This is invalid — "Bad Section" has no leading paragraph.
lat check enforces this rule.
Section IDs
Sections are addressed by file path and heading chain:
- Full form:
lat.md/path/to/file#Heading#SubHeading - Short form:
file#Heading#SubHeading(when the file stem is unique)
Examples: lat.md/tests/search#RAG Replay Tests, cli#init, parser#Wiki Links.
Wiki links
Cross-reference other sections or source code with [[target]] or [[target|alias]].
Section links
See [[cli#init]] for setup details.
The parser validates [[parser#Wiki Links|wiki link syntax]].
Source code links
Reference functions, classes, constants, and methods in source files:
[[src/config.ts#getConfigDir]] — function
[[src/server.ts#App#listen]] — class method
[[lib/utils.py#parse_args]] — Python function
[[src/lib.rs#Greeter#greet]] — Rust impl method
[[src/app.go#Greeter#Greet]] — Go method
[[src/app.h#Greeter]] — C struct
lat check validates that all targets exist.
Code refs
Tie source code back to lat.md/ sections with @lat: comments:
// @lat: [[cli#init]]
export function init() { ... }
# @lat: [[cli#init]]
def init():
...
Supported comment styles: // (JS/TS/Rust/Go/C) and # (Python).
Place one @lat: comment per section, at the relevant code — not at the top of the file.
Test specs
Describe tests as sections in lat.md/ files. Add frontmatter to require that every leaf section has a matching @lat: comment in test code:
---
lat:
require-code-mention: true
---
# Tests
Authentication test specifications.
## User login
Verify credential validation and error handling.
### Rejects expired tokens
Tokens past their expiry timestamp are rejected with 401, even if otherwise valid.
### Handles missing password
Login request without a password field returns 400 with a descriptive error.
Each test references its spec:
# @lat: [[tests#User login#Rejects expired tokens]]
def test_rejects_expired_tokens():
...
Rules:
- Every leaf section under
require-code-mention: truemust be referenced by exactly one@lat:comment - Every section MUST have a description — at least one sentence explaining what the test verifies and why
lat checkflags unreferenced specs and dangling code refs
Frontmatter
Optional YAML frontmatter at the top of lat.md/ files:
---
lat:
require-code-mention: true
---
Currently the only supported field is require-code-mention for test spec enforcement.
Validation
Always run lat check after editing lat.md/ files. It validates:
- All wiki links point to existing sections or source code symbols
- All
@lat:code refs point to existing sections - Every section has a leading paragraph (≤250 chars)
- All
require-code-mentionleaf sections are referenced in code
Preguntas frecuentes
¿Las notas de lat.md deben copiar el código fuente?
No. Describen el qué y el porqué, y el propio código es la explicación detallada.
¿Cuánto debe durar el párrafo de apertura?
Debe tener 250 caracteres o menos, sin contar el texto de los enlaces wiki.
¿Qué no debe ir en estos archivos?
Las notas temporales, las tareas pendientes y la documentación de API generada automáticamente no son buenos candidatos.
Detalles
Descripción original del autor
Writing and maintaining lat.md documentation files — structured markdown that describes a project's architecture, design decisions, and test specs. Use when creating, editing, or reviewing files in the lat.md/ directory.
repo: fathah/hermes-desktop
Popularidad
- Estrellas en GitHub
- 15 mil
- Posición en el ranking
- #11138
- Licencia
- MIT
- Actualizada
- 13/10/2026
Comentarios
- …
Más skills de este repositorio
Skills parecidas
technical-documentation
394 milAyuda a tu agente a escribir y revisar documentación técnica clara y archivos de instrucciones para agentes, para que personas y herramientas de IA puedan seguirlos fácilmente.
architecture-decision-records
280 milHace que tu agente registre las decisiones importantes sobre la estructura del proyecto. Así se entiende el motivo de cada elección y se mantiene un historial claro.
code-tour
280 milPermite que tu agente cree recorridos paso a paso por el código, con referencias exactas a archivos y líneas. Útil para introducciones, explicaciones y revisiones.