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:
yaml
--- title: "Note Title" # Required (auto-generated from filename if omitted) date: 2025-12-25 # Required (auto-extracted from filename or defaults to today) description: "Summary" # Optional, max 500 chars tags: # Optional, lowercase alphanumeric with hyphens - javascript - tutorial draft: false # Optional, set true to hide from publication ---
Pages (src/content/pages/)
Evergreen documentation pages without dates.
Filename convention: slug.md
- •Example:
getting-started.md
Frontmatter:
yaml
--- title: "Page Title" # Required (auto-generated from filename if omitted) description: "Description" # Optional, max 500 chars order: 1 # Optional, controls sidebar ordering ---
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
markdown
--- title: "Getting Started with TypeScript" date: 2025-12-25 tags: - typescript - tutorial --- Your content here...
Minimal Page
markdown
--- 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?