github-pr-issue

查看/更新 GitHub Issue、PR(含评论与 diff),并按团队规范非交互创建或修改 PR;涉及 GitHub Issue/PR 的操作时使用。

242 stars

Best use case

github-pr-issue is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. 查看/更新 GitHub Issue、PR(含评论与 diff),并按团队规范非交互创建或修改 PR;涉及 GitHub Issue/PR 的操作时使用。

查看/更新 GitHub Issue、PR(含评论与 diff),并按团队规范非交互创建或修改 PR;涉及 GitHub Issue/PR 的操作时使用。

Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.

Practical example

Example input

Use the "github-pr-issue" skill to help with this workflow task. Context: 查看/更新 GitHub Issue、PR(含评论与 diff),并按团队规范非交互创建或修改 PR;涉及 GitHub Issue/PR 的操作时使用。

Example output

A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.

When to use this skill

  • Use this skill when you want a reusable workflow rather than writing the same prompt again and again.

When not to use this skill

  • Do not use this when you only need a one-off answer and do not need a reusable workflow.
  • Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/github-pr-issue/SKILL.md --create-dirs "https://raw.githubusercontent.com/aiskillstore/marketplace/main/skills/dcjanus/github-pr-issue/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/github-pr-issue/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How github-pr-issue Compares

Feature / Agentgithub-pr-issueStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

查看/更新 GitHub Issue、PR(含评论与 diff),并按团队规范非交互创建或修改 PR;涉及 GitHub Issue/PR 的操作时使用。

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# GitHub CLI Skill(Issue/PR)

## 链接快速查看
- Issue:`gh issue view <url>`。
- PR 详细信息(YAML,推荐):直接调用脚本 [read_pr.py](scripts/read_pr.py)。
  - 说明:`gh` 没有简单的一条命令可一次性获取多类 PR 信息,因此封装 `read_pr.py` 按需拉取并拼接输出。
  - 建议:查看 PR 时尽量一次性调用该脚本获取所需信息,避免多次调用 `gh` 带来的额外开销。
  - 在当前 `SKILL.md` 所在目录执行:`./scripts/read_pr.py https://github.com/OWNER/REPO/pull/123`
  - 必须直接当作可执行文件执行。
  - 可选参数示例:
    - `--with-diff`:包含 diff。
    - `--with-body`:包含 PR body。
    - `--with-reviews` / `--with-review-comments` / `--with-comments`:按需包含评审/评审评论/评论。
    - `--with-files` / `--with-commits` / `--with-stats`:按需包含文件/提交/统计。
    - `--with-rate-limit`:输出 rate limit 信息(limit/remaining/reset_at)。
    - `--reviews-limit 50` / `--comments-limit 50` / `--review-comments-limit 50`:调整拉取数量。
    - `--files-limit 100` / `--commits-limit 100`:调整文件/提交数量。

## 创建 Issue(非交互)
1. 标题与描述风格同 PR,内容保持简洁清晰。
2. 用 `--body-file` 传多行描述,避免交互式编辑:
   ```bash
   gh issue create --title "feat: short summary" --body-file - <<'EOF'
   # 按上面的格式填充正文
   EOF
   ```
3. Issue 创建成功后,在终端**单独一行**输出 CLI 返回的完整 Issue URL。

## 创建 PR
以下标题与描述规范为默认推荐格式;如与团队/仓库/平台等既有约束冲突,以既有约束为准。若有明确要求(如需中文),则优先遵循。
1. 确认 `git status` 干净,`git push` 到远端。
2. 标题风格:英文、遵循语义化提交规范(如 `feat(scope): short summary`),简洁且描述核心目的;即使标题要求中文,语义化前缀仍需英文。
3. 描述风格:英文、短句和项目符号,优先让不看代码的读者也能理解动机与结果。重点是 what/why/impact 与必要约束,避免流水账与开发过程细节。若上下文不足以明确目标或约束,应主动向开发者确认后再撰写。涉及专有名词、函数名、方法名、类名、API 名称或配置键时,使用 inline code(反引号)包裹以提升可读性与准确性。
4. 期望正文格式(精简但信息完整,按需删减无关块):
   - `## Summary`:用 1-2 条短句从功能层面概述目的与影响,强调功能变更而非逐条代码变更;跨层(如 Service/DAO)且语义一致的改动应合并为一次功能描述。
   - `## Key changes`:3-5 条要点列出主要变更。
   - `## Constraints / tradeoffs`:若存在约束、限制或非理想选择,简要说明。
   - `## Testing`:验证方式、命令或场景;未测试需注明原因。
   - `## Notes`(可选):reviewers 关注点、发布注意事项或后续计划。
