File contents /up-blog-Wiki — 更新博客对外 Wiki
触发条件
用户输入 /up-blog-Wiki
用户说"更新博客 wiki"、"同步 wiki"
作用
将 posts/ 下的博客文章索引同步到 wiki/,保持对外链接正常跳转。
执行流程
1. 扫描 posts/ 目录
遍历 posts/ 下四个分类目录,读取每篇文章的 frontmatter:
提取:title、published、tags、category、draft
跳过 draft: true 的草稿
按 published 日期降序排列
2. 更新 sources/ 分类页
更新以下 4 个文件,每个对应一个 posts 分类:
文件
对应目录
wiki/sources/aihacks.md
posts/AIHacks/
wiki/sources/software.md
posts/Software/
wiki/sources/technical.md
posts/Technical/
wiki/sources/workflow.md
posts/Workflow/
每个文件格式:
# Source: <分类名>
## Overview
<分类描述>
- **文章数**:X
- **最近更新**:YYYY-MM-DD
## File Listing
| 文件 | 标题 | 主题 | 日期 |
|------|------|------|------|
| [文件名.md](../../content/posts/分类/文件名.md) | 标题 | 主题 | 日期 |
## Key Exports
- <该分类的核心产出总结>
链接格式 :必须使用 ../../content/posts/<分类>/<文件名>.md 相对路径,确保博客网页渲染后正常跳转。
3. 更新 overview.md
更新文章总数、各分类文章数、占比、最近更新日期
更新「最近更新」列表(取全局最新 10 篇)
保持现有格式不变
4. 更新 index.md
更新 sources 区域的文章数
如有新增/删除的 entities、concepts、synthesis 页面,同步更新
5. 链接校验
扫描 wiki/ 下所有 .md 文件中的链接:
检查 ../../content/posts/... 路径对应的文件是否存在
检查 wiki 内部链接(entities/、concepts/、sources/、synthesis/)目标是否存在
检查是否有多余的分类页(如已删除的 xenia.md、zen.md)
报告所有断链
6. 更新 log.md
在 wiki/log.md 顶部追加:
## YYYY-MM-DD
- **HH:MM** — 更新 Wiki 统计与分类索引
- 重新扫描 posts/ 目录,识别 X 个分类、Y 篇已发布文章
- 更新 sources/ 下各分类页
- 更新 overview、index
- 链接校验:断链 X 处(如有)
约束
不修改 posts/ 下的任何文件
不修改 wiki 的 schema.md、purpose.md、目录.md、meta.json.md(这些是结构定义,不需要随文章更新)
链接格式严格使用 ../../content/posts/... 相对路径
保持现有文件的格式和结构,只更新数据部分
使用简体中文
1 --- 2 name: up-blog-wiki 3 description: Up Blog Wiki 4 --- 5 # /up-blog-Wiki — 更新博客对外 Wiki 6 7 ## 触发条件 8 9 - 用户输入 `/up-blog-Wiki` 10 - 用户说"更新博客 wiki"、"同步 wiki" 11 12 ## 作用 13 14 将 `posts/` 下的博客文章索引同步到 `wiki/`,保持对外链接正常跳转。 15 16 ## 执行流程 17 18 ### 1. 扫描 posts/ 目录 19 20 遍历 `posts/` 下四个分类目录,读取每篇文章的 frontmatter: 21 22 - 提取:`title`、`published`、`tags`、`category`、`draft` 23 - 跳过 `draft: true` 的草稿 24 - 按 `published` 日期降序排列 25 26 ### 2. 更新 sources/ 分类页 27 28 更新以下 4 个文件,每个对应一个 posts 分类: 29 30 | 文件 | 对应目录 | 31 |------|---------| 32 | `wiki/sources/aihacks.md` | `posts/AIHacks/` | 33 | `wiki/sources/software.md` | `posts/Software/` | 34 | `wiki/sources/technical.md` | `posts/Technical/` | 35 | `wiki/sources/workflow.md` | `posts/Workflow/` | 36 37 每个文件格式: 38 39 ```markdown 40 # Source: <分类名> 41 42 ## Overview 43 44 <分类描述> 45 46 - **文章数**:X 47 - **最近更新**:YYYY-MM-DD 48 49 ## File Listing 50 51 | 文件 | 标题 | 主题 | 日期 | 52 |------|------|------|------| 53 | [文件名.md](../../content/posts/分类/文件名.md) | 标题 | 主题 | 日期 | 54 55 ## Key Exports 56 57 - <该分类的核心产出总结> 58 ``` 59 60 **链接格式**:必须使用 `../../content/posts/<分类>/<文件名>.md` 相对路径,确保博客网页渲染后正常跳转。 61 62 ### 3. 更新 overview.md 63 64 - 更新文章总数、各分类文章数、占比、最近更新日期 65 - 更新「最近更新」列表(取全局最新 10 篇) 66 - 保持现有格式不变 67 68 ### 4. 更新 index.md 69 70 - 更新 sources 区域的文章数 71 - 如有新增/删除的 entities、concepts、synthesis 页面,同步更新 72 73 ### 5. 链接校验 74 75 扫描 `wiki/` 下所有 `.md` 文件中的链接: 76 - 检查 `../../content/posts/...` 路径对应的文件是否存在 77 - 检查 wiki 内部链接(`entities/`、`concepts/`、`sources/`、`synthesis/`)目标是否存在 78 - 检查是否有多余的分类页(如已删除的 xenia.md、zen.md) 79 - 报告所有断链 80 81 ### 6. 更新 log.md 82 83 在 `wiki/log.md` 顶部追加: 84 85 ```markdown 86 ## YYYY-MM-DD 87 88 - **HH:MM** — 更新 Wiki 统计与分类索引 89 - 重新扫描 posts/ 目录,识别 X 个分类、Y 篇已发布文章 90 - 更新 sources/ 下各分类页 91 - 更新 overview、index 92 - 链接校验:断链 X 处(如有) 93 ``` 94 95 ## 约束 96 97 - **不修改** `posts/` 下的任何文件 98 - **不修改** wiki 的 schema.md、purpose.md、目录.md、meta.json.md(这些是结构定义,不需要随文章更新) 99 - 链接格式严格使用 `../../content/posts/...` 相对路径 100 - 保持现有文件的格式和结构,只更新数据部分 101 - 使用简体中文
dqtx760/firefly/tree/main/src/content/.claude/skills/up-blog-Wiki commit ed8eef6e81
Frequently asked questions How do I install the up-blog-Wiki skill? Run npx skillmds@latest add dqtx760/up-blog-wiki in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the up-blog-Wiki skill do? Up Blog Wiki It is listed under Coding & Dev Tools on SkillMD.
Is up-blog-Wiki safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with up-blog-Wiki? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is up-blog-Wiki free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published up-blog-Wiki? dqtx760 (@dqtx760) published this skill. Their other Agent Skills are listed on their SkillMD profile.