← Back to Skills Marketplace
534422530

GitHub操作助手

by 534422530 · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ⚠ suspicious
35
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install laosi-github
Description
GitHub操作助手 - PR/Issue/代码搜索/仓库管理,基于gh CLI。v2新增:CI状态监控、Release管理、Code Review辅助
README (SKILL.md)

\r \r

GitHub Helper - GitHub操作助手\r

\r

激活词: GitHub / PR操作 / Issue管理\r \r

功能\r

\r

  • PR创建和管理\r
  • Issue操作\r
  • 仓库浏览\r
  • 代码搜索\r
  • 代码审查\r \r

安装\r

\r

# Windows\r
winget install gh\r
\r
# 登录\r
gh auth login\r
```\r
\r
## 命令参考\r
\r
### PR操作\r
\r
```bash\r
# 创建PR\r
gh pr create --title "标题" --body "描述"\r
\r
# 查看PR列表\r
gh pr list --state open\r
\r
# PR详情\r
gh pr view 123\r
\r
# 合并PR\r
gh pr merge 123 --squash\r
\r
# 评论PR\r
gh pr comment 123 --body "评论内容"\r
```\r
\r
### Issue操作\r
\r
```bash\r
# 创建Issue\r
gh issue create --title "标题" --body "描述"\r
\r
# 查看Issue列表\r
gh issue list --state open\r
\r
# 关闭Issue\r
gh issue close 456\r
```\r
\r
### 仓库操作\r
\r
```bash\r
# 查看仓库\r
gh repo view\r
\r
# 克隆仓库\r
gh repo clone owner/repo\r
\r
# 查看代码\r
gh search code "keyword"\r
```\r
\r
## Python封装\r
\r
```python\r
import subprocess\r
\r
class GitHubHelper:\r
    def __init__(self, repo: str = None):\r
        self.repo = repo\r
    \r
    def create_pr(self, title: str, body: str = "") -> str:\r
        result = subprocess.run(\r
            ["gh", "pr", "create", "--title", title, "--body", body],\r
            capture_output=True, text=True\r
        )\r
        return result.stdout.strip()\r
    \r
    def list_prs(self, state: str = "open") -> list:\r
        result = subprocess.run(\r
            ["gh", "pr", "list", "--state", state, "--json", "number,title,state"],\r
            capture_output=True, text=True\r
        )\r
        import json\r
        return json.loads(result.stdout)\r
    \r
    def create_issue(self, title: str, body: str = "") -> str:\r
        result = subprocess.run(\r
            ["gh", "issue", "create", "--title", title, "--body", body],\r
            capture_output=True, text=True\r
        )\r
        return result.stdout.strip()\r
    \r
    def search_code(self, query: str, repo: str = None) -> list:\r
        cmd = ["gh", "search", "code", query, "--json", "path,repository"]\r
        if repo:\r
            cmd.extend(["--repo", repo])\r
        result = subprocess.run(cmd, capture_output=True, text=True)\r
        import json\r
        return json.loads(result.stdout)\r
```\r
\r
## 使用场景\r
\r
1. 自动化PR审查流程\r
2. 批量Issue管理\r
3. 代码搜索分析\r
4. 仓库状态监控\r
Usage Guidance
Install only if you are comfortable with an agent using your logged-in GitHub CLI context. Before allowing merges, issue closures, releases, or comments, require explicit repository, PR or issue number, and a confirmation step.
Capability Assessment
Purpose & Capability
The skill’s stated purpose is GitHub PR, issue, repository, search, review, CI, and release help via the gh CLI, which matches the documented commands.
Instruction Scope
The activation phrase includes the broad term “GitHub,” and the command reference includes state-changing operations such as PR merge and issue close without explicit confirmation, repo validation, or dry-run guidance.
Install Mechanism
The package declares only a dependency on the gh binary and no install scripts; the documented setup is installing gh and running gh auth login.
Credentials
Using the authenticated gh CLI is proportionate for GitHub automation, but it can act on repositories available to the logged-in account.
Persistence & Privilege
The skill does not add persistence or background workers, but gh auth login relies on local GitHub authentication state outside the skill.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install laosi-github
  3. After installation, invoke the skill by name or use /laosi-github
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.0.0
Version 2.0.0 introduces major new features and improvements: - Added CI状态监控 (CI status monitoring) for repositories. - Introduced Release管理 (Release management) capabilities. - Enhanced Code Review辅助 (code review assistance) features. - Updated documentation and usage examples. - Skill name changed to github-helper for clarity.
Metadata
Slug laosi-github
Version 2.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is GitHub操作助手?

GitHub操作助手 - PR/Issue/代码搜索/仓库管理,基于gh CLI。v2新增:CI状态监控、Release管理、Code Review辅助. It is an AI Agent Skill for Claude Code / OpenClaw, with 35 downloads so far.

How do I install GitHub操作助手?

Run "/install laosi-github" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is GitHub操作助手 free?

Yes, GitHub操作助手 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does GitHub操作助手 support?

GitHub操作助手 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created GitHub操作助手?

It is built and maintained by 534422530 (@534422530); the current version is v2.0.0.

💬 Comments