AgentSkillsCN

custom-gh-pr-context

按需获取当前分支的 GitHub PR 任务上下文。当用户请求 PR 详情、PR 摘要,或希望基于已打开的 PR 进行下一步操作时使用。

SKILL.md
--- frontmatter
name: custom-gh-pr-context
description: Fetch GitHub PR task context on demand for the current branch. Use when the user requests PR details, PR summary, or asks to proceed based on the open PR.

Custom GitHub PR Context Fetch

Scope

Run this only for PR-related requests. Do not run on every task.

Commands

bash
gh pr view --json title --jq .title
gh pr view --json body --jq .body
gh pr view --json comments --jq .comments

Behavior

  1. Run the commands above and summarize key task context.
  2. If no PR exists for the current branch, report that PR context is unavailable and continue with non-PR task context.
  3. Do not block implementation when PR is missing unless user explicitly requires PR-based work.