| name | write-article |
| description | Scaffold a new blog article in this repo. Use when the user asks to "write an article", "start a new post", "create a draft", or otherwise begin authoring blog content. Runs `just write` to generate `content/<slug>/index.md` from the template, then opens the new file for editing. |
write-article
Scaffolds a new article via the just write recipe defined in the repo's justfile.
Inputs
title (required): human-readable article title. Quote it so spaces survive shell parsing.
description (optional): short summary for the frontmatter.
If the user did not supply a title, ask for one before running the recipe. Description is optional — leave it empty rather than inventing one.
Steps
- Run the recipe:
just write "<title>" "<description>"
The recipe prints the path of the new file (e.g. content/<slug>/index.md).
- Slug is the lowercased title with non-alphanumeric runs collapsed to
-.
- On collision it appends today's date, then a timestamp.
- Read the generated file to confirm frontmatter is correct.
- If the user provided body content in their request, append it below the frontmatter with the Edit tool. Otherwise leave the file as-is and report the path so the user can fill it in.
Notes
- Do not hand-create files under
content/ for new articles — always go through just write so slug uniqueness and frontmatter stay consistent.
is_draft: true is set by the template; leave it until the user explicitly asks to publish.
- Include a note that the article is generated by AI whenever you create a new article
- Avoid emojis, emdashes and other usual telltale signs of LLMs