obsidian-frontmatter
Aplicar reglas consistentes de YAML frontmatter en Obsidian: un bloque, claves estándar, fechas YYYY-MM-DD, tags en lista, comillas cuando proceda.
When & Why to Use This Skill
This Claude skill automates the standardization of YAML frontmatter in Obsidian notes. It ensures consistent metadata formatting—including standardized date formats, list-based tags, and proper quoting—to optimize note organization and enhance compatibility with powerful plugins like Dataview.
Use Cases
- Standardizing Legacy Notes: Automatically update older notes to follow a unified YAML structure, ensuring all metadata keys are lowercase and consistent across the entire vault.
- Dataview Optimization: Format properties correctly to ensure seamless integration with the Dataview plugin for advanced data querying, filtering, and dashboard creation.
- YAML Syntax Validation: Identify and fix common formatting errors such as improper indentation, missing quotes on special characters (like colons or brackets), and duplicate keys to prevent parsing issues.
| name | obsidian-frontmatter |
|---|---|
| description | "Aplicar reglas consistentes de YAML frontmatter en Obsidian: un bloque, claves estándar, fechas YYYY-MM-DD, tags en lista, comillas cuando proceda." |
Obsidian Frontmatter (YAML)
Cuándo usar
- Añadir o corregir frontmatter
- Normalizar propiedades para Dataview
- Evitar errores YAML (comillas, duplicados, tipos)
Reglas mÃnimas
- Un único bloque YAML al inicio (
---...---) con una lÃnea en blanco después. - Claves en minúscula y consistentes.
- Fechas:
YYYY-MM-DD(o datetime ISO si la nota ya usa hora). tagssiempre como lista:tags: - area - tipo- Valores con
:,#, enlaces[[...]]o números “sospechososâ€: entre comillas.
Procedimiento
- Lee el archivo completo para no duplicar propiedades existentes.
- Identifica el set de propiedades usado en el vault (no inventes si hay estándar previo).
- Aplica cambios mÃnimos:
- evita renombrar claves si rompe Dataview sin confirmación
- Valida YAML:
- sin tabs
- indentación consistente (2 espacios)
- sin duplicados de clave
Salida
- Reporta qué claves se añadieron/cambiaron.
- Si detectas incertidumbre sobre el estándar del vault, detente y pregunta.