← Back to Skills Marketplace
github-pr-knowledge-wiki-sync
by
zlszhonglongshen
· GitHub ↗
· v1.0.0
· MIT-0
71
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install github-pr-knowledge-wiki-sync
Description
GitHub PR 文档自动生成与知识库同步 — 自动抓取PR内容、分析代码变更、生成技术文档并同步到飞书/wiki。
README (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 需要有目标知识空间的管理权限
- 企业微信文档需要已创建目标文档库
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install github-pr-knowledge-wiki-sync - After installation, invoke the skill by name or use
/github-pr-knowledge-wiki-sync - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- 首次发布 GitHub PR 文档自动生成与知识库同步工具
- 支持自动抓取 PR 内容、分析代码变更、生成结构化技术文档
- 可一键同步文档到飞书 Wiki 或企业微信文档库
- 提供多种触发词,便于集成和使用
- 自动输出适配知识库的 Markdown 文档结构
Metadata
Frequently Asked Questions
What is github-pr-knowledge-wiki-sync?
GitHub PR 文档自动生成与知识库同步 — 自动抓取PR内容、分析代码变更、生成技术文档并同步到飞书/wiki。 It is an AI Agent Skill for Claude Code / OpenClaw, with 71 downloads so far.
How do I install github-pr-knowledge-wiki-sync?
Run "/install github-pr-knowledge-wiki-sync" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is github-pr-knowledge-wiki-sync free?
Yes, github-pr-knowledge-wiki-sync is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does github-pr-knowledge-wiki-sync support?
github-pr-knowledge-wiki-sync is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created github-pr-knowledge-wiki-sync?
It is built and maintained by zlszhonglongshen (@zlszhonglongshen); the current version is v1.0.0.
More Skills