init-article

Create MDX blog articles with interactive metadata prompts and unique slug validation.

30|4|Updated Jul 15, 2017
One-click install
npx skills add https://github.com/hiroppy/site --skill init-article
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: init-article
Source: https://github.com/hiroppy/site/tree/main/.claude/skills/init-article
Command: npx skills add https://github.com/hiroppy/site --skill init-article

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the creation of new blog articles by guiding users through interactive prompts for title, description, tags, and image, while generating a kebab-case slug and validating its uniqueness. It then scaffolds a ready-to-edit MDX file at a standard location for the project.

Core Features & Use Cases

  • Interactive prompts for article metadata (title, description, tags, image, references).
  • Auto-generates a kebab-case slug from the title and ensures slug uniqueness.
  • Creates an MDX file at src/content/blog/{slug}.mdx with properly formatted frontmatter.
  • Provides next steps and guidance to streamline content creation and consistency.

Quick Start

Run the init-article skill and follow the prompts to create your first blog article draft.

Frequently Asked Questions about init-article

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a new blog article with consistent frontmatter and MDX scaffolding?

To create a blog article with consistent frontmatter, this tool guides you through interactive prompts for metadata like title and tags, then scaffolds a ready-to-edit MDX file at src/content/blog/{slug}.mdx.

How does slug generation and validation work for MDX blog posts?

Slug generation for MDX blog posts works by automatically converting your article title into a kebab-case slug and validating its uniqueness to prevent file path conflicts in your content directory.

What is the best way to ensure unique slugs when scaffolding MDX content?

The best way to ensure unique slugs when scaffolding MDX content is to use an automated validation tool that checks the generated kebab-case slug against existing files before creating the new article.

Can I use interactive prompts to collect article metadata like tags and images?

Yes, you can use interactive prompts to collect article metadata such as title, description, tags, image, and references, which are then automatically formatted into the MDX frontmatter.

Do I need to manually format frontmatter when drafting MDX blog content?

You do not need to manually format frontmatter when drafting MDX blog content, as the scaffolding process automatically generates a properly formatted Markdown envelope with your prompted metadata.

Why does my blog article scaffolding create files at src/content/blog?

Blog article scaffolding creates files at src/content/blog/{slug}.mdx to enforce a standardized project directory structure, ensuring consistent content organization and straightforward file retrieval.