create-post

Create Markdown blog post files with frontmatter and slugs in /posts.

Updated Dec 29, 2020
One-click install
npx skills add https://github.com/ihmissuti/kimmoihanus-nextjs-site --skill create-post
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-post
Source: https://github.com/ihmissuti/kimmoihanus-nextjs-site/tree/main/.cursor/skills/create-post
Command: npx skills add https://github.com/ihmissuti/kimmoihanus-nextjs-site --skill create-post

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the creation of new blog posts for the kimmoihanus.com Next.js site, eliminating manual setup and ensuring consistent formatting and metadata.

Core Features & Use Cases

  • Post scaffolding: creates a new Markdown file under /posts with a proper number prefix (001, 002, ...), a slug derived from the title, and frontmatter including title and date.
  • Slug and date handling: automatically generates a slug from the post title and inserts today's date in the frontmatter.
  • Automation script: exposes a reusable Bash script (scripts/create-post.sh) to scaffold a post with a single command.
  • Use Case: When a writer wants to draft a new post, run the script to generate a ready-to-edit Markdown file with boilerplate content.

Quick Start

Use the create-post script to scaffold a new post: ./scripts/create-post.sh "Your Post Title"

Frequently Asked Questions about create-post

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

FAQPage Schema
How do I automate blog post creation with consistent frontmatter and slugs?

To automate blog post creation, a Bash script scaffolds a Markdown file in the /posts directory, automatically generating a slug from the title and inserting today's date into the frontmatter.

What's the best way to scaffold a new Markdown file for a Next.js blog?

Scaffolding a Markdown file for a Next.js blog is done by running a Bash script that creates a file with a numerical prefix, derived slug, and standard frontmatter.

Does the post scaffolding script require a specific environment to run?

Yes, the post scaffolding script requires a Bash environment to execute the automation script and generate the Markdown file with proper metadata.

How are slugs and dates handled when generating new blog posts?

Slugs and dates are handled automatically by deriving the slug from the post title and inserting today's date directly into the Markdown frontmatter.

Can I use this script to organize posts across a specific directory structure?

Yes, the script targets the /posts directory, ensuring consistent frontmatter and slug conventions by creating files with sequential number prefixes like 001 and 002.