← 返回 Skills 市场
thatgfsj

github-pr-automation

作者 Thatgfsj · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
239
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install github-pr-automation
功能描述
Automate GitHub contributions by finding good first issues, analyzing projects, forking, implementing fixes, and submitting pull requests efficiently.
使用说明 (SKILL.md)

GitHub PR Automation Skill

A skill for automating GitHub open-source contributions - from finding good first issues to submitting PRs.

Trigger Words

"开源贡献", "GitHub贡献", "find issue", "good first issue", "提交PR", "贡献项目"

Overview

This skill helps you:

  1. Search GitHub for good first issues
  2. Analyze project activity and difficulty
  3. Fork, clone, and create branches
  4. Implement the fix
  5. Submit Pull Request
  6. Set up daily contribution cron jobs

Workflow

Phase 1: Search & Filter

Search for good first issues using GitHub CLI:

gh search issues "label:good-first-issue language:python created:>2026-01-01"
gh search repos "good first issue" --limit 20

Selection criteria:

  • Project activity (recent commits in 3 months)
  • Language match (Python, JS, Go, etc.)
  • Response speed (maintainers active on issues)
  • Appropriate difficulty (clear scope, not refactoring entire codebase)

Output: 3-5 candidate issues with links, tech stack, and recommendations.

Phase 2: Analysis & Planning

  1. Read project docs: README.md, CONTRIBUTING.md
  2. Clone and explore locally
  3. Create implementation plan
  4. Draft a comment for the issue (in English)

Example issue comment:

Hi! I'd like to work on this issue. I plan to...

My approach:
1. ...
2. ...

Is this direction okay?

Phase 3: Development

  1. Fork: gh repo fork owner/repo
  2. Clone: gh repo clone yourname/repo
  3. Branch: git checkout -b fix/issue-xxx
  4. Implement fix
  5. Test locally if possible
  6. Commit: Follow Conventional Commits

Example commit message:

feat: add audio resampling utility

- Add resample_wav() function with linear interpolation
- Add resample CLI command

Assisted development. Original: owner/repo (MIT License)
Ref: https://github.com/owner/repo/issues/123

Phase 4: Submit PR

  1. Push: git push -u origin fix/issue-xxx
  2. Try to create PR via gh:
# Method 1: gh pr create (if token has repo scope)
gh pr create --title "feat: description" --body "PR description"

# Method 2: Use gh api directly
gh api repos/OWNER/repo/pulls -X POST -f title="PR title" -f body="PR body" -f head="branch-name" -f base="main"

# Method 3: If all above fails, provide manual link
echo "PR creation failed. Create manually at: https://github.com/OWNER/repo/pull/new/branch-name"

If token lacks repo scope, PR creation will fail. Always provide manual link as fallback.

PR description template:

## Summary

Brief description of changes.

## Changes

- Change 1
- Change 2

## Testing

How was this tested?

## Declaration

This is assisted development. Original project: owner/repo (LICENSE)
Reference: https://github.com/owner/repo/issues/123

Phase 5: Daily Cron Job

Set up daily contribution task:

cron add --name "Daily GitHub Contribution" \
  --schedule "0 8 * * *" \
  --timezone "Asia/Shanghai" \
  --message "Search for good first issues and contribute..." \
  --channel "qqbot"

Important Notes

  1. Respect licenses: MIT, Apache 2.0, GPL, etc.
  2. Follow CONTRIBUTING.md: Read and adhere to guidelines
  3. Communicate first: Comment on issue before writing code
  4. Declare assisted development: Always credit original authors
  5. Quality over quantity: Test code, run linters

Tools Used

  • gh - GitHub CLI for all GitHub operations (primary tool)
  • git - Version control
  • Web search/fetch - For finding issues
  • gh api - Direct GitHub API calls as fallback for PR creation

Constraints

  • Token needs repo scope for full automation
  • Some operations may require manual intervention if token lacks permissions
  • Always clean up local files after contribution

