
prepare-post
by jsorge
This is the data that goes into the public folder of a maverick site.
SKILL.md
name: prepare-post description: Adds Maverick metadata to a new blog post, with AI-suggested tags based on content. Use when asked to prepare a post, add metadata, or suggest tags for a blog post. Defaults to the most recent textbundle in _posts or _drafts. allowed-tools: Read, Glob, Grep, Edit, AskUserQuestion
Prepare Post Skill
Add Maverick metadata (io_taphouse_maverick) to new blog posts. This skill reads the post content and suggests relevant tags based on the writing.
Finding the Post
- If a specific post path is provided, use that
- Otherwise, find the most recent textbundle by modification time in both
Public/_posts/andPublic/_drafts/ - Use
ls -tto sort by modification time
Gather Existing Tags
Before suggesting tags, collect all existing tags used across the blog:
find Public/_posts -name "info.json" -exec jq -r '.io_taphouse_maverick.tags[]? // empty' {} \; | sort | uniq
This helps suggest consistent tag naming.
Read the Post
- Read
info.jsonto check ifio_taphouse_maverickalready exists - Read
text.mdto understand the content
If metadata already exists, ask if the user wants to update it.
Suggest and Confirm Metadata
Based on the post content:
- Title: Suggest a title based on the content, or use the textbundle folder name as a starting point
- Short description: Suggest a 1-2 sentence description that would work well in RSS feeds
- Tags: Suggest relevant tags based on:
- The post topic and content
- Existing tags used on the blog (prefer consistency)
- Common categories like: swift, ios, macos, web, tools, personal, etc.
Present suggestions using AskUserQuestion:
Based on your post about [topic], here are my suggestions:
**Title**: [suggested title]
**Description**: [suggested description]
**Tags**: [suggested tags]
Would you like to use these, or customize them?
Allow the user to accept, modify, or provide their own values.
Update info.json
Add the io_taphouse_maverick object with these fields:
{
"io_taphouse_maverick": {
"date": "YYYY-MM-DDTHH:MM:SSZ",
"filename": "",
"layout": "post",
"microblog": false,
"shortdescription": "[user-provided description]",
"staticpage": false,
"tags": ["tag1", "tag2"],
"title": "[user-provided title]"
}
}
- date: Current UTC time in ISO8601 format
- filename: Leave as empty string
- layout: Always "post"
- microblog: Always false
- staticpage: Always false
Use the Edit tool to update info.json, preserving the existing type and version fields.
Output
After updating, show the final metadata:
Updated [post path] with Maverick metadata:
Title: [title]
Description: [description]
Tags: [tags]
Date: [date]
Important
- Always read the post content before suggesting metadata
- Prefer existing tags for consistency
- Keep descriptions concise (1-2 sentences, suitable for RSS)
- Generate the date at the time of running, not from the post content
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です