branch-pr
Prepare pull requests using the target repository's contribution policy. Trigger: creating, opening, or preparing PRs for review.
Trigger: commit splitting, chained PRs, keeping tests and docs with code. Plan commits as reviewable work units.
Claude Code
$ npx -y skills add gentleman-programming/gentle-shell --skill work-unit-commits --agent claude-code
Codex
$ npx skills add gentleman-programming/gentle-shell --skill work-unit-commits -a codex -y
Cursor
$ npx skills add gentleman-programming/gentle-shell --skill work-unit-commits -a cursor -y
Gemini CLI
$ npx skills add gentleman-programming/gentle-shell --skill work-unit-commits -a gemini-cli -y
GitHub Copilot
$ npx skills add gentleman-programming/gentle-shell --skill work-unit-commits -a github-copilot -y
OpenCode
$ npx skills add gentleman-programming/gentle-shell --skill work-unit-commits -a opencode -y
Windsurf
$ npx skills add gentleman-programming/gentle-shell --skill work-unit-commits -a windsurf -y
name: gentle-ai-work-unit-commits description: "Trigger: commit splitting, chained PRs, keeping tests and docs with code. Plan commits as reviewable work units." license: Apache-2.0 metadata: author: gentleman-programming version: "1.0"
Load this skill when deciding what belongs in each commit or PR.
Use it for:
| Rule | Requirement | |------|-------------| | Commit by work unit | A commit represents a deliverable behavior, fix, migration, or docs unit. | | Do not commit by file type | Avoid `models`, then `services`, then `tests` if none works alone. | | Keep tests with code | Tests belong in the same commit as the behavior they verify. | | Keep docs with the user-visible change | Docs belong with the feature or workflow they explain. | | Tell a story | A reviewer should understand why each commit exists from its diff and message. | | Future PR-ready | Each commit should be a candidate chained PR when the change grows. | | Delivery workload guard | If the task forecast produces a >400-line change, honor the selected `delivery_strategy`. On chaining paths only, group commits into chained PR slices before implementation. For explicit `single-pr` or `exception-ok`, keep one PR, report the review load, and follow the destination repository's documented contribution/size policy; selection alone does not accept an exception. | | Budget is not code-golf | Never shrink a diff by deleting comments, blank lines, docs, or tests, or by compressing code, to fit the review budget (about 400 authored changed lines). Slice by work unit or report the overage. |
Before committing, confirm:
| Weak split | Better work-unit split | |------------|------------------------| | `add models` | `feat(auth): add token validation domain model and tests` | | `add services` | `feat(auth): wire token validation into login flow` | | `add tests` | Tests included with each behavior commit | | `update docs` | Docs included with the user-facing change they explain |
Use work-unit commits as the foundation for chained PRs:
1. Build the smallest independent work unit. 2. Include verification for that unit. 3. Commit it with a Conventional Commit message. 4. If the PR approaches 400 changed lines, promote commits or groups of commits into chained PRs.
The chosen `delivery_strategy` governs how commits group into PRs, and the budget constrains how work is sliced, never the code itself.
Each work unit should map cleanly to a commit or PR with:
ODD commits work units in reviewable slices of about 400 authored changed lines, not one commit per task:
# Review the story before committing git diff --stat git diff --cached --stat # Check recent commit style git log --oneline -5
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).
Prepare pull requests using the target repository's contribution policy. Trigger: creating, opening, or preparing PRs for review.
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,…
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