← 返回 Skills 市场
github-pr-knowledge-wiki-sync
作者
zlszhonglongshen
· GitHub ↗
· v1.0.0
· MIT-0
71
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install github-pr-knowledge-wiki-sync
功能描述
GitHub PR 文档自动生成与知识库同步 — 自动抓取PR内容、分析代码变更、生成技术文档并同步到飞书/wiki。
使用说明 (SKILL.md)
GitHub PR 文档自动生成与知识库同步
一条命令完成:PR内容抓取 → 代码变更分析 → 技术文档生成 → 飞书Wiki/企业微信文档同步。
核心价值
- 全自动:只需提供一个 PR 链接,自动完成全流程
- 代码分析:智能解读代码变更,提取新增/删除/修改的核心逻辑
- 多格式输出:支持飞书 Wiki、企业微信文档、Markdown 三种格式
- 团队共享:生成的文档自动发布到团队知识库,永久留存
适用场景
- 开发者合并 PR 后需要快速生成变更记录
- 技术负责人需要将代码变更同步到团队知识库
- 团队使用飞书或企业微信进行文档管理
- 需要为每次发布生成 changelog 文档
工作流程(4步)
Step 1 → 获取 PR 详情(github)
↓
Step 2 → 分析代码变更(code-review)
↓
Step 3 → 生成技术文档(summarize + AI 生成)
↓
Step 4 → 同步到知识库(feishu-wiki / wecom-doc)
使用方法
触发词
"生成PR文档 [PR链接]"
"PR知识库同步 [PR链接]"
"帮我写这个PR的变更文档"
"这个PR改了什么,帮我生成文档"
完整工作流
Step 1:获取 PR 信息
# 使用 github skill 获取 PR 详情
gh pr view \x3CPR_NUMBER> --repo \x3COWNER/REPO> --json title,body,files,commits
Step 2:分析变更文件
# 获取变更文件列表
gh pr diff \x3CPR_NUMBER> --repo \x3COWNER/REPO>
Step 3:生成文档 AI 综合以下信息生成结构化文档:
- PR 标题和描述
- 代码变更文件列表
- 关键代码片段
- Commit 历史
Step 4:同步到知识库
- 飞书 Wiki:
feishu_wiki→ 在指定知识空间创建或更新文档 - 企业微信:
wecom-doc→ 在指定文档库创建文档
输出文档结构
# [PR标题]
## 📋 基本信息
- **仓库**:`owner/repo`
- **PR 编号**:#123
- **作者**:@username
- **合并时间**:2026-04-18
- **状态**:✅ Merged
## 📝 变更摘要
(AI 生成的简短摘要,1-3句话)
## 📂 变更文件
| 文件路径 | 变更类型 | 说明 |
|---------|---------|------|
| src/a.py | ✏️ 修改 | 核心逻辑更新 |
## 🔍 关键代码变更
(列出最重要的代码片段及说明)
## 📌 注意事项
- 需要关注的风险点
- 关联的 Issue 或依赖
注意事项
- 确保
ghCLI 已登录:gh auth login - 飞书 Wiki 需要有目标知识空间的管理权限
- 企业微信文档需要已创建目标文档库
安全使用建议
This skill appears to do what it says: it fetches GitHub PR diffs, analyzes them, generates a Markdown doc, and publishes to Feishu/WeCom or saves locally. Before installing/using it: (1) confirm you have gh CLI logged in (gh auth login) and that the account has only the required repo access; (2) verify the Feishu/WeCom app or credentials used to publish have minimal write scope and point to the intended knowledge space; (3) review whether PRs you will send contain sensitive code, secrets, or confidential info — the skill will include diffs and code snippets in generated docs; (4) prefer the local/markdown output or a restricted test space for initial runs to validate formatting and content before publishing to a production knowledge base.
功能分析
Type: OpenClaw Skill
Name: github-pr-knowledge-wiki-sync
Version: 1.0.0
The skill automates GitHub PR documentation and synchronization to Feishu/Wiki. It is classified as suspicious due to potential vulnerabilities in workflow.json, where user-provided inputs (like prUrl and output path) are used to construct shell commands (gh pr view) and file system paths without explicit sanitization, creating risks for command injection and path traversal. While the intent appears benign and aligned with the documentation in SKILL.md, the reliance on shell execution and broad network access for external synchronization constitutes a high-risk capability profile.
能力评估
Purpose & Capability
Name and description describe fetching GitHub PRs, analyzing diffs, generating docs and syncing to Feishu/WeCom. The SKILL.md and workflow.json consistently call the GitHub CLI and downstream skills (code-review, summarize, feishu-wiki, wecom-doc) to do exactly that; nothing requested is unrelated to the stated purpose.
Instruction Scope
The instructions explicitly run 'gh pr view' and 'gh pr diff' and then send generated content to Feishu or WeCom or write to local disk. This stays inside the declared purpose, but it will read full PR diffs (including code snippets) and transmit the generated document to external services — users should be aware that sensitive code or secrets present in PRs could be published to the target knowledge base.
Install Mechanism
This is an instruction-only skill with no install spec and no code files; nothing is downloaded or written to disk by the skill itself. That minimizes installation risk.
Credentials
The skill declares no required env vars, which is consistent for an instruction-only combo that relies on existing CLIs and external skills. However, the workflow assumes 'gh' is authenticated and that Feishu/WeCom publishing credentials or app permissions are available — those credentials are not managed by this skill and must be provided externally. Ensure those target-service credentials have least privilege necessary.
Persistence & Privilege
always:false and autonomous invocation left enabled (platform default). The skill does not request permanent presence, does not alter other skills' configs, and does not require elevated platform privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install github-pr-knowledge-wiki-sync - 安装完成后,直接呼叫该 Skill 的名称或使用
/github-pr-knowledge-wiki-sync触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- 首次发布 GitHub PR 文档自动生成与知识库同步工具
- 支持自动抓取 PR 内容、分析代码变更、生成结构化技术文档
- 可一键同步文档到飞书 Wiki 或企业微信文档库
- 提供多种触发词,便于集成和使用
- 自动输出适配知识库的 Markdown 文档结构
元数据
常见问题
github-pr-knowledge-wiki-sync 是什么?
GitHub PR 文档自动生成与知识库同步 — 自动抓取PR内容、分析代码变更、生成技术文档并同步到飞书/wiki。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 71 次。
如何安装 github-pr-knowledge-wiki-sync?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install github-pr-knowledge-wiki-sync」即可一键安装,无需额外配置。
github-pr-knowledge-wiki-sync 是免费的吗?
是的,github-pr-knowledge-wiki-sync 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
github-pr-knowledge-wiki-sync 支持哪些平台?
github-pr-knowledge-wiki-sync 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 github-pr-knowledge-wiki-sync?
由 zlszhonglongshen(@zlszhonglongshen)开发并维护,当前版本 v1.0.0。
推荐 Skills