New Blog Post Creation
Process
- •
Accept a slug argument (e.g.,
/new-post my-awesome-post)- •If no slug provided, ask the user for one
- •Validate: lowercase letters, numbers, hyphens only
- •Check
content/blog/<slug>.mdxdoes not already exist
- •
Ask the user for required metadata:
- •title: Post title in Korean
- •description: 1-2 sentence summary
- •tags: Array of relevant tags (check existing posts for consistency)
- •
Create
content/blog/<slug>.mdxwith frontmatter:yaml--- title: '<user provided>' description: '<user provided>' date: '<today YYYY-MM-DD>' tags: [<user provided>] ---
- •
Add a starter outline based on the title/description
- •
Verify the post renders by checking that
getAllPosts()insrc/lib/posts.tswould pick it up
Constraints
- •Frontmatter fields: title (string), description (string), date (YYYY-MM-DD), tags (string[])
- •Slug format:
/^[a-z0-9]+(-[a-z0-9]+)*$/ - •All content should be in Korean unless the user specifies otherwise
- •Code blocks must always have a language identifier