This commit is contained in:
2026-03-22 13:01:46 -03:00
parent af0910f428
commit 6694bce736
52 changed files with 4949 additions and 102 deletions

60
src/lib/templates.ts Normal file
View File

@@ -0,0 +1,60 @@
export const templates: Record<string, string> = {
command: `## Comando
## Qué hace
## Cuándo usarlo
## Ejemplo
\`\`\`bash
\`\`\`
`,
snippet: `## Snippet
## Lenguaje
## Qué resuelve
## Notas
`,
decision: `## Contexto
## Decisión
## Alternativas consideradas
## Consecuencias
`,
recipe: `## Ingredientes
## Pasos
## Tiempo
## Notas
`,
procedure: `## Objetivo
## Pasos
## Requisitos
## Problemas comunes
`,
inventory: `## Item
## Cantidad
## Ubicación
## Notas
`,
note: `## Notas
`,
}
export function getTemplate(type: string): string {
return templates[type] || templates.note
}