Agent skill

Gentle AI Branch and PR

by Gentleman-Programming in Gentleman-Programming/gentle-shell

Prepares branches and pull requests for the Gentle AI repository, checking for a linked approved issue, labels, size budget and required checks.

Apache-2.0Auto-check passedDevelopment

Install Gentle AI Branch and PR

skills CLI
$ npx skills add Gentleman-Programming/gentle-shell --skill gentle-ai-branch-pr -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Gentleman-Programming/gentle-shell gentle-ai-branch-pr --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Gentleman-Programming/gentle-shell.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/branch-pr .claude/skills/gentle-ai-branch-pr && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gentle-ai-branch-pr
GitHub stars
1.3k
Token cost
~2.2k tokens
SKILL.md length
1,003 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
Apache-2.0

At a glance

Prepares branches and pull requests for the Gentle AI repository, checking for a linked approved issue, labels, size budget and required checks.

  • Works in 6 steps: Linked Issue (REQUIRED) → PR Type (REQUIRED) → Summary → …
  • Opening a pull request on the gentle-ai repository
  • SKILL.md covers When to Use, Critical Rules, Target and Authorization and Workflow, plus 5 more sections
  • Calls git and gh

What it does

Contributions to the Gentleman-Programming/gentle-ai repository follow strict rules, and this skill loads them whenever the agent creates a branch, opens a pull request or prepares changes for review. Every PR must visibly link an approved issue in the base repository with a closing keyword or a non-closing Refs reference, every accepted reference must carry the `status:approved` label, and CI rejects malformed, cross-repository or mixed references.

Other rules: exactly one `type:*` label, protected labels such as `status:approved` and `size:exception` changed only with maintain or admin permission and a direct human instruction, a review budget of 400 changed lines unless a documented size exception applies, required checks passing, no `Co-Authored-By` trailers, and no force-push to main or master. Issue text and model output are treated as untrusted data when classifying work.

When your agent uses it

  • Opening a pull request on the gentle-ai repository
  • Creating a branch for a new fix or feature in gentle-ai
  • Checking a PR against label, issue-link and size rules before review

Example prompts

  • “Open a pull request for my fix, linked to the approved issue.”
  • “Does my PR fit within the 400-line review budget?”
  • “Prepare these changes for review on gentle-ai without adding co-author trailers.”

Requirements

  • Access to the Gentleman-Programming/gentle-ai repository on GitHub
  • An approved issue in that repository to link

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Linked Issue (REQUIRED)
  2. PR Type (REQUIRED)
  3. Summary
  4. Changes Table
  5. Test Plan
  6. Contributor Checklist

What it can do on your machine

Read from SKILL.md and the folder at commit d672066. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git and gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gentle AI Branch and PR loads about 2.2k tokens when it runs. Until then it costs about 33 tokens; SKILL.md has 1,003 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~33
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Gentleman-Programming/gentle-shell at commit d672066, republished under its Apache-2.0 licence (© Gentleman-Programming). 1,003 words, ~2,225 tokens.

