KS
Killer-Skills

blog-post-formatter — how to use blog-post-formatter how to use blog-post-formatter, blog-post-formatter setup guide, Next.js portfolio website optimization, MDX processing automation, blog-post-formatter alternative, blog-post-formatter vs manual formatting, install blog-post-formatter, blog-post-formatter for developers, blog-post-formatter tutorial

v1.0.0
GitHub

About this Skill

Perfect for Content Automation Agents specializing in Next.js portfolio development. blog-post-formatter is a skill that formats blog content into markdown files for Next.js portfolio websites, using a specific frontmatter format and template.

Features

Automates MDX processing for Next.js portfolio websites
Formats blog content into properly structured markdown files
Uses a specific frontmatter format for consistency
Stores blog posts in the `_posts/` directory
Supports kebab-case slug formatting for file names

# Core Topics

santosrai santosrai
[0]
[0]
Updated: 3/6/2026

Quality Score

Top 5%
48
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add santosrai/santosrai.github.io/blog-post-formatter

Agent Capability Analysis

The blog-post-formatter MCP Server by santosrai is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use blog-post-formatter, blog-post-formatter setup guide, Next.js portfolio website optimization.

Ideal Agent Persona

Perfect for Content Automation Agents specializing in Next.js portfolio development.

Core Value

Automates MDX frontmatter formatting and file structure creation for Next.js blogs, ensuring proper slug generation and frontmatter compliance. Streamlines content management by handling markdown file creation in the `_posts/` directory with kebab-case slug conventions.

Capabilities Granted for blog-post-formatter MCP Server

Formatting raw blog content into structured MDX files
Generating kebab-case slugs from post titles
Automating frontmatter creation for Next.js MDX systems

! Prerequisites & Limits

  • Requires filesystem access to _posts/ directory
  • Limited to Next.js MDX frontmatter format
  • Depends on predefined template structure
Project
SKILL.md
4.7 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Format blog content into properly structured markdown files for the Next.js portfolio website. All blog posts are stored in _posts/ directory and automatically processed by the site's MDX system.

Quick Reference

Workflow

1. Format Existing Content

When user provides raw blog content:

  1. Extract or generate title:

    • If first line is a heading (H1), use it as title
    • If content starts with text, extract first sentence or generate from content
    • Ensure title is clear and descriptive
  2. Generate excerpt:

    • Extract first meaningful paragraph (150-200 characters)
    • Remove markdown formatting from excerpt
    • If no suitable paragraph, generate summary from first few sentences
    • Keep excerpt concise and engaging
  3. Set metadata:

    • Date: Use current date in YYYY-MM-DD format if not provided
    • Author: Default to 'Santosh Rai' (wrapped in single quotes)
    • Title: Wrap in single quotes in frontmatter
  4. Format content:

    • Do NOT include an H1 heading in the content (the page component already displays the title from frontmatter)
    • Start content directly with paragraphs or H2 headings
    • Preserve user's original markdown formatting
    • Validate markdown syntax (code blocks, lists, links)
  5. Generate filename:

    • Convert title to kebab-case (lowercase, hyphens for spaces)
    • Remove special characters, keep only alphanumeric and hyphens
    • Example: "Understanding JavaScript" → understanding-javascript.md
  6. Save file: Write to _posts/{slug}.md

2. Create New Post

When user provides topic/title:

  1. Generate frontmatter:

    • Use provided title or generate from topic
    • Create excerpt placeholder or generate from topic description
    • Set date to current date
    • Set author to 'Santosh Rai'
  2. Create structure:

    • Do NOT add an H1 heading (the page component already displays the title from frontmatter)
    • Start content directly with paragraphs or H2 headings
    • Add placeholder sections or basic outline
    • Use template from assets/template.md as starting point
  3. Save file: Write to _posts/{slug}.md

3. Auto-Generation Rules

Excerpt generation:

  • Extract first paragraph (up to 200 characters)
  • Remove markdown syntax (links, bold, code)
  • If paragraph is too short, include next sentence
  • Ensure excerpt is complete and grammatically correct

Title to slug conversion:

  • Convert to lowercase
  • Replace spaces with hyphens
  • Remove special characters (keep only alphanumeric and hyphens)
  • Remove leading/trailing hyphens
  • Examples:
    • "What is JavaScript?" → what-is-javascript
    • "Design Patterns With VBA" → design-patterns-with-vba
    • "Simple calculator in javascript using MVC pattern" → simple-calculator-in-javascript-using-mvc-pattern

Date format: Always use YYYY-MM-DD (e.g., '2024-01-20')

Frontmatter Format

All posts must include this exact frontmatter structure:

yaml
1--- 2title: 'Post Title' 3excerpt: 'Brief description' 4date: 'YYYY-MM-DD' 5author: 'Santosh Rai' 6---

Important: All values must be wrapped in single quotes.

Validation

Before saving, verify:

  • Frontmatter has all required fields (title, excerpt, date, author)
  • Date is in YYYY-MM-DD format
  • All frontmatter values are wrapped in single quotes
  • Content does NOT start with an H1 heading (title is displayed from frontmatter)
  • Filename is valid kebab-case slug
  • File will be saved in _posts/ directory

Examples

Example 1: Format existing content

User: "Here's my blog post about JavaScript closures..."

Output: Creates _posts/javascript-closures.md with:
- Title extracted/generated from content
- Excerpt from first paragraph
- Current date
- Properly formatted markdown

Example 2: Create new post

User: "Create a blog post about React hooks"

Output: Creates _posts/react-hooks.md with:
- Title: "React Hooks"
- Generated excerpt about React hooks
- Current date
- Basic structure starting with content (no H1 heading)

Reference Files

Integration

The formatted files integrate automatically with the existing blog system:

  • lib/mdx.ts reads all .md files from _posts/
  • Posts are sorted by date (newest first)
  • Individual posts accessible at /blog/[slug]
  • Blog listing at /blog displays all posts

Related Skills

Looking for an alternative to blog-post-formatter or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication