com um clique
write-blog
// Create a correctly structured MemMachine blog post: right directory path, complete frontmatter, and image placeholder. Use when the user wants to write a new blog post for memmachine.ai.
// Create a correctly structured MemMachine blog post: right directory path, complete frontmatter, and image placeholder. Use when the user wants to write a new blog post for memmachine.ai.
| name | write-blog |
| description | Create a correctly structured MemMachine blog post: right directory path, complete frontmatter, and image placeholder. Use when the user wants to write a new blog post for memmachine.ai. |
| trigger | /write-blog |
Create a new blog post for the MemMachine website (memmachine.github.io) with the correct directory structure, complete YAML frontmatter, and build verification.
/write-blog # interactive — prompts for all fields
/write-blog "Post Title" # pre-fill the title, prompt for remaining fields
Follow these steps in order. Do not skip steps.
If any of the following are not provided in the invocation arguments, ask for them now (you may ask for all missing fields in a single message):
| Field | Required | Notes |
|---|---|---|
| title | Yes | Full post title (e.g., "MemMachine Now Supports LangGraph") |
| author | Yes | Author's full name as it should appear on the post |
| description | Yes | One sentence for SEO and social preview cards |
| tags | Yes | Comma-separated list (e.g., "AI Agent, Integration, LLM"). Always include at least one. |
| date | Yes | Publish date in YYYY-MM-DD format. Defaults to today if not provided. Must not be in the future — Hugo silently suppresses future-dated posts at build time unless --buildFuture is passed. If the post won't appear, check the date first. |
| featured | No | Should this post appear in the homepage carousel? (add tag "featured") |
From the title:
From the date, extract YYYY and MM (zero-padded).
Construct the directory path:
content/en/blog/{YYYY}/{MM}/{slug}/
Example: title "MemMachine Joins NVIDIA NeMo Toolkit", date 2026-04-27:
memmachine-joins-nvidia-nemo-toolkitcontent/en/blog/2026/04/memmachine-joins-nvidia-nemo-toolkit/Convert the date to RFC 3339 format with a timezone offset. Use Pacific Time as default if not specified:
YYYY-MM-DDTHH:MM:SS-08:00 # Pacific Standard Time
YYYY-MM-DDTHH:MM:SS-07:00 # Pacific Daylight Time (summer)
Default time: 09:00:00 (9 AM).
Date gotcha: Hugo silently drops any post whose
dateis in the future — it will not appear in the local server or the deployed site. Always use today's date or a past date. If you do not know the current date, ask the user before writing the file.
Start with the user-provided tags. Clean each tag:
If the user said yes to featuring the post, append "featured" to the array.
Create the directory and index.md using the Write tool:
---
title: "{title}"
date: {RFC 3339 date}
featured_image: "featured_image.png"
tags: [{tags array}]
author: "{author}"
description: "{description}"
draft: false
---
<!--
Replace this comment with your blog post content.
BEFORE PUBLISHING:
1. Confirm the date above is today or in the past — Hugo silently hides future-dated posts
2. Add featured_image.png to this directory (same folder as this index.md)
3. Set draft: false in the frontmatter above
4. Preview: hugo server --buildDrafts --bind 0.0.0.0
5. Build check: hugo --gc --minify
6. Commit with signed commit: git commit -sS -m "Add blog: {title}"
-->
After creating the file, tell the user:
featured_image.png must be placed in the same directory as index.md before publishing.hugo server --buildDrafts --bind 0.0.0.0/blog/{YYYY}/{MM}/{slug}/draft: false before opening a pull request.Input: /write-blog "MemMachine Reaches 1000 Stars" author="Jane Smith" description="MemMachine celebrates a community milestone." tags="AI Memory, Community, Open Source" date=2026-06-01 featured=yes
Expected behavior:
content/en/blog/2026/06/memmachine-reaches-1000-stars/index.md"featured" in tags arraydraft: false is setPass criteria: File created at correct path with all frontmatter fields populated correctly.
Input: /write-blog "New Integration Post" (no author, description, tags, date)
Expected behavior:
Pass criteria: Skill asks for missing fields before creating any files.
Input: title = "MemMachine v0.3: What's New & Why It Matters"
Expected slug: memmachine-v0-3-whats-new-why-it-matters
Expected behavior:
Pass criteria: Slug contains only lowercase letters, digits, and hyphens; no consecutive hyphens; no special characters.