用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ntygod/ZhiWei --skill github-workflow命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
当用户要生成 Word/Excel/PowerPoint、做文档格式转换(Markdown ↔ HTML ↔ DOCX ↔ PDF)、PDF 文本提取、读写 Excel、合并文档或批量转换时使用。
当用户要手动创作或改写一个新的知微 Skill、需要 v2 规范示例模板、排查 description/body 校验失败原因或打磨 metadata.zhiwei 元数据时使用。
当用户要测试或调试 REST / GraphQL 接口、验证响应格式、对比接口文档与实际行为、生成 Mock 数据时使用。
基于 SOC 职业分类
正在显示 SKILL.md
| name | github-workflow |
| description | 当用户要操作 GitHub PR / Issue / CI、代码审查、合并 PR、查看工作流运行、读取或更新远程仓库文件时使用。 |
| version | 2.1.0 |
| metadata | {"zhiwei":{"tags":["github","pr","issue","ci","code-review","gh-cli","actions"],"suggested_tools":["shell_exec","web_fetch","file_read","file_write"],"requires":{"bins":"[Truncated]","env":"[Truncated]"}}} |
gh CLI + REST/GraphQL API 管理 GitHub PR / Issue / CI / 代码审查。
shell_exec / shell_execshell_exec 调对应 CLI 或 API| 操作 | 路径 |
|---|---|
| 本地 commit + push + 创 PR | shell_exec(command="git add ... && git commit -m '...'") → shell_exec(command="git push") → gh pr create |
| 仅 GitHub 侧(看 / 评论 / 合并 PR) | shell_exec + gh pr ... |
| Issue 创建 / 查询 / 评论 | shell_exec + gh issue ... |
| CI 状态 + 失败排查 | shell_exec + gh run list / view --log-failed |
| 代码审查(拉 diff + 留意见) | gh pr diff + gh pr review |
| 远程文件直改(不 clone) | shell_exec + gh api(Contents API) |
| 复杂查询(跨仓 / 批量) | gh api graphql 或 web_fetch GraphQL |
各路径要点:
gh pr checks <pr> 看全绿shell_exec 执行since / until 限定范围;结果太多缩窗口而不是 --paginateGITHUB_TOKEN 由系统注入,命令里不写明文{skill_dir}/references/gh-cli-reference.md{skill_dir}/references/content-api.md