/install github-workflow-main
GitHub Skill
gh CLI for all operations. Always --repo owner/repo outside a git directory.
Security (always)
- Auth:
gh auth login --weborGITHUB_TOKENenv var - Secrets:
gh secret set NAME --repo owner/repo(interactive, never--body) - Never print/log tokens.
gh auth statusto verify.
Quick Reference
| Task | Command |
|---|---|
| Auth check | gh auth status |
| List PRs | gh pr list --repo o/r |
| Create PR | gh pr create --repo o/r --title "..." --base develop --head branch |
| PR checks | gh pr checks \x3Cn> --repo o/r |
| Merge (squash) | gh pr merge \x3Cn> --squash --delete-branch --repo o/r |
| Failed CI logs | gh run view \x3Cid> --log-failed --repo o/r |
| Re-run failed | gh run rerun \x3Cid> --failed-only --repo o/r |
| Create issue | gh issue create --repo o/r --title "..." --body "..." |
| Create release | gh release create vX.Y.Z --repo o/r --title "..." --notes "..." |
| Set secret | gh secret set KEY --repo o/r |
| Branch protect | gh api --method PUT repos/o/r/branches/main/protection ... |
Branching Model
main ← production, protected
develop ← integration
feature/* ← from develop
fix/* ← from develop (reference issue: fix/123-desc)
hotfix/* ← from main (emergency)
release/* ← from develop (prep)
Commit convention: feat: description (#42) / fix: description (#42)
PR merge: --squash for features, --merge for releases.
Semver: MAJOR.MINOR.PATCH — breaking/feature/fix.
When to read reference files
Load only what you need for the current task:
| Task | Read |
|---|---|
| Setting up a new repo, branch protection | references/repo-setup.md |
| PRs, reviews, merge strategies | references/pull-requests.md |
| CI runs, GitHub Actions | references/ci-actions.md |
| Releases, versioning, tags | references/releases.md |
| Secrets, environments | references/secrets-envs.md |
| JSON queries, audit, search | references/api-queries.md |
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install github-workflow-main - 安装完成后,直接呼叫该 Skill 的名称或使用
/github-workflow-main触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
GitHub Workflow 是什么?
Professional GitHub workflows via gh CLI. Use for repos, branches, PRs, CI/CD, releases, versioning, secrets, issues. Trigger on: GitHub, git, repo, PR, bran... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 21 次。
如何安装 GitHub Workflow?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install github-workflow-main」即可一键安装,无需额外配置。
GitHub Workflow 是免费的吗?
是的,GitHub Workflow 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
GitHub Workflow 支持哪些平台?
GitHub Workflow 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 GitHub Workflow?
由 Kretka(@kretkas)开发并维护,当前版本 v1.2.0。