| name | create-content |
| description | Create new pages or notes in the readme-pages project. Use when the user asks to create, add, or write a new page, note, article, or blog post. This skill handles file creation with proper frontmatter, filename conventions, and placement in the correct content collection. |
Create Content Skill
This skill creates new markdown content files for the readme-pages Astro site.
Content Types
Notes (src/content/notes/)
Dated entries like blog posts, updates, or time-sensitive content.
Filename convention: YYYY-MM-DD-slug.md (date prefix optional but recommended)
- Example:
2025-12-25-my-new-note.md
- Date extracted automatically from filename prefix
Frontmatter:
---
title: "Note Title"
date: 2025-12-25
description: "Summary"
tags:
- javascript
- tutorial
draft: false
---
Pages (src/content/pages/)
Evergreen documentation pages without dates.
Filename convention: slug.md
- Example:
getting-started.md
Frontmatter:
---
title: "Page Title"
description: "Description"
order: 1
---
Workflow
To create a new note:
- Determine the slug from the user's topic (kebab-case)
- Use today's date or a specified date
- Create the file at
src/content/notes/YYYY-MM-DD-slug.md
- Include frontmatter with title, date, and optional tags/description
- Add the markdown content
To create a new page:
- Determine the slug from the user's topic (kebab-case)
- Create the file at
src/content/pages/slug.md
- Include frontmatter with title and optional description/order
- Add the markdown content
Validation Rules
- Title: 1-200 characters, required
- Date (notes only): Must be between 2000-01-01 and today (no future dates)
- Tags: Lowercase alphanumeric with hyphens only, 1-50 chars each
- Description: Max 500 characters
Auto-Generation
The site automatically handles:
- Missing title: Generated from filename (converted to Title Case)
- Missing date (notes): Extracted from
YYYY-MM-DD- prefix, or defaults to today
- Table of contents from headings
- Reading time estimates
- Last modified dates from git history
- Related notes based on tag overlap
Examples
Minimal Note
---
title: "Getting Started with TypeScript"
date: 2025-12-25
tags:
- typescript
- tutorial
---
Your content here...
Minimal Page
---
title: "Installation Guide"
order: 1
---
Your content here...
Ask User For
When creating content, gather:
- Type: Note or Page?
- Title: What should it be called?
- Content: What should it contain? (or ask if they want to provide it)
- Tags (notes only): Any tags to categorize it?
- Draft: Should it be published immediately or saved as draft?