chained-pr
Trigger: PRs over 400 lines, stacked PRs, review slices. Split oversized changes into chained…
Create Gentle AI pull requests with issue-first checks. Trigger: creating, opening, or preparing PRs for review.
$ npx -y skills add gentleman-programming/gentle-shell --skill branch-pr --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/branch-prContext preview
The summary Claude sees to decide when to auto-load this skill.
Create Gentle AI pull requests with issue-first checks. Trigger: creating, opening, or preparing PRs for review.
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 version: "2.0"
Use this skill when:
---
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
---
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 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. The linked issue MUST have the `status:approved` label; reuse fresh target-bound verification.
Check exactly ONE in the template and add the matching 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 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.
---
Gentle Shell is a Pi-native coding-agent harness for controlled development with Organic Driven Development, optional SDD/OpenSpec, subagents, TDD evidence, review guardrails, skills, and memory integrations.
Repo: gentleman-programming/gentle-shell
Trigger: PRs over 400 lines, stacked PRs, review slices. Split oversized changes into chained…
Design docs that reduce cognitive load. Trigger: writing guides, READMEs, RFCs, onboarding,…
Write warm, direct collaboration comments. Trigger: PR feedback, issue replies, reviews,…
Use Gentle AI harness discipline for Pi work: clarify first, track ODD work, use applicable…
Create and triage GitHub issues from repository evidence. Trigger: issue creation, bug…
Trigger: judgment day, judgement day, dual review, adversarial review, juzgar. Run explicit…