chained-pr
Trigger: PRs over 400 lines, stacked PRs, review slices. Split oversized changes into chained PRs that protect review focus.
Prepare pull requests using the target repository's contribution policy. Trigger: creating, opening, or preparing PRs for review.
Claude Code
$ npx -y skills add gentleman-programming/gentle-shell --skill branch-pr --agent claude-code
Codex
$ npx skills add gentleman-programming/gentle-shell --skill branch-pr -a codex -y
Cursor
$ npx skills add gentleman-programming/gentle-shell --skill branch-pr -a cursor -y
Gemini CLI
$ npx skills add gentleman-programming/gentle-shell --skill branch-pr -a gemini-cli -y
GitHub Copilot
$ npx skills add gentleman-programming/gentle-shell --skill branch-pr -a github-copilot -y
OpenCode
$ npx skills add gentleman-programming/gentle-shell --skill branch-pr -a opencode -y
Windsurf
$ npx skills add gentleman-programming/gentle-shell --skill branch-pr -a windsurf -y
name: gentle-ai-branch-pr description: "Prepare pull requests using the target repository's contribution policy. Trigger: creating, opening, or preparing PRs for review." license: Apache-2.0 metadata: author: gentleman-programming version: "2.1"
Use this skill when:
---
1. **Issue linkage and approval follow the target repository's documented policy or explicit user instruction.** Without such a requirement, continue without an issue or approval label. Reuse the user's stated approval convention; do not require `status:approved` unless the target uses it. 2. **Labels follow target policy.** Exactly one `type:*` label is required only where that convention applies. 3. **REQUIRED CI must pass according to target policy** before merge; CodeRabbit is optional unless required by that policy 4. **Use the target's actual template and checks.** Never infer a GitHub Actions issue gate from this skill alone.
---
1. Identify the authorized target and its contribution policy. Verify issue approval only when required, using that target's approval convention. Reuse the user's closing/nonclosing intent; if unspecified, use nonclosing `Refs #N` for a supplied issue rather than blocking preparation on a question. 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. When authorized, open the PR and apply target-required labels; reuse an existing grant rather than requesting separate confirmation again. 5. Check target-policy required CI and report pending/failing checks rather than declaring merge-ready.
---
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.
| Type | Branch pattern | Example | |------|---------------|---------| | Feature | `feat/<description>` | `feat/user-login` | | Bug fix | `fix/<description>` | `fix/zsh-glob-error` | | Chore | `chore/<description>` | `chore/update-ci-actions` | | Docs | `docs/<description>` | `docs/installation-guide` | | Style | `style/<description>` | `style/format-scripts` | | Refactor | `refactor/<description>` | `refactor/extract-shared-logic` | | Performance | `perf/<description>` | `perf/reduce-startup-time` | | Test | `test/<description>` | `test/add-setup-coverage` | | Build | `build/<description>` | `build/update-shellcheck` | | CI | `ci/<description>` | `ci/add-branch-validation` | | Revert | `revert/<description>` | `revert/broken-setup-change` |
---
Use the authorized target's `.github/PULL_REQUEST_TEMPLATE.md`. Fill it from observed evidence, retaining its required sections.
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. Check `status:approved` only if the target policy requires that label; reuse fresh target-bound verification. Omit issue linkage when no issue is supplied or required.
Where the target uses this type convention, check exactly ONE in the template and add the matching available label:
| Checkbox | Label to add | |----------|-------------| | Bug fix | `type:bug` | | New feature | `type:feature` | | Documentation only | `type:docs` | | Code refactoring | `type:refactor` | | Maintenance/tooling | `type:chore` | | Breaking change | `type:breaking-change` |
1-3 bullet points of what the PR does.
| File | Change | |------|--------| | `path/to/file` | What changed |
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.
Do not mark an unverified `[x]` checkbox. Check each applicable item only after evidence supports it; leave pending items unchecked. Issue approval and exactly one `type:*` la
Gentle Shell is a Pi-native workspace for AI-assisted development, bringing parallel coding agents, live tasks, Git diffs, persistent memory, and permission controls into one terminal interface. Powered by Gentle AI and Organic Driven Development (ODD).
Trigger: PRs over 400 lines, stacked PRs, review slices. Split oversized changes into chained PRs that protect review focus.
Design docs that reduce cognitive load. Trigger: writing guides, READMEs, RFCs, onboarding, architecture, or review-facing docs.
Write warm, direct collaboration comments. Trigger: PR feedback, issue replies, reviews, Slack messages, or GitHub comments.
Trigger: design a screen or page, mockup, landing page, UI directions, artboards, try a different approach, design system sync.…
Gentle AI harness discipline for Pi work: clarify first, track ODD work, applicable test-first by default, delegate when useful,…
Trigger: product interface design, web UI, design critique, browsing experience, responsive layout. Guide usable interfaces for…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration