---
title: Prs Skill for Claude Code
canonical: https://skillselion.com/skills/google-gemini/gemini-cli/prs
content_type: text/markdown
description: "How does the Gemini CLI Bot standardize its Git workflow, enforce single-fix PRs, generate PR descriptions, and recover from CI failures?"
---

# Prs Skill

Title: Prs Skill for Claude Code

> How does the Gemini CLI Bot standardize its Git workflow, enforce single-fix PRs, generate PR descriptions, and recover from CI failures?

Canonical: https://skillselion.com/skills/google-gemini/gemini-cli/prs

How does the Gemini CLI Bot standardize its Git workflow, enforce single-fix PRs, generate PR descriptions, and recover from CI failures?

The GitHub PR & Git Management skill standardizes how the Gemini CLI Bot handles the entire pull request lifecycle. It enforces surgical, single-fix changes per PR, auto-generates standardized PR descriptions, and manages branch/PR metadata files. The skill includes staged file management with strict internal file protection, recovery workflows for existing PRs, and CI failure diagnosis. Developers integrate this when automating code contributions, ensuring conventional commit practices, preventing bundled unrelated changes, and maintaining clean audit trails. Critical guards prevent accidental staging of bot management files like pr-description.md and lessons-learned.md.

## Key facts

- Installs: 157
- GitHub stars: 109,201
- Author: google-gemini
- Repository: google-gemini/gemini-cli
- Install command: `npx skills add https://github.com/google-gemini/gemini-cli --skill prs`
- Last updated: November 27, 2026

## What Prs does

Automate PR lifecycle management, staging, description generation, and CI failure recovery for bot-driven contributions.

Automated code contribution bots risk bundling unrelated changes, creating unclear PR histories, staging sensitive metadata, and failing to respond to CI feedback systematically.

Developers and bot maintainers achieve surgical, traceable, conventional-commit-compliant PRs with clear descriptions, protected metadata, and automated CI recovery.

Best for: Bot-driven code contribution workflows, automated refactoring agents, CI-integrated development tools, multi-PR orchestration systems.

Not for: Manual pull request creation, single-commit workflows, non-agent git management, systems without GitHub API access.

- Single-fix-per-PR enforcement prevents bundled unrelated changes
- Auto-generates PR descriptions with conventional commit titles and markdown bodies
- Surgical staging with git add combined with internal file protection guards
- Recovery workflows for existing PRs with branch-name.txt and pr-number.txt tracking
- CI failure diagnosis and patch regeneration via gh run view integration

## SKILL.md

## 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.

## Prs FAQ

### What is Prs Skill?

How does the Gemini CLI Bot standardize its Git workflow, enforce single-fix PRs, generate PR descriptions, and recover from CI failures?

### How do I install Prs Skill?

npx skills add https://github.com/google-gemini/gemini-cli --skill prs

## Machine access

- [Sitemap](https://skillselion.com/sitemap.xml)
- [llms.txt](https://skillselion.com/llms.txt)
- [llms-full.txt](https://skillselion.com/llms-full.txt)
- [Developer resources](https://skillselion.com/developers)
- [OpenAPI spec](https://skillselion.com/openapi.json)
- [MCP handshake](https://skillselion.com/.well-known/mcp)
- [API catalog](https://skillselion.com/.well-known/api-catalog)
- [AI catalog](https://skillselion.com/.well-known/ai-catalog.json)
- [Pricing](https://skillselion.com/pricing.md)
- [Auth](https://skillselion.com/auth.md)
- [AGENTS.md](https://skillselion.com/AGENTS.md)
- [Contact](https://skillselion.com/contact)
- [Home](https://skillselion.com/)
