| name | creating-apunte |
| description | Generate Spanish blog posts (apuntes) for Hugo blog. Use when user wants to create a new post, write an article, crear un apunte, escribir un post, nueva entrada, or document a topic. |
/creating-apunte — Generate Blog Post
Create Spanish technical blog posts matching the established writing style.
Phase 1: Gather Input
Ask user for:
| Field | Required | Default |
|---|
| Topic/Title | Yes | - |
| Context sources | Yes | URLs, docs, snippets |
| Category | Yes | See list below |
| Tags | No | Auto-generated from content |
| Post type | No | short, long, or cheatsheet |
| Logo SVG path | No | Auto-created if not provided |
| Focus areas | No | Sections to emphasize |
| Contexto adicional | No | Notes, drafts, extensive text |
| Repo path | No | Local repo to use as context source |
Categories: administración, desarrollo, herramientas, infraestructura, productividad, software
Phase 2: Research & Outline
- Read provided sources (URLs, docs, snippets)
- If repo path provided: spawn a subagent to explore the repository (see below)
- Read tone-reference.md for writing style
- Create outline with proposed sections
- Estimate read time (~200 words/min)
- Present outline to user for approval before drafting
Repo Exploration (when repo path is provided)
Spawn a subagent to deeply explore the local repository. The subagent should:
- Read
README.md, CHANGELOG.md, doc/ or docs/ if they exist
- Identify the project's purpose, architecture, and key technologies
- Read key source files (entrypoints, config, main modules) — not every file
- Check
git log --oneline -20 for recent activity and project maturity
- Return a structured summary: what it is, how it works, key features, tech stack
This summary becomes the primary source material for drafting. Combine it with any URLs or notes the user also provided.
Phase 3: Generate Draft
- Read template.md for Hugo structure
- Generate filename:
YYYY-MM-DD-slug.md (kebab-case, no accents)
- Write post following template structure
- Save to
src/content/posts/YYYY-MM-DD-slug.md
- Create logo (see Phase 3.5)
Phase 3.5: Logo Creation
If user did NOT provide a logo path or explicitly skip:
Read logo-creation.md for detailed instructions.
- Search
src/static/img/posts/logo-*.svg for existing match
- If none, create new using template
src/static/img/posts/logo-template.svg
- Content must fit in 120x120 area at position (15,15)
- Save to
src/static/img/posts/logo-{slug}.svg
Phase 3.6: Concept Diagram
Always runs unless user explicitly skips.
Read diagram-creation.md for detailed instructions.
- Spawn a subagent to deeply analyze the finished post and identify the core concept
- Generate a
.drawio diagram representing the principal idea/architecture/design
- Save to
src/static/img/posts/YYYY-MM-DD-slug-01.drawio
- Edit the post to insert the
image-box reference (pointing to the .png version) after the introduction, before or between the first sections
Note: The .png does not exist yet — the user will review the .drawio in draw.io and export it manually.
Phase 4: Validate & Polish
- Run
/fixing-markdown src/content/posts/YYYY-MM-DD-slug.md
- Self-check against criteria below
- Present summary: file path, read time, sections, any TODOs
Phase 5: Test locally
Ask user: "¿Quieres que arranque Hugo para probar el post? (puede que ya lo tengas corriendo)"
If yes, start Hugo dev server:
cd src && hugo server -D --disableFastRender --noHTTPCache --ignoreCache --cleanDestinationDir --logLevel debug
Note: -D flag is required to show draft posts.
Check the post at http://localhost:1313/ and verify:
- Logo displays correctly (float-left)
- Content renders as expected
- No Hugo errors in console
Phase 6: Request feedback
After the user reviews the post, ask for feedback:
Cuando hayas revisado el post, dame feedback sobre:
| Aspecto | Pregunta |
| --- | --- |
| **Tono** | ¿Suena como mis otros posts? |
| **Estructura** | ¿Faltan o sobran secciones? |
| **Workflow** | ¿El proceso fue útil o molesto? |
| **Output** | ¿Qué necesitó corrección manual? |
Use feedback to improve the post and/or update the skill for future use.
Self-Check Criteria
[ ] Spanish language (English tech terms OK)
[ ] Filename: YYYY-MM-DD-slug.md
[ ] Logo float-left at start (150px)
[ ] <br clear="left"/> before <!--more-->
[ ] 1-2 paragraph intro before <!--more-->
[ ] Heading structure: ## main, ### sub
[ ] Heading capitalization: only first word, NOT Title Case
[ ] Headings short and direct (no "Mi X:" prefixes)
[ ] Gender: "las Skills" (feminine), not "los Skills"
[ ] Code blocks have language specified
[ ] Internal links use {{< relref >}}
[ ] Concept diagram .drawio created (or skipped by user)
[ ] image-box HTML inserted in post pointing to .png
[ ] Frontmatter has draft: true
File Locations
| Type | Path | Naming |
|---|
| Posts | src/content/posts/ | YYYY-MM-DD-slug.md |
| Logos | src/static/img/posts/ | logo-{concept}.svg |
| Images | src/static/img/posts/ | YYYY-MM-DD-slug-NN.png |
| Diagrams | src/static/img/posts/ | YYYY-MM-DD-slug-01.drawio |
| Snippets | src/assets/snippets/YYYY-MM-DD-slug/ | filename.ext |
Snippets (Code Templates)
For long config files or code that users should copy, use snippets:
{{</* codefile
path="snippets/YYYY-MM-DD-slug/filename.ext"
lang="bash"
title="Title for the collapsible section"
*/>}}
Use snippets when: config files, scripts > 20 lines, or templates.
Reference Files
Notes
- Post output in Spanish, skill docs in English
- Always start with
draft: true