branch-pr
Trigger: preparing branches or PRs for Gentleman-Programming/gentle-ai. Apply this repository's issue-first contribution policy.
Plan commits as reviewable work units. Trigger: commit splitting, chained PRs, or keeping tests and docs with code.
Claude Code
$ npx -y skills add Gentleman-Programming/gentle-ai --skill work-unit-commits --agent claude-code
Codex
$ npx skills add Gentleman-Programming/gentle-ai --skill work-unit-commits -a codex -y
Cursor
$ npx skills add Gentleman-Programming/gentle-ai --skill work-unit-commits -a cursor -y
Gemini CLI
$ npx skills add Gentleman-Programming/gentle-ai --skill work-unit-commits -a gemini-cli -y
GitHub Copilot
$ npx skills add Gentleman-Programming/gentle-ai --skill work-unit-commits -a github-copilot -y
OpenCode
$ npx skills add Gentleman-Programming/gentle-ai --skill work-unit-commits -a opencode -y
Windsurf
$ npx skills add Gentleman-Programming/gentle-ai --skill work-unit-commits -a windsurf -y
name: work-unit-commits description: "Plan commits as reviewable work units. Trigger: commit splitting, chained PRs, or keeping tests and docs with code." 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. | | SDD workload guard | If SDD tasks forecast a >400-line change, group commits into chained PR slices before implementation. |
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.
Organic Driven Development (ODD) closes every substantial task with a work-unit commit on the feature branch:
Each ODD work unit should map cleanly to a commit or PR with:
Its implementation evidence MUST include:
# Review the story before committing git diff --stat git diff --cached --stat # Check recent commit style git log --oneline -5
Gentle-AI configures the AI coding agents you already use: Claude Code, Cursor, OpenCode, Codex, Pi, and more. Choose persistent memory, Organic-Driven Development, curated skills, MCP servers, personas, and optional bounded review. Open source, no agent lock-in.
Trigger: preparing branches or PRs for Gentleman-Programming/gentle-ai. Apply this repository's issue-first contribution policy.
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: bench, journey, journeys, driven mode, gentle-ai-bench, journey corpus, j-numbers, bench axis. Author and verify…
Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
Converts books and documents (PDF, EPUB, DOCX, HTML, Markdown, plain text, RTF, MOBI/AZW with Calibre) into structured agent…
Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…