Download SKILL.mdSave it as .claude/skills/gentle-ai-branch-pr/SKILL.md (or your agent's skills folder).
name
gentle-ai-branch-pr
description
Create Gentle AI pull requests with issue-first checks. Trigger: creating, opening, or preparing PRs for review.
license
Apache-2.0
metadata.author
gentleman-programming
metadata.version
2.0

When to Use

Use this skill when:

  • Creating a pull request for any change
  • Preparing a branch for submission
  • Helping a contributor open a PR

Critical Rules

  1. Every PR MUST link an approved issue — no exceptions
  2. Every PR MUST have exactly one type:* label
  3. REQUIRED CI must pass according to target policy before merge; CodeRabbit is optional unless required by that policy
  4. Blank PRs without issue linkage will be blocked by GitHub Actions

Target and Authorization

  • Inspect origin locally (git remote get-url origin) and establish one unambiguous target host and owner/repo. Do not infer the target from the cwd or assume main. Stop if ambiguous.
  • Obtain explicit remote destination, operation and credential/session authorization before any target-host reads, including gh auth status or repository metadata. Do not inspect or reuse an ambient SSH agent. Permission for a read does not authorize a write; confirm each remote operation is within the grant.
  • Once authorized, reuse fresh target-bound issue, default branch, type labels and checks evidence from this session instead of repeating discovery. Refresh stale or mismatched evidence; do not substitute another host's data. Resolve the base from the authorized target's default branch or a human-selected base.
  • Do not automatically commit, push, open a PR or merge. Prepare and report a candidate; perform each action only with its own authorization. Local preparation is not permission for remote delivery.

Workflow

  1. Identify the authorized target and verify that the linked issue is approved; choose with the human whether the reference closes it or is nonclosing.
  2. Select the base from target metadata and prepare a type/description branch only when requested.
  3. Implement in work units with conventional commits when authorized; follow the merged ODD applicable test-first policy, run applicable tests, shellcheck on modified scripts, and test changed skills in at least one agent when relevant. The per-task advisory 400 authored-line heuristic is not an automatic split or a reason to omit tests or docs.
  4. Prepare the PR body from the target template and evidence. On separate authorization, open the PR and add exactly one type:* label.
  5. Check target-policy required CI and report pending/failing checks rather than declaring merge-ready.

Branch Naming

Branch names MUST match this regex:

^(feat|fix|chore|docs|style|refactor|perf|test|build|ci|revert)\/[a-z0-9._-]+$

Format: type/description — lowercase, no spaces, only a-z0-9._- in description.

TypeBranch patternExample
Featurefeat/<description>feat/user-login
Bug fixfix/<description>fix/zsh-glob-error
Chorechore/<description>chore/update-ci-actions
Docsdocs/<description>docs/installation-guide
Stylestyle/<description>style/format-scripts
Refactorrefactor/<description>refactor/extract-shared-logic
Performanceperf/<description>perf/reduce-startup-time
Testtest/<description>test/add-setup-coverage
Buildbuild/<description>build/update-shellcheck
CIci/<description>ci/add-branch-validation
Revertrevert/<description>revert/broken-setup-change

PR Body Format

Use the authorized target's .github/PULL_REQUEST_TEMPLATE.md. Fill it from observed evidence, retaining its required sections.

1. Linked Issue (REQUIRED)

Use the human-selected closing (Closes #N, Fixes #N, or Resolves #N) or nonclosing Refs #N reference. Do not turn Refs into an automatic close. The linked issue MUST have the status:approved label; reuse fresh target-bound verification.

2. PR Type (REQUIRED)

Check exactly ONE in the template and add the matching label:

CheckboxLabel to add
Bug fixtype:bug
New featuretype:feature
Documentation onlytype:docs
Code refactoringtype:refactor
Maintenance/toolingtype:chore
Breaking changetype:breaking-change
3. Summary

1-3 bullet points of what the PR does.

4. Changes Table
markdown
| File | Change |
|------|--------|
| `path/to/file` | What changed |
5. Test Plan

Record actual commands and outcomes, including shellcheck on modified scripts, manual testing of affected functionality, and whether changed skills load in at least one agent. Mark inapplicable checks as such; do not invent successful runs.

6. Contributor Checklist

Do not mark an unverified [x] checkbox. Check each item only after evidence supports it; leave pending items unchecked, including approved issue, exactly one type:* label, applicable shellcheck, skills tested in at least one agent, docs updated if behavior changed, conventional commit format, and no Co-Authored-By trailers. If a template demands every box checked, resolve outstanding items before submission rather than falsely attesting.


Show full SKILL.md (378 more words)Show less

Labels and Automated Checks

  • Apply exactly one type:* label from the authorized target's available labels. A commit-type mapping below is a suggestion, not proof of label availability or permission.
  • Protected labels require an exact direct instruction naming the label and an actor with MAINTAIN/ADMIN permission. Do not infer authorization from a general request to prepare or open a PR.
  • For a PR above the advisory 400 authored-line review budget, follow the destination repository's documented contribution/size policy. size:exception is a Gentle-owned repository policy, not a universal label requirement. Never request, create, or add the label for generic users unless their destination policy uses it. Only when that policy uses size:exception, record the human-selected size:exception rationale if that route was selected; no separate instructor proof is required. Preserve actual policy acceptance gates and apply the protected label only under the same direct-instruction and actor rule. Choosing single-pr does not waive policy gates or label authorization, nor automatically select exception-ok. Do not code-golf or omit tests to meet the budget.
  • REQUIRED CI is determined by target policy, not a fixed list of job names. Check issue-reference validation (including target-supported Refs), issue approval, exactly one type label and shellcheck where the target requires them. CodeRabbit is optional unless required by target policy. Report required pending or failing checks; never merge on an unverified green claim.

Conventional Commits

Commit messages MUST match this regex:

^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([a-z0-9\._-]+\))?!?: .+

Format: type(scope): description or type: description

  • type — required, one of: build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test
  • (scope) — optional, lowercase with a-z0-9._-
  • ! — optional, indicates breaking change
  • description — required, starts after :

Type-to-label mapping:

Commit typePR label
feattype:feature
fixtype:bug
docstype:docs
refactortype:refactor
choretype:chore
styletype:chore
perftype:feature
testtype:chore
buildtype:chore
citype:chore
reverttype:bug
feat! / fix!type:breaking-change

Examples:

feat(scripts): add Codex support to setup.sh
fix(skills): correct branch name guidance
docs(readme): update multi-model configuration guide
refactor(skills): extract shared persistence logic
chore(ci): add shellcheck to PR validation workflow
perf(scripts): reduce setup.sh execution time
style(skills): fix markdown formatting
test(scripts): add setup.sh integration tests
ci(workflows): add branch name validation
revert: undo broken setup change
feat!: redesign skill loading system

Commands

Local target inspection may use git remote get-url origin. After explicit target-host read authorization, verify target metadata and the default branch with target-bound gh calls; never use implicit cwd targeting. Run applicable local checks before proposing delivery. Only with separate authorization for the verified destination, operation and credential/session may you push, create or edit a PR. Pass the verified --repo and --base explicitly, and use the human-selected issue-reference form in the body. Do not execute a command block as an automatic workflow.

© Gentleman-Programming, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/branch-pr of Gentleman-Programming/gentle-shell.

Open the folder on GitHubat commit d672066

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders. This page covers the copy in Gentleman-Programming/gentle-shell, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Gentle AI Branch and PR next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gentle AI Branch and PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gentle AI Branch and PR this skillGentleman-Programming/gentle-shell1.3k—~2.2kAutomated safety check: PassApache-2.0
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Create Pull Requestcline/cline70k1 repos~1.6kAutomated safety check: PassApache-2.0
Create Pull Request with Work Item IDmakeplane/plane61k—~824Automated safety check: PassAGPL-3.0
Creating Description For Gh PRredis/jedis12k—~838Automated safety check: PassMIT
Pascal Editor PR Openerpascalorg/editor25k—~619Automated safety check: PassMIT

Similar skills

  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.

    70k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • Opens a pull request for the current branch using the repo's template, a work item ID in the title and a description filled in from the actual diff.

    61k GitHub stars~824 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Official

    Generate a clear, concise GitHub PR title and description from the diff between two local git branches, and save it to prDescription.md in the repo root.

    12k GitHub stars~838 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Pascal Editor PR Opener

    pascalorg/editor

    Opens or refreshes a pull request on pascalorg/editor from the current branch, describing only what the branch's commits and diff actually contain.

    25k GitHub stars~619 tokensUpdated today
    DevelopmentAuto-check passed
  • React Router Pull Request Creator

    remix-run/react-router

    Packages finished React Router work into a draft pull request: branch, commit, push, a written PR body and the right GitHub labels.

    57k GitHub stars~2.5k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from Gentleman-Programming/gentle-shell

All 12 skills in this repo
  • Gentle AI Issue Creation

    Gentleman-Programming/gentle-shell

    Create and triage GitHub issues from repository evidence. An agent skill from Gentleman-Programming/gentle-shell.

    1.3k GitHub stars~2.5k tokensUpdated today
    Auto-check passed
  • Gentle AI Judgment Day

    Gentleman-Programming/gentle-shell

    Trigger: judgment day, judgement day, dual review, adversarial review, juzgar.

    1.3k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Gentle AI Cognitive Doc Design

    Gentleman-Programming/gentle-shell

    Design docs that reduce cognitive load. An agent skill from Gentleman-Programming/gentle-shell.

    1.3k GitHub stars~597 tokensUpdated today
    Auto-check passed
  • Gentle AI Comment Writer

    Gentleman-Programming/gentle-shell

    Write warm, direct collaboration comments. An agent skill from Gentleman-Programming/gentle-shell.

    1.3k GitHub stars~623 tokensUpdated today
    Auto-check passed
  • Gentle AI Skill Creator

    Gentleman-Programming/gentle-shell

    Trigger: /skill-creation, skill creation, skill creator, create skill, new skill.

    1.3k GitHub stars~798 tokensUpdated today
    Auto-check passed
  • Gentle AI Work Unit Commits

    Gentleman-Programming/gentle-shell

    Plan commits as reviewable work units. An agent skill from Gentleman-Programming/gentle-shell.

    1.3k GitHub stars~1.2k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Gentle AI Branch and PR

What does Gentle AI Branch and PR do?

Prepares branches and pull requests for the Gentle AI repository, checking for a linked approved issue, labels, size budget and required checks. Contributions to the Gentleman-Programming/gentle-ai repository follow strict rules, and this skill loads them whenever the agent creates a branch, opens a pull request or prepares changes for review. Every PR must visibly link an approved issue in the base repository with a closing keyword or a non-closing Refs reference, every accepted reference must carry the `status:approved` label, and CI rejects malformed, cross-repository or mixed references.

When should I use Gentle AI Branch and PR?

Gentle AI Branch and PR fits situations like: opening a pull request on the gentle-ai repository; creating a branch for a new fix or feature in gentle-ai; checking a PR against label, issue-link and size rules before review.

How do I install Gentle AI Branch and PR in Claude Code?

Run `npx skills add Gentleman-Programming/gentle-shell --skill gentle-ai-branch-pr -a claude-code`. Or copy the skill folder (skills/branch-pr in Gentleman-Programming/gentle-shell) into .claude/skills/gentle-ai-branch-pr in your project. Claude Code loads it when a task matches its description.

How do I install Gentle AI Branch and PR in Codex?

Run `npx skills add Gentleman-Programming/gentle-shell --skill gentle-ai-branch-pr -a codex`. Or copy the skill folder (skills/branch-pr in Gentleman-Programming/gentle-shell) into .agents/skills/gentle-ai-branch-pr in your project. Codex loads it when a task matches its description.

Can I use Gentle AI Branch and PR in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Gentleman-Programming/gentle-shell --skill gentle-ai-branch-pr -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gentle-ai-branch-pr, .gemini/skills/gentle-ai-branch-pr, .github/skills/gentle-ai-branch-pr and .opencode/skills/gentle-ai-branch-pr in your project.

What does Gentle AI Branch and PR need to run?

Going by SKILL.md and its folder, Gentle AI Branch and PR needs the command-line tools its instructions call (git and gh). Our summary lists: Access to the Gentleman-Programming/gentle-ai repository on GitHub; An approved issue in that repository to link.

Does Gentle AI Branch and PR access the network?

SKILL.md contains no URLs. Its commands use git and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Gentle AI Branch and PR safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gentle AI Branch and PR use?

Gentle AI Branch and PR is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gentle AI Branch and PR use?

About 2.2k tokens (SKILL.md is roughly 8.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gentle AI Branch and PR?

Skills that share tags, products or a category with Gentle AI Branch and PR: Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars), Create Pull Request (cline/cline, 70k stars), Create Pull Request with Work Item ID (makeplane/plane, 61k stars) and Creating Description For Gh PR (redis/jedis, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gentle AI Branch and PR?

Gentleman-Programming (a GitHub organization) maintains it in Gentleman-Programming/gentle-shell, which has 1,275 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 11, 2026.

Source: Gentleman-Programming/gentle-shell on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.