Skip to content
Back to skills

Pr

ASecurity

Prepares a pull request for the current branch: all commits and the full diff against the base, a title and description by the repo's template, then, if the user wants, pushes and opens it with gh. Use only when the user asked (/pr, «открой PR», «сделай пул-реквест», merge request). Never on your own unless the user granted full access.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
developmentpythongobashtestinggit

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add stxrmik/antigravity-plus --skill pr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/stxrmik-antigravity-plus-04d080c8/badge)](https://www.skillsdirectory.com/skills/stxrmik-antigravity-plus-04d080c8)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pr
description: >-
  Prepares a pull request for the current branch: all commits and the full diff against the base, a title and
  description by the repo's template, then, if the user wants, pushes and opens it with gh. Use only when the user
  asked (/pr, «открой PR», «сделай пул-реквест», merge request). Never on your own unless the user granted full access.
---

# /pr — pull request

> **Only on the user's request, or under full access:** the command, the same request in their own words, or full access the user granted (rules: "Full access"). Otherwise, if you got here on your own, don't run it; offer it to the user in one line instead.

## Steps

1. **Gather context** (sandboxed):
   ```bash
   bash <skill_dir>/../commit/scripts/git_context.sh pr [base]
   ```
   Pass `base` only if the user named it. If the base can't be detected, ask.
   - If on the base branch itself → ask whether to create a feature branch first (suggest a name from the changes).
   - If there are uncommitted changes → ask whether to `/commit` them first.
   - If the diff was truncated, read the most important changed files directly.

2. **Understand the change as a whole** — look at **all** commits in the range, not just the last one.
   Identify: the problem/motivation, the approach, user-visible effects, risky areas, migration or
   config steps, and how it was (or should be) tested. Don't guess test results — run the project's
   tests if cheap, otherwise state what should be tested.

3. **Write the PR** (English unless the repo uses another language). If a PR template exists, fill it in; otherwise:

   ```markdown
   ## Summary
   <1–3 sentences: what and why.>

   ## Changes
   - <grouped, meaningful bullets — not a file list>

   ## Testing
   - <commands run and results / manual steps>

   ## Risks & notes
   - <breaking changes, migrations, flags, follow-ups> (omit if none)
   ```
   Title: ≤ 70 chars, imperative, matches commit style.

4. **Save** the title + body to `<artifact_dir>/pr.md` (user-facing artifact) so the user can review/edit it.

5. **Open the PR only if the user asked to create it** (not just to describe it):
   - Pushing and `gh` need network → run those commands with `BypassSandbox: true`.
   - Push if needed: `git push -u origin <branch>` (never force-push).
   - Create: `gh pr create --base <base> --title "<title>" --body-file <artifact_dir>/pr.md` (add `--draft` if the user said draft).
   - If `gh` is missing or not authenticated, give the user the compare URL / instructions instead of trying workarounds.
   - **Track CI:** if the repository has CI workflows (`.github/workflows/` or `.gitlab-ci.yml`), run
     `python3 "<skill_dir>/../ci/scripts/ci.py" watch --workspace "<ws>"` (`BypassSandbox: true`). If it goes to the
     background while checks run, share the PR link and say in one line you're waiting for CI — its wakeup message
     brings the final result and any failure logs.

6. **Report** (in the user's language): PR link (or the saved description), CI status, and any open questions.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.