Claude-skill-registry create-content
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.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/create-content" ~/.claude/skills/majiayu000-claude-skill-registry-create-content && rm -rf "$T"
manifest:
skills/data/create-content/SKILL.mdsource content
Create Content Skill
This skill creates new markdown content files for the readme-pages Astro site.
Content Types
Notes (src/content/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" # 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/
)
src/content/pages/Evergreen documentation pages without dates.
Filename convention:
slug.md
- Example:
getting-started.md
Frontmatter:
--- 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
prefix, or defaults to todayYYYY-MM-DD- - 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?