Agent skill
blog-adding
Add a new English blog post to this Docusaurus site from a staging Markdown file and assets.
Stars
163
Forks
31
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/blog-adding
SKILL.md
Add an English Blog Post
Use this skill when the user asks to add a new blog post
Steps
- Choose a blog folder name
YYYY-MM-DD-short-slug(use the current date unless the user specifies one). - Create
blog/<folder>/index.mdwith front matter:description: short summary stringslug: URL slug without dateimage:/img/blogs/<folder>/cover.<ext>tags: array (e.g.[MoonBit])
- Add the H1 title and insert a cover image near the top:
. - Copy the staging Markdown content into the blog
index.mdafter the front matter and cover. - Copy referenced images/assets into
blog/<folder>/and ensure all./imagelinks resolve. - Pick a cover image.
- Copy the cover into
static/img/blogs/<folder>/cover.<ext>for the meta image path. - Add a zh placeholder for English-only posts:
- Create
i18n/zh/docusaurus-plugin-content-blog/<folder>/index.mdwith:--- unlisted: true ---
- Create
- Remove the staging folder if the user requests it.
Notes
- No Docusaurus config changes are required; the blog plugin picks up new folders automatically.
- Keep file paths and front matter ASCII-safe; avoid introducing new non-ASCII unless required.
Didn't find tool you were looking for?