Skip to content
Agentmart
Submit a tool

github

GitHub 仓库操作与协作 (Use when: 需要 PR/Issue/Release 操作、CI 查询、仓库管理).

Skill by zzycxz

IndexedMIT★ 9
Write a review

Chalk Labs

Need help deploying github?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/zzycxz-github

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

GitHub 仓库操作与协作 (Use when: 需要 PR/Issue/Release 操作、CI 查询、仓库管理). NOT for: 本地 git 操作(用 git-ops).

Use cases: devops

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/github

What's inside

Skill name
github
Description
GitHub 仓库操作与协作 (Use when: 需要 PR/Issue/Release 操作、CI 查询、仓库管理). NOT for: 本地 git 操作(用 git-ops).
License
MIT
Instructions
95 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# GitHub — 仓库操作与协作

通过 `python_interpreter` 工具调用 `gh` CLI,完成 GitHub 平台级别的操作。

## 适用场景

- **PR 管理**:创建、查看、合并 Pull Request
- **Issue 跟踪**:创建、搜索、关闭 Issue
- **Release 发布**:创建版本发布、上传资产
- **CI/CD 查询**:查看 Actions 运行状态和日志
- **仓库浏览**:查看文件、分支、标签
- **团队协作**:Review 请求、评论、标签管理

## PR 操作模板

```python
import subprocess, json

repo = "owner/repo"

# 创建 PR
result = subprocess.run([
    "gh", "pr", "create",
    "--repo", repo,
    "--title", "feat: add new feature",
    "--body", "## Summary\n- Added X\n- Fixed Y\n\n## Test plan\n- [ ] Unit tests pass",
    "--base", "main",
    "--head", "feature-branch",
], capture_output=True, text=True, encoding="utf-8")
print(result.stdout)  # PR URL

# 查看 PR 列表
result = subprocess.run([
    "gh", "pr", "list", "--repo", repo, "--state", "open", "--json",
    "number,title,author,createdAt", "--limit", "20"
], capture_output=True, text=True, encoding="utf-8")
prs = json.loads(result.stdout)
for pr in prs:
    print(f"#{pr['number']} {pr['title']} (@{pr['author']['login']})")
```

## Issue 操作模板

```python
import subprocess, json

repo = "owner/repo"

# 创建 Issue
result = subprocess.run([
    "gh", "issue", "create",
    "--repo", repo,
    "--title", "Bug: description of the issue",
    "--body", "## Steps to reproduce\n1. ...\n\n## Expected\n...\n\n## Actual\n...",
    "--label", "bug",
    "--assignee", "@me",
], capture_output=True, text=True, encoding="utf-8")
print(result.stdout)

# 搜索 Issue
result = subprocess.run([
    "gh", "issue", "list", "--repo", repo,
    "--search", "is:open label:bug",
    "--json", "number,title,labels", "--limit", "10"
], capture_output=True, text=True, encoding="utf-8")
print(result.stdout)
```

## CI/Actions 查询

```python
import subprocess, json

repo = "owner/repo"

# 查看最近运行
result = subprocess.run([
    "gh", "run", "list", "--repo", repo, "--limit", "5",
    "--json", "status,conclusion,headBranch,createdAt,name"
], capture_output=True, text=True, encoding="utf-8")
runs = json.loads(result.stdout)
for run in runs:
    status = run.get("conclusion") or run.get("status")
    print(f"[{status}] {run['name']} ({run['headBranch']}) - {run['createdAt']}")
```

## 注意事项

1. **认证前提**:需要 `gh auth login` 已完成(检查 `gh auth status`)
2. **JSON 输出**:始终使用 `--json` 参数获取结构化数据,避免解析纯文本
3. **分页控制**:大量数据时使用 `--limit` 控制,默认 30 条
4. **权限范围**:某些操作需要 `repo` 或 `workflow` scope 授权
5. **速率限制**:GitHub API 有频率限制,批量操作需加延迟

From zzycxz/rooster, MIT.

More from zzycxz/rooster

Signals

Stars
9
Forks
0
Open issues
0
Last commit (this folder)
Jun 9, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from zzycxz

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get github running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying github?

CallGet help
Cite this page

github skill. Agent Mart. https://agentmart.dev/skills/zzycxz-github (last updated 2026-10-24)