Last updated: 2026-03-17

安全使用建议
This skill's instructions are plausible for automating GitHub contributions, but the package metadata omits important operational requirements. Before installing or running it: (1) require the author to explicitly declare required binaries (gh, git, and the cron tool) and the exact environment variable name(s) (e.g., GH_TOKEN) and scopes needed; (2) avoid supplying a full-privilege personal token — create a minimal machine/service token or use an OAuth flow and restrict to specific repos where possible; (3) verify what the 'cron add' command refers to and whether it will post to an external channel (qqbot) — do not expose messaging/webhook credentials without review; (4) run the workflow in a sandboxed account or repo first to confirm behavior; (5) prefer interactive/manual PR creation if you cannot limit token scope. If the author cannot clarify the missing declarations, treat the skill as untrusted.
功能分析
Type: OpenClaw Skill Name: github-pr-automation Version: 1.0.0 The skill bundle provides a legitimate workflow for automating GitHub open-source contributions using standard tools like the GitHub CLI (`gh`) and `git`. While it includes a persistence mechanism via a scheduled cron job in `SKILL.md` to automate daily issue discovery, this behavior is transparently documented and directly supports the stated purpose of the skill. No evidence of data exfiltration, credential theft, or malicious prompt injection was found.
能力评估
Purpose & Capability
The skill claims to automate finding issues, forking, implementing fixes, and creating PRs — that purpose legitimately requires git/gh and a GitHub token with repo scope. However, the skill metadata declares no required binaries or environment variables. That omission is an incoherence: consumers would reasonably need to provide GH credentials and have gh/git installed.
Instruction Scope
SKILL.md instructs the agent/operator to clone repos, read README.md/CONTRIBUTING.md, implement fixes locally, push branches, and create PRs via gh api — all within scope. However it also instructs setting up a daily cron job that posts a message to a channel (qqbot) using a non-standard 'cron add' invocation. The doc references token behavior but does not declare or limit where credentials should come from or how they are stored. The cron step and the implicit credential usage broaden the runtime scope beyond what's declared.
Install Mechanism
This is an instruction-only skill with no install spec (low file-write risk). Still, it depends on external binaries (gh, git, and an unspecified cron tool). The manifest did not declare these required binaries; users need to ensure these tools are present from trusted sources before running the workflow.
Credentials
The skill clearly requires a GitHub token with 'repo' scope for full automation (it even notes this), but the metadata declares no required environment variables or primary credential. That mismatch prevents the platform or user from making an informed decision about providing secrets. Additionally, the cron example references an external channel ('qqbot') and messaging, which may require additional credentials or network hooks that are not disclosed.
Persistence & Privilege
always is false and the skill does not request persistent platform privileges. It does instruct creating local clones and a cron job, but it does not claim to modify other skills or global agent settings. Autonomous invocation is allowed by default (not by the skill), which is expected.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install github-pr-automation
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /github-pr-automation 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of GitHub PR Automation Skill. - Automates open-source contributions: from finding issues to submitting PRs. - Supports searching and filtering “good first issues” based on project activity and language. - Guides through cloning, branching, implementation, and commit best practices. - Provides multiple PR submission methods (GitHub CLI, API, manual link fallback). - Includes daily cron job support for routine contributions. - Emphasizes licensing, communication, project guidelines, and code quality.
元数据
Slug github-pr-automation
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

github-pr-automation 是什么?

Automate GitHub contributions by finding good first issues, analyzing projects, forking, implementing fixes, and submitting pull requests efficiently. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 239 次。

如何安装 github-pr-automation?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install github-pr-automation」即可一键安装,无需额外配置。

github-pr-automation 是免费的吗?

是的,github-pr-automation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

github-pr-automation 支持哪些平台?

github-pr-automation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 github-pr-automation?

由 Thatgfsj(@thatgfsj)开发并维护,当前版本 v1.0.0。

💬 留言讨论