5. 用非交互式命令创建 PR,正文统一通过 `--body-file` 传入:
   ```bash
   gh pr new --title "feat(scope): short semantic summary" --body-file - <<'EOF'
   # 按上面的格式填充正文
   EOF
   ```
   - 可追加 `--base <branch>`、`--draft` 等参数。
   - 多行正文只能通过 `--body-file` 传入,避免在 `--body` 中写 `\n`。
6. `gh pr edit` 与 `gh pr new` 参数一致,需修改时复用。
7. PR 创建成功后,在终端**单独一行**输出 CLI 返回的完整 PR URL。

## 更新 Issue/PR 标题或描述(前置要求)
在更新 Issue 或 PR 的标题/描述之前,必须先读取当前标题/正文(即将被修改的内容),再进行修改。

Related Skills

github-release-assistant

242
from aiskillstore/marketplace

Generate bilingual GitHub release documentation (README.md + README.zh.md) from repo metadata and user input, and guide release prep with git add/commit/push. Use when the user asks to write or polish README files, create bilingual docs, prepare a GitHub release, or mentions release assistant/README generation.

issue-triage

242
from aiskillstore/marketplace

GitHub Issue 处理协作流程。当用户收到 issue 需要分析和回复时使用。通过"诊断 → 定性 → 决策 → 回复"四步法,从一个 issue 产出准确的根因分析和得体的用户回复,避免误判问题类型或回复不专业。

github-repo-search

242
from aiskillstore/marketplace

帮助用户搜索和筛选 GitHub 开源项目,输出结构化推荐报告。当用户说"帮我找开源项目"、"搜一下GitHub上有什么"、"找找XX方向的仓库"、"开源项目推荐"、"github搜索"、"/github-search"时触发。

github-actions-docs

242
from aiskillstore/marketplace

Use when users ask how to write, explain, customize, migrate, secure, or troubleshoot GitHub Actions workflows, workflow syntax, triggers, matrices, runners, reusable workflows, artifacts, caching, secrets, OIDC, deployments, custom actions, or Actions Runner Controller, especially when they need official GitHub documentation, exact links, or docs-grounded YAML guidance.

team-collaboration-issue

242
from aiskillstore/marketplace

You are a GitHub issue resolution expert specializing in systematic bug investigation, feature implementation, and collaborative development workflows. Your expertise spans issue triage, root cause an

github-issue-creator

242
from aiskillstore/marketplace

Convert raw notes, error logs, voice dictation, or screenshots into crisp GitHub-flavored markdown issue reports. Use when the user pastes bug info, error messages, or informal descriptions and wants a structured GitHub issue. Supports images/GIFs for visual evidence.

github-automation

242
from aiskillstore/marketplace

Automate GitHub repositories, issues, pull requests, branches, CI/CD, and permissions via Rube MCP (Composio). Manage code workflows, review PRs, search code, and handle deployments programmatically.

github-actions-templates

242
from aiskillstore/marketplace

Create production-ready GitHub Actions workflows for automated testing, building, and deploying applications. Use when setting up CI/CD with GitHub Actions, automating development workflows, or creating reusable workflow templates.

address-github-comments

242
from aiskillstore/marketplace

Use when you need to address review or issue comments on an open GitHub Pull Request using the gh CLI.

reporting-issues

242
from aiskillstore/marketplace

Use this skill when you need to report on a troubleshooting session

github-elements-tracking

242
from aiskillstore/marketplace

This skill should be used when the user asks to "track work across sessions", "create an epic", "manage issue waves", "post a checkpoint", "claim an issue", "recover from compaction", "coordinate multiple agents", "update memory bank", "store large documents", or mentions GitHub Issues as persistent memory, multi-session work, context survival, agent collaboration, SERENA MCP memory, or project-level context. Provides complete protocols for using GitHub Issues as permanent memory that survives context exhaustion, with integrated SERENA MCP memory bank for project-level context and large document storage.

when-reviewing-github-pr-use-github-code-review

242
from aiskillstore/marketplace

Comprehensive GitHub pull request code review using multi-agent swarm with specialized reviewers for security, performance, style, tests, and documentation. Coordinates security-auditor, perf-analyzer, code-analyzer, tester, and reviewer agents through mesh topology for parallel analysis. Provides detailed feedback with auto-fix suggestions and merge readiness assessment. Use when reviewing PRs, conducting code audits, or ensuring code quality standards before merge.