一键导入
blog-writer
帮助用户按照 astro-koharu 博客的规范创建新博文。自动生成正确的 frontmatter 结构、选择合适的分类路径,并提供 Markdown 内容框架建议。使用场景:写一篇博文、创建新文章、写文章、写博客、new post、create blog post。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
帮助用户按照 astro-koharu 博客的规范创建新博文。自动生成正确的 frontmatter 结构、选择合适的分类路径,并提供 Markdown 内容框架建议。使用场景:写一篇博文、创建新文章、写文章、写博客、new post、create blog post。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create beautiful infographics based on the given text content. Use this when users request creating infographics.
Generate or update infographic Structure components for this repo (TypeScript/TSX in src/designs/structures). Use when asked to design, implement, or modify structure layouts (list/compare/sequence/hierarchy/relation/geo/chart), including layout logic, component composition, and registration.
Generate AntV Infographic syntax outputs. Use when asked to turn user content into the Infographic DSL (template selection, data structuring, theme), or to output `infographic <template>` plain syntax.
| name | blog-writer |
| description | 帮助用户按照 astro-koharu 博客的规范创建新博文。自动生成正确的 frontmatter 结构、选择合适的分类路径,并提供 Markdown 内容框架建议。使用场景:写一篇博文、创建新文章、写文章、写博客、new post、create blog post。 |
帮助用户按照 astro-koharu 博客的规范创建新博文。
当用户请求创建新博文时:
收集必要信息(如果用户未提供):
生成 frontmatter:
---
title: [文章标题]
link: [URL slug,使用英文短横线分隔]
catalog: true
date: [当前日期时间,格式:YYYY-MM-DD HH:mm:ss]
description: [一句话描述文章内容,50-100字]
tags:
- [相关标签1]
- [相关标签2]
- [相关标签3]
categories:
- [一级分类, 二级分类]
---
分类格式说明:
- [一级分类, 二级分类]- [笔记, 前端] 会创建 URL /categories/note/front-end 和面包屑 "笔记 → 前端"categories: 随笔确定文件路径:
src/content/blog/link 字段值 + .md 扩展名生成 Markdown 内容框架:
笔记 (note/)
_config.yml 中添加映射_config.yml 添加映射工具 (tools/)
随笔 (life/)
周刊 (weekly/)
YAML 格式(重要):
# 嵌套分类(推荐)- 使用数组包裹
categories:
- [笔记, 前端]
# 单个分类 - 直接写分类名
categories: 随笔
URL 和路径映射:
categories: 随笔 → URL: /categories/life → 文件路径: src/content/blog/life/categories: - [笔记, 前端] → URL: /categories/note/front-end → 文件路径: src/content/blog/note/front-end/categories: - [笔记, 前端, CSS] → URL: /categories/note/front-end → 文件路径: src/content/blog/note/front-end/(三级分类作为标签)注意:
- [一级, 二级] 格式如果用户需要创建上述分类之外的新分类,需要:
更新 _config.yml:
category_map:
# 一级分类
随笔: life
笔记: note
工具: tools
周刊: weekly
# 二级分类
前端: front-end
后端: back-end # 新增示例
# 添加新分类映射
新分类名: new-category-slug
创建对应目录:
src/content/blog/ 下创建对应的目录结构src/content/blog/note/back-end/提醒用户:
_config.yml- 分隔react-hooks-guide.md, astro-blog-setup.md## 背景/问题
[描述要解决的问题或技术背景]
## 解决方案
[详细说明解决方法]
### 关键技术点1
[技术细节和代码示例]
### 关键技术点2
[技术细节和代码示例]
## 实践效果
[实际应用效果、性能对比等]
## 总结
[总结要点和经验]
## 简介
[工具/方法简介]
## 安装/准备
[安装步骤或前置条件]
## 基本使用
[基础用法和示例]
## 高级功能
[进阶功能和技巧]
## 实用技巧
[最佳实践和注意事项]
## 总结
[总结和资源链接]
## 引言
[开场白,引出话题]
## 正文
[多个段落展开论述]
## 感悟/总结
[个人思考和总结]
根据文章类型,建议使用信息图的场景:
list-grid-badge-cardsequence-zigzag-steps-underline-textcompare-binary-horizontal-simple-foldchart-column-simple 或 chart-bar-plain-texthierarchy-tree-tech-style-capsule-item创建完博文后:
如果添加了新分类:
_config.yml 中的 category_map运行检查:
pnpm dev 在本地预览pnpm lint:fix 检查格式后续建议:
用户:写一篇关于 React Hooks 使用技巧的文章
你应该:
src/content/blog/note/front-end/react-hooks-best-practices.md- [笔记, 前端] 分类格式)list-grid-badge-card 信息图sequence-zigzag-steps-underline-text 信息图用户:写一篇关于 Node.js 后端开发的文章
你应该:
_config.yml,添加 后端: back-endsrc/content/blog/note/back-end/src/content/blog/note/back-end/nodejs-development.md- [笔记, 后端] 分类格式_config.yml/categories/note/back-end