← 返回 Skills 市场
kretkas

GitHub Workflow

作者 Kretka · GitHub ↗ · v1.2.0 · MIT-0
cross-platform ✓ 安全检测通过
21
总下载
1
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install github-workflow-main
功能描述
Professional GitHub workflows via gh CLI. Use for repos, branches, PRs, CI/CD, releases, versioning, secrets, issues. Trigger on: GitHub, git, repo, PR, bran...
使用说明 (SKILL.md)

GitHub Skill

gh CLI for all operations. Always --repo owner/repo outside a git directory.

Security (always)

  • Auth: gh auth login --web or GITHUB_TOKEN env var
  • Secrets: gh secret set NAME --repo owner/repo (interactive, never --body)
  • Never print/log tokens. gh auth status to 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
安全使用建议
This skill appears benign and purpose-aligned for GitHub work. Before installing or using it, make sure the active GitHub account/token has only the permissions needed, verify the target repository for every command, and require explicit confirmation before merges, releases, workflow changes, secret updates, branch-protection changes, or deletion/archive actions.
功能分析
Type: OpenClaw Skill Name: github-workflow-main Version: 1.2.0 The skill bundle provides a comprehensive and well-documented set of instructions for managing GitHub workflows using the 'gh' CLI. It includes explicit security best practices (e.g., pinning Actions to SHAs, avoiding token logging) and consistently mandates user confirmation for sensitive or destructive operations like deleting repositories, merging PRs, or setting secrets across all reference files (e.g., SKILL.md, repo-setup.md, secrets-envs.md).
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The documented capabilities match the stated GitHub workflow purpose, including PRs, issues, CI, releases, secrets, and branch protection. Some actions are high-impact but are disclosed.
Instruction Scope
The skill documents broad gh CLI/API operations. Many destructive or publishing operations explicitly say to confirm with the user first, which keeps the behavior purpose-aligned.
Install Mechanism
There is no install spec and no code files, so there is no hidden executable payload in the provided artifacts. However, the metadata does not declare the gh binary or GitHub credential requirement even though SKILL.md expects them.
Credentials
GitHub authentication via gh auth or GITHUB_TOKEN is expected for this skill, and the instructions include safeguards not to print or log tokens.
Persistence & Privilege
No background persistence or autonomous worker is present, but the skill can make persistent changes to GitHub repositories, such as merges, releases, branch protection, secrets, workflow settings, or deletion when directed.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install github-workflow-main
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /github-workflow-main 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.0
# Changed - Split into `SKILL.md` (core) + 6 reference files — only the relevant section is loaded - ~70% token reduction on typical tasks # Added - `⚠️ CONFIRM WITH USER` warnings before all write/delete operations - Git Flow branching strategy: `main → develop → feature/fix/hotfix/release` - Branch protection via `gh api` - Semantic versioning with MAJOR/MINOR/PATCH table - Full 10-step workflow: issue → branch → PR → merge → release - CI best practices checklist for `.github/workflows/` - Security rules: no token exposure, `gh auth login --web` only # Removed - Monolithic single-file structure
v1.1.0
**Summary:** Added comprehensive reference documentation and migrated to professional `gh` CLI workflows. - Switched to the `gh` CLI for all GitHub operations; removed previous MorphixAI integration. - Added six reference files covering repo setup, pull requests, CI actions, releases, secrets, and API queries. - Documented security best practices: authentication, secret handling, branch protection. - Provided concise command references for common GitHub tasks. - Detailed standard branching model and commit conventions.
元数据
Slug github-workflow-main
版本 1.2.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

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。

💬 留言讨论