new-post

Generate blog post drafts from headlines via a local generator script.

10|3|Updated Apr 1, 2018
One-click install
npx skills add https://github.com/kaishin/redalemeden.com --skill new-post-kaishin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-post
Source: https://github.com/kaishin/redalemeden.com/tree/main/.agents/skills/new-post
Command: npx skills add https://github.com/kaishin/redalemeden.com --skill new-post-kaishin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Create a bridge between a simple headline and a ready-to-edit blog post draft by leveraging the repository's post generator script, reducing manual drafting time.

Core Features & Use Cases

  • Generates a blog post draft from a headline using the project's generator script
  • Outputs the created file path for immediate reference in content workflows
  • Handles slug creation, date stamping, and marks the post as draft for review

Quick Start

Provide a headline and the generator script will create a draft post from it.

Frequently Asked Questions about new-post

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

FAQPage Schema
How do I generate a blog post draft from a headline?

To generate a blog post draft from a headline, you provide the headline and the post generator script creates a markdown file with the correct slug, current pubDate, and draft status. It returns the created file path for immediate editing.

What is the best way to automate markdown content creation for a blog?

Automating markdown content creation is best handled by running a dedicated post generator script that takes a headline and outputs a structured draft. This process handles slug creation and date stamping to reduce manual drafting time.

Do I need a local script to create a new blog post draft?

Yes, you need the local script at ./scripts/new-post.mjs to create a new blog post draft. The script is required to generate the src/content/blog/{year}/{slug}/index.md file with empty metadata fields and draft set to true.

Can I use this to convert a headline into a ready-to-edit markdown file?

Yes, you can use this to convert a headline into a ready-to-edit markdown file. The generator script creates the file path, applies the publication date, sets the draft flag to true, and leaves the content metadata empty for review.

Why does my blog post generator output a draft file instead of a published post?

The blog post generator outputs a draft file because it sets the draft status to true by design. This ensures the newly created markdown content remains unpublished and ready for review before you finalize the metadata fields and publish.