Skill站外收录 @skilllib/skill-2014279376047648769
blogpost-creator
自动化创建各类博客文章,支持根据标题生成友好链接、从网页自动提取标题摘要与发布日期,并按类型存入对应年份目录,同时注入标准化的元数据模板,最后在编辑器中打开供进一步修改。
软件开发 AI 技能
Skills.MD
# Blog Post Creator
Create new blog posts for Xe's site using the hydrate command.
## Usage
Invoke this skill when you want to create a new blog post. The skill will prompt you for:
- **Post type**: blog, linkpost, note, talk, or xecast
- **Title**: The title of your post (for linkposts, can auto-fetch from URL)
- **Description**: A brief description/summary (for linkposts, can auto-fetch from URL)
- **Link URL**: (required for linkposts) The URL this post should redirect to
- **Publication date**: (optional, for linkposts can auto-extract from the page, defaults to today if not found)
- **Custom slug**: (optional, for linkposts will auto-extract from URL basename if not provided)
## What it does
1. **For linkposts**: Extracts slug from URL basename if no custom slug provided (e.g., https://example.com/blog/my-post becomes "my-post")
2. **For other post types**: Generates a URL-friendly slug from your title (or uses your custom slug)
3. **For linkposts**: Can auto-fetch title, description, and publication date from the provided URL
4. Validates that linkposts have a URL provided (prompts if missing)
5. Runs `go run ./cmd/hydrate <kind> <slug>` with the appropriate parameters
6. For linkposts: Updates the `redirect_to` field in the frontmatter with the provided URL
7. **For linkposts**: Adds fetched summary to the post body if available
8. Opens the created file in VS Code for editing
9. Shows you the file location for reference
## File structure
Blog posts are created in:
- `lume/src/blog/<year>/<slug>.mdx` for blog and linkpost
- `lume/src/notes/<year>/<slug>.mdx` for notes
- `lume/src/talks/<year>/<slug>.mdx` for talks
- `lume/src/xecast/<year>/<slug>.mdx` for xecast
## Frontmatter templates
Each post type has its own frontmatter template:
**Blog posts** include hero image configuration:
```yaml
---
title: ""
desc: ""
date: YYYY-MM-DD
hero:
ai: ""
file: ""
prompt: ""
social: false
---
```
**Link posts** include a redirect URL:
```yaml
---
title: ""
date: YYYY-MM-DD
redirect_to: "https://example.com"
---
```
**Other types** (notes, talks, xecast) have simpler frontmatter:
```yaml
---
title: ""
desc: ""
date: YYYY-MM-DD
---
```
## Linkpost Special Features
Linkposts have enhanced functionality:
1. **Automatic slug extraction**: If no custom slug is provided, the skill will extract the basename from the URL (e.g., `https://example.com/blog/my-post` becomes `my-post`)
2. **Auto-fetching content**: The skill can automatically fetch the webpage to extract:
- The page title (used as the post title)
- A summary/description (added to the post body)
- The publication date (used as the post date, defaults to today if not found)
- This saves time and ensures accurate representation of the linked content
Use the extract-meta.js file in this folder to extract meta-information from webpages:
```bash
node extract-meta.js <url>
```
3. **URL handling**: The skill handles redirects and will follow them to get the final content for title/description extraction
## Example Linkpost Workflow
When creating a linkpost with a URL like `https://anubis.techaro.lol/blog/2025/file-abuse-reports`:
1. Skill detects it's a linkpost with a URL
2. Extracts slug "file-abuse-reports" from URL basename
3. Fetches the webpage to get:
- The actual title: "Taking steps to end traffic from abusive cloud providers"
- A summary of the content for the post body
- The publication date from the page (e.g., "2025-01-15")
4. Creates the post with auto-generated slug, fetched title, and extracted date
5. Adds the summary to the post body for context
6. Updates the redirect_to field with the provided URL
## Date Extraction Details
The skill will look for publication dates in various formats:
- **Meta tags**: `<meta property="article:published_time" content="2025-01-15">`
- **JSON-LD structured data**: `"datePublished": "2025-01-15"`
- **HTML5 semantic elements**: `<time datetime="2025-01-15">`
- **Common date patterns in the page content**
- **URL patterns**: Extracts date from URL structure like `/blog/2025/my-post`
If no date is found, it defaults to today's date.
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「blogpost-creator」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次