prs

GitHub

规范 Gemini CLI Bot 的 Git 和 GitHub PR 生命周期管理,包括变更暂存、PR 描述生成及分支管理,确保单点修复并防止内部文件误提交。

tools/gemini-cli-bot/.gemini/skills/prs/SKILL.md google-gemini/gemini-cli

Trigger Scenarios

需要创建或更新 Pull Request 处理 CI 检查失败并重新提交补丁

Install

npx skills add google-gemini/gemini-cli --skill prs -g -y
More Options

Non-standard path

npx skills add https://github.com/google-gemini/gemini-cli/tree/main/tools/gemini-cli-bot/.gemini/skills/prs -g -y

Use without installing

npx skills use google-gemini/gemini-cli@prs

指定 Agent (Claude Code)

npx skills add google-gemini/gemini-cli --skill prs -a claude-code -g -y

安装 repo 全部 skill

npx skills add google-gemini/gemini-cli --all -g -y

预览 repo 内 skill

npx skills add google-gemini/gemini-cli --list

SKILL.md

Frontmatter
{
    "name": "prs",
    "description": "Expertise in managing the Git and GitHub Pull Request lifecycle, including staging changes, generating PR descriptions, and branch management."
}

Skill: GitHub PR & Git Management

Goal

Standardize how the Gemini CLI Bot stages its changes, generates Pull Request descriptions, and manages the lifecycle of both new and existing PRs.

Staging & Patch Preparation (MANDATORY)

If you are proposing fixes and PR creation is enabled (per the System Directive):

  1. Surgical Changes: Only propose a single improvement or fix per PR.
    • No Bundling: You are STRICTLY FORBIDDEN from bundling unrelated changes. Changes are unrelated if they address different root causes.
    • Examples: Do not combine a script fix with a documentation update, an unrelated refactor, or a metrics script update. Metrics and fixes MUST be in separate PRs.
  2. Generate PR Description: Use the write_file tool to create pr-description.md.
    • Title: The very first line MUST be a concise, conventional title.
    • Body: The rest should be the markdown body explaining the change, why it is recommended, and the expected impact.
  3. Stage Fixes: You MUST explicitly stage your fixes using the git add <files> command.
  4. Internal File Protection (CRITICAL): You are STRICTLY FORBIDDEN from staging internal bot management files. If they are accidentally staged, you MUST unstage them using git reset <file>.
    • NEVER STAGE: pr-description.md, lessons-learned.md, branch-name.txt, pr-comment.md, pr-number.txt, issue-comment.md, or anything in history/.

Unblocking & PR Updates (Recovery)

If you are continuing work on an existing Task or responding to a comment on an existing bot PR:

  1. Target Existing Branch: Use write_file to generate branch-name.txt containing the current branch name (e.g., bot/task-BT-01).
  2. Track PR ID: Use write_file to generate pr-number.txt containing the numeric PR ID.
  3. Respond to Maintainers:
    • For general responses, write your markdown comment to issue-comment.md.
    • For specific PR feedback, write your markdown response to pr-comment.md.
  4. Handle CI Failures: Diagnose failing checks using gh run view. Your priority must be generating a new patch and staging it with git add to fix the failure.

Version History

  • e90c63f Current 2026-08-20 16:54

Same Skill Collection

.gemini/skills/agent-tui/SKILL.md
.gemini/skills/async-pr-review/SKILL.md
.gemini/skills/behavioral-evals/SKILL.md
.gemini/skills/ci/SKILL.md
.gemini/skills/code-reviewer/SKILL.md
.gemini/skills/docs-changelog/SKILL.md
.gemini/skills/docs-writer/SKILL.md
.gemini/skills/github-issue-creator/SKILL.md
.gemini/skills/pr-address-comments/SKILL.md
.gemini/skills/pr-creator/SKILL.md
.gemini/skills/review-duplication/SKILL.md
.gemini/skills/string-reviewer/SKILL.md
.gemini/skills/tui-tester/SKILL.md
tools/gemini-cli-bot/.gemini/skills/critique/SKILL.md
tools/gemini-cli-bot/.gemini/skills/memory/SKILL.md
tools/gemini-cli-bot/.gemini/skills/metrics/SKILL.md
packages/sdk/test-data/skills/pirate-skill/SKILL.md

Metadata

Files
0
Version
3c311be
Hash
dace221f
Indexed
2026-08-20 16:54

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-01 18:15
浙ICP备14020137号-1 $bản đồ khách truy cập$