gentle-ai-chained-pr
Skill0 starsChanged 9 months agoMITView on GitHub
Trigger: PRs over 400 lines, stacked PRs, review slices. Split oversized changes into chained PRs that protect review focus.
3 other projects use a version of this, 2 of them edited; 2 of 2 edited versions we compared changed its rules.
How people change it
2 of 2 edited versions changed its rules, and some changes recur.
Of the 2 edited versions we compared: 2 made changes of their own.
Rules people drop
- Use one deliverable work unit per PR; keep tests/docs with the unit they verify.dropped by 2 of 2
- Ask for a chain strategy when none is cached and the budget is exceeded.dropped by 2 of 2
- Create branches/PRs using the chosen strategy only.dropped by 2 of 2
- Add Chain Context to each PR without replacing the repo PR template.dropped by 2 of 2
- Keep tracker PR draft/no-merge until all child PRs are reviewed and integrated.dropped by 2 of 2
Rules people add
- Before creating branches or PRs, verify the target repository's default branch; use it as the integration base, not an assumed
main.stacked-to-mainis the historical strategy token even when the default branch has another name.added by 2 of 2 - Verify the target repository's default branch before creating branches/PRs; use the chosen strategy only.added by 2 of 2
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- Gentleman-Programming/gentle-aiword for word, first seen Oct 2, 2026
- Gentleman-Programming/gentle-piedited, first seen Sep 8, 2026
- Gentleman-Programming/gentle-shelledited, first seen Sep 8, 2026
Other versions3 projects use a version of this.
Word for word · 1
- Gentleman-Programming/gentle-ai★ 9.6k100% same
Edited · 2
- Gentleman-Programming/gentle-pi★ 3.1k23% same
- Gentleman-Programming/gentle-shell★ 3.1k23% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- analisis-sistemaSkill
- gentle-ai-branch-prSkill
- cognitive-doc-designSkill
- comment-writerSkill
- flujo-desarrolloSkill
- gentle-ai-benchSkill
- gentle-ai-collab-perfectSkill
- gentle-ai-issue-creationSkill
- issue-root-resolutionSkill
- project-charterSkill
- rdd-advisory-transportSkill
- rdd-defect-workflowSkill
- systemic-issue-triageSkill
- work-unit-commitsSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Keep each PR reviewable in about ≤60 minutes.
- Distinctive: line 18
Use one deliverable work unit per PR.
- Very specific: line 20
Every child PR must include a dependency diagram marking the current PR with 📍.
- Distinctive: line 22
Treat polluted diffs as base bugs: retarget or rebase until only the current work unit appears.
- Distinctive: line 23
Do not mix chain strategies after the user chooses one.
- Distinctive: line 38
Ask for a chain strategy when none is cached and the budget is exceeded.
- Distinctive: line 39
Create branches/PRs using the chosen strategy only.
- Distinctive: line 40
Add Chain Context to each PR without replacing the repo PR template.
- Very specific: line 41
Verify each PR independently: CI/tests/docs/manual checks, rollback scope, and clean diff.
- Distinctive: line 42
Keep tracker PR draft/no-merge until all child PRs are reviewed and integrated.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Activation Contract
Load this skill when a planned PR may exceed 400 changed lines, SDD forecasts 400-line budget risk: High or Chained PRs recommended: Yes, or the user asks for chained/stacked PRs, review slices, or reviewer-load control.
Hard Rules
- Split PRs over 400 changed lines unless a maintainer explicitly accepts
size:exception. - Keep each PR reviewable in about ≤60 minutes.
- Use one deliverable work unit per PR; keep tests/docs with the unit they verify.
- State start, end, prior dependencies, follow-up work, and out-of-scope items in every chained PR.
- Every child PR must include a dependency diagram marking the current PR with
📍. - In Feature Branch Chain, create a draft/no-merge tracker PR; child PR #1 targets the tracker branch, later children target the immediate parent branch.
- Treat polluted diffs as base bugs: retarget or rebase until only the current work unit appears.
- Do not mix chain strategies after the user chooses one.
Decision Gates
| Condition | Action |
| PR ≤400 changed lines and focused | Keep single PR. |
| PR >400, each slice can land independently | Use Stacked PRs to main. |
| PR >400, feature must integrate before main | Use Feature Branch Chain with tracker. |
| Generated/vendor/migration diff cannot split cleanly | Ask maintainer for size:exception. |
SDD provides delivery_strategy | Follow it before apply/PR creation. |
Execution Steps
- Estimate changed lines and identify independent work units.
- Ask for a chain strategy when none is cached and the budget is exceeded.
- Create branches/PRs using the chosen strategy only.
- Add Chain Context to each PR without replacing the repo PR template.
- Verify each PR independently: CI/tests/docs/manual checks, rollback scope, and clean diff.
- Keep tracker PR draft/no-merge until all child PRs are reviewed and integrated.
Output Contract
Return the chosen strategy, PR order, current PR boundary, dependency diagram, review budget (additions + deletions), verification plan, and any size:exception rationale.
References
- references/chaining-details.md — strategy diagrams, PR body section, branch commands, and reviewer guidance.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

