blog
Create a new blog post for dabase.com using Hugo with SEO-friendly title and description
blog
SKILL.md.claude/skills/blog
GitHubBlog Post Creation Skill
You are helping the user create a new blog post for their Hugo-based blog at dabase.com.
Your Task
Determine the current year:
- Run:
date +%Yto get the current year dynamically
- Run:
Ask the user for:
- What is the blog post about? (Get a detailed description of the topic/content)
- What title do they want? (Or offer to generate one based on the topic)
Generate an SEO-friendly title and description:
- Create a concise, compelling title if they don't provide one
- Write a brief, SEO-optimized description (1-2 sentences) based on what the blog is about
- Confirm both with the user before proceeding
Generate the filename from the title:
- Convert to lowercase
- Replace spaces with hyphens
- Remove special characters (keep only alphanumeric and hyphens)
- Example: "My Great Post!" → "my-great-post.md"
Create the blog post using Hugo:
- Run:
hugo new content/blog/YEAR/[filename].md(where YEAR is from step 1) - Hugo will automatically create the file with the correct frontmatter
- Run:
Update the frontmatter:
- Read the newly created file
- Update the
titlefield with the confirmed title - Update the
descriptionfield with the SEO-friendly description - Keep the auto-generated
datefield
Confirm completion:
- Show the file path:
content/blog/YEAR/filename.md - Let them know they can start writing content
- Suggest running
hugo serverto preview if needed
- Show the file path:
Publishing gotchas — check these when a post won't render
Hugo silently drops content instead of erroring, so "it built fine but the page isn't there" is nearly always one of these two:
- A
datein the future. Compare againstdate -u, not local time — BST/SGT local time is ahead of UTC, so a post stampedT12:00:00Zat 11:20 UTC is invisible until noon. Never hardcode a time of day; use the real publish instant. This bit the podcast generator (content/podcast/default.md.do), which now reads YouTube's.timestampfrom the metadata cache. - A
draft:key. We don't use Hugo drafts at all — they slow things down. Omit the key entirely; don't writedraft: false. To keep something out of the feed, don't generate a file for it (seeNON_EPISODESincontent/podcast/pages.do).
For podcast episodes, including generator and playlist gotchas, use the podcast-publishing skill.
After publishing, verify rather than assume: run hugo --quiet, then confirm the page.
Important Notes
- Use
date +%Yto dynamically determine the current year - Use Hugo's
hugo newcommand to bootstrap the post - Generate SEO-friendly titles and descriptions
- Confirm the title and description with the user before creating the file