[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M758D8TAWFNZEVSNE87S4B55":3,"skill-same:01M758D8TAWFNZEVSNE87S4B55":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M758D8TAWFNZEVSNE87S4B55","gentle-ai-chained-pr",null,"Split large changes into chained or stacked pull requests that protect reviewer focus and stay within Gentle AI's 400-line cognitive review budget. Trigger: when a PR would exceed 400 changed lines, when planning chained PRs, stacked PRs, or reviewable slices.","davidcoachdev\u002Fdcfiles","davidcoachdev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F69812733?v=4","01M758C4BR16TAV1N47W319E9V","David H. Caycedo Blum.","01M758C4CCZA2ZYGA0BGMXCDRH",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fkilo\u002Fskills\u002Fchained-pr\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: gentle-ai-chained-pr\ndescription: >\n  Split large changes into chained or stacked pull requests that protect reviewer\n  focus and stay within Gentle AI's 400-line cognitive review budget. Trigger:\n  when a PR would exceed 400 changed lines, when planning chained PRs, stacked\n  PRs, or reviewable slices.\nlicense: Apache-2.0\nmetadata:\n  author: gentleman-programming\n  version: \"1.0\"\n---\n\n## When to Use\n\nUse this skill when:\n\n- A planned PR is likely to exceed **400 changed lines** (`additions + deletions`).\n- An SDD tasks artifact forecasts `400-line budget risk: High` or `Chained PRs recommended: Yes`.\n- A reviewer asks to split a PR for cognitive load, review fatigue, or burnout prevention.\n- You need chained PRs, stacked PRs, or a feature branch with multiple reviewable slices.\n- A change should be reviewed in roughly **60 minutes or less** per PR.\n\nDo not use this skill for small fixes or single-purpose changes that fit comfortably under the review budget.\n\n## Critical Rules\n\n| Rule | Requirement |\n|------|-------------|\n| Review budget | **MUST split** when a PR exceeds **400 changed lines** (`additions + deletions`), unless it has maintainer-approved `size:exception` |\n| Review time | Design each PR for an approximately **≤60-minute** human review |\n| Review health | Optimize for sustainable maintainer attention, not just CI compliance |\n| Start and finish | Every chained PR MUST state where it starts, where it ends, what came before, and what comes next |\n| Autonomy | Every chained PR MUST be understandable and verifiable on its own |\n| Scope | One deliverable work unit per PR; do not mix unrelated refactors, features, tests, or docs |\n| Dependencies | State what each PR depends on and what follows next |\n| Exceptions | Use `size:exception` only when a maintainer agrees the large diff is unavoidable |\n| SDD handoff | If SDD forecasts a >400-line workload, honor `delivery_strategy`: ask, auto-chain, or require\u002Frecord `size:exception` |\n| Visual map | Every chained PR MUST include a dependency diagram that marks the current PR |\n| Tracker PR | If the team chooses Feature Branch Chain, create a draft tracker PR that maps every child PR and stays draft\u002Fno-merge until final integration |\n| Child PR base | In Feature Branch Chain, PR #1 targets the feature\u002Ftracker branch; every later child PR targets the immediate previous PR branch |\n| Diff source of truth | If a child PR shows previous PR changes, its base is wrong; retarget\u002Frebase until the diff contains only the current work unit |\n| Strategy consistency | Once the user picks a chain strategy, follow it for the entire chain — do not mix stacked and feature branch patterns |\n\nThe goal is not bureaucracy. The goal is preventing reviewer burnout so maintainers can review with care instead of skimming exhausted. Big PRs create fatigue, hide defects, and slow merge velocity.\n\n## Autonomy Requirements\n\nEach chained PR must function as a complete review unit:\n\n- **CI green**: checks pass for the PR branch in its intended base context.\n- **Autonomous scope**: the PR has one clear deliverable outcome.\n- **Reasonable rollback**: reverting this PR does not require reverting unrelated work.\n- **Verification included**: tests, docs, or manual verification cover this unit.\n- **Reviewable alone**: reviewers do not need to read future PRs to understand this one.\n\nIf a slice cannot meet these rules, split it differently. A chain is not a dumping ground for partial, unreviewable diffs.\n\n## Choosing the Chain Strategy\n\nWhen the workload exceeds 400 lines and chained PRs are needed, **ask the user** before proceeding:\n\n```\nThis work exceeds the 400-line review budget. How do you want to split it?\n\n1. Stacked PRs to main\n   Each PR merges to main in order. Fast iteration, fix on the go.\n   Best for: speed-first teams, startups, independent slices.\n\n2. Feature Branch Chain (with tracker)\n   Child PRs review against their immediate parent branch; the tracker branch accumulates the final feature and is the only branch that merges to main.\n   Best for: rollback control, integration testing before main, coordinated releases.\n\n3. size:exception\n   Keep it as a single PR with maintainer approval.\n   Best for: generated code, migrations, vendor diffs where splitting adds noise.\n```\n\nCache the user's answer for the rest of the session. Do not ask again unless the user changes scope.\n\nThis is a **team decision**, not a technical one. Both strategies are valid — they reflect different priorities:\n\n| | Stacked PRs to main | Feature Branch Chain |\n|---|---|---|\n| Speed | Each slice ships immediately | Waits until the chain is complete |\n| Rollback | Revert individual PRs from main | Revert the whole feature branch |\n| Risk | Partial features may land in main | Nothing lands until everything is ready |\n| Fix flow | Fix on the go in main | Fix on the integration branch |\n| Complexity | Simpler — rebase and retarget | Needs tracker PR, parent bases, and diff hygiene |\n| Best for | Startups, fast-moving teams | Teams needing coordination and control |\n\n## Chain Boundaries\n\nEvery PR in a chain needs explicit boundaries:\n\n| Boundary | What to document |\n|----------|------------------|\n| Start | The branch, PR, or state this PR builds on |\n| End | The finished unit this PR leaves behind |\n| Before | Prior PRs reviewers can assume already exist |\n| After | Follow-up PRs reviewers should ignore for now |\n| Out of scope | Related work intentionally excluded from this review |\n\n## Tracker PR Requirement\n\nFor any chain with more than two PRs, create a draft tracker PR before review starts. The tracker PR is not the review surface. It is the map.\n\nIt must include:\n\n- every child PR in merge\u002Freview order,\n- current status for each PR,\n- one dependency diagram,\n- explicit instruction not to review the aggregate diff,\n- `size:exception` if the aggregate diff exceeds 400 changed lines,\n- `no-merge` while the chain is incomplete.\n\n## Diagram Requirement\n\nEvery child PR must show where it sits in the chain. Mark the current PR with `📍`.\n\n```text\nmain\n └── #101 Foundation\n      └── #102 Work-unit commits\n           └── 📍 #103 This PR\n                └── #104 Docs\n                     └── #105 Tracker\n```\n\nPair the diagram with a status table:\n\n| PR | Scope | Status |\n|----|-------|--------|\n| #101 | Foundation | ✅ Passing |\n| #102 | Work-unit commits | 🟡 Open |\n| #103 | This PR | 📍 Review here |\n| #104 | Docs | ⚪ Pending |\n| #105 | Tracker | 🟡 Draft |\n\n## SDD Integration\n\nWhen SDD planning produces tasks that may exceed 400 changed lines:\n\n1. Treat the `Review Workload Forecast` as a hard planning signal.\n2. Follow the cached `delivery_strategy` before `sdd-apply` writes code.\n3. Convert suggested work units into PR slices.\n4. Keep each slice autonomous: tests\u002Fdocs included, CI green, clear rollback.\n5. Do not let one `sdd-apply` batch silently grow into a burnout-sized PR.\n\n## Feature Branch Chain\n\nUse this when the user chooses option 2: the feature branch is the accumulator\u002Ftracker\u002Ffinal integration branch, while child PRs are reviewed as focused slices against their immediate parent branch.\n\nThe tracker PR is the map, not the review surface:\n\n- tracker PR: `feat\u002Fmy-feature` -> `main`, draft\u002Fno-merge,\n- PR #1: child branch -> feature\u002Ftracker branch,\n- PR #2: child branch -> PR #1 branch,\n- PR #3: child branch -> PR #2 branch,\n- final merge: tracker PR -> `main` only after the chain is complete.\n\n```text\nmaster\u002Fmain\n └── feat\u002Fmy-feature              ← tracker\u002Ffinal integration branch\n      ↑\n      │ PR #1 base: feat\u002Fmy-feature\n      │\n      └── feat\u002Fmy-feature-01-core\n            ↑\n            │ PR #2 base: feat\u002Fmy-feature-01-core\n            │\n            └── feat\u002Fmy-feature-02-shared\n                  ↑\n                  │ PR #3 base: feat\u002Fmy-feature-02-shared\n                  │\n                  └── feat\u002Fmy-feature-03-slice\n```\n\nExample review chain:\n\n```text\n#40 tracker:   feat\u002Fui-ownership-refactor -> master\n#41 foundation: ui-ownership-refactor\u002Ffoundation -> feat\u002Fui-ownership-refactor\n#42 shared:     ui-ownership-refactor\u002Fshared -> ui-ownership-refactor\u002Ffoundation\n#43 feature:    ui-ownership-refactor\u002F\u003Cfeature> -> ui-ownership-refactor\u002Fshared\n```\n\n### Steps\n\n1. Create the feature\u002Ftracker branch from `main`.\n2. Open the tracker PR from the feature branch to `main` — mark it draft with `no-merge`.\n3. Create PR #1 from the feature\u002Ftracker branch and target it back to that branch.\n4. Create each later child branch from the previous PR branch and target it to that immediate parent branch.\n5. Review each child PR against its immediate parent branch, not against `main` and not against the tracker branch after PR #1.\n6. Keep the tracker branch as the accumulator\u002Ffinal integration branch.\n7. Only merge the tracker PR into `main` after all children are reviewed and integrated.\n\n### Commands\n\nPR #1 targets the feature\u002Ftracker branch:\n\n```bash\ngit checkout feat\u002Fui-ownership-refactor\ngit checkout -b ui-ownership-refactor\u002Ffoundation\ngit push -u origin ui-ownership-refactor\u002Ffoundation\n\ngh pr create \\\n  --base feat\u002Fui-ownership-refactor \\\n  --head ui-ownership-refactor\u002Ffoundation\n```\n\nPR #2 targets PR #1's branch:\n\n```bash\ngit checkout ui-ownership-refactor\u002Ffoundation\ngit checkout -b ui-ownership-refactor\u002Fshared\ngit push -u origin ui-ownership-refactor\u002Fshared\n\ngh pr create \\\n  --base ui-ownership-refactor\u002Ffoundation \\\n  --head ui-ownership-refactor\u002Fshared\n```\n\nPR #3 targets PR #2's branch:\n\n```bash\ngit checkout ui-ownership-refactor\u002Fshared\ngit checkout -b ui-ownership-refactor\u002Forgs\ngit push -u origin ui-ownership-refactor\u002Forgs\n\ngh pr create \\\n  --base ui-ownership-refactor\u002Fshared \\\n  --head ui-ownership-refactor\u002Forgs\n```\n\n### Diff Hygiene\n\nThe diff is the source of truth. A child PR is correctly based only when GitHub shows the current work unit and not previous PR changes.\n\n- If PR #2 shows PR #1 changes, retarget PR #2 to PR #1's branch or rebase it until the diff is clean.\n- If PR #3 shows PR #1 or PR #2 changes, retarget it to PR #2's branch or rebase it until the diff is clean.\n- Do **not** target `main` from child PRs in Feature Branch Chain.\n- Do **not** target the tracker branch from child PRs after PR #1; that inflates review diffs.\n\n### Common mistakes\n\nIf you chose this strategy, no child PR should target `main` — otherwise it bypasses the tracker and lands in `main` before the chain is complete. Later child PRs also should not target the tracker branch, because GitHub will show prior slices again.\n\n```text\n# WRONG — child bypasses tracker\nmain ← #101 (base: main) ← #102 ← #103\n\n# WRONG — later children target tracker and show inflated diffs\nmain ← tracker (#105)\n         ├── #101 (base: tracker branch)\n         ├── #102 (base: tracker branch)  # shows #101 again\n         └── #103 (base: tracker branch)  # shows #101 and #102 again\n\n# CORRECT — each review targets the immediate parent branch\nmain ← tracker (#105)\n         └── #101 (base: tracker branch)\n              └── #102 (base: #101 branch)\n                   └── #103 (base: #102 branch)\n```\n\n### Post-merge Rule\n\nAfter a parent PR is merged, keep the chain coherent: leave the next PR base as the parent branch if GitHub still shows only the current work unit, or retarget\u002Frebase to the updated accumulator\u002Fparent as needed. The diff must stay focused.\n\n### Tracker PR Expectations\n\nThe tracker PR is a **chain map**, not the review surface. Keep it draft\u002Fno-merge until the child PRs are reviewed and integrated.\n\n- Reviewers should review child PRs against their immediate parent branches, where each slice stays within the 400-line budget.\n- The tracker PR may exceed 400 changed lines because it aggregates the full feature branch by design.\n- If the tracker PR exceeds the budget, request\u002Fobtain maintainer-applied `size:exception` and document why the aggregate diff is unavoidable.\n\n## Stacked PRs to Main\n\nUse this when each PR can land in `main` in order.\n\n```text\nmain \u003C- PR 1: foundation\n          └── PR 2: feature slice built on PR 1\n                └── PR 3: docs\u002Ftests built on PR 2\n```\n\n### Steps\n\n1. Create PR 1 from `main`.\n2. Create PR 2 from PR 1's branch and target it to PR 1's branch.\n3. After PR 1 merges, rebase PR 2 on `main` and retarget it to `main`.\n4. Repeat until the stack is merged.\n\n## Chain Context Section\n\nInsert this extra section into the existing `.github\u002FPULL_REQUEST_TEMPLATE.md` body. Do **not** replace the repository PR template; the linked issue, PR type, summary, changes, test plan, automated checks, and contributor checklist sections are still required.\n\n```markdown\n## Chain Context\n\n| Field | Value |\n|-------|-------|\n| Chain | \u003Cfeature or stack name> |\n| Tracker PR | \u003C#NNN or \"Not needed\"> |\n| Position | \u003CN of total> |\n| Base | `\u003Ctarget branch>` |\n| Depends on | \u003CPR\u002Fissue\u002Flink or \"None\"> |\n| Follow-up | \u003Cnext PR or \"None\"> |\n| Review budget | \u003Cchanged lines> \u002F 400 |\n| Starts at | \u003Cbranch, PR, or state this builds on> |\n| Ends with | \u003Cstandalone result delivered by this PR> |\n\n### Chain Overview\n\n```text\nmain\n └── #NNN Previous PR\n      └── 📍 #NNN This PR\n           └── #NNN Next PR\n                └── #NNN Tracker\n```\n\n### Chain Status\n\n| PR | Scope | Status |\n|----|-------|--------|\n| #NNN | \u003Cscope> | \u003Cstatus> |\n| #NNN | \u003Cscope> | 📍 This PR |\n\n## Scope\n\n- \u003CWhat this PR includes>\n- \u003CWhat this PR intentionally excludes>\n\n## Autonomy\n\n- [ ] CI is expected to pass for this PR branch\n- [ ] This PR has one deliverable scope\n- [ ] This PR can be rolled back without unrelated changes\n- [ ] Tests, docs, or manual verification cover this unit\n\n## Review Notes\n\n- Review this PR in isolation.\n- Do not review dependent PR changes here.\n- If this exceeds 400 changed lines, request\u002Fobtain maintainer-applied `size:exception` and document the rationale.\n\n## Test Plan\n\n- \u003Ccommand or manual verification>\n```\n\n## Commands\n\n```bash\n# Check PR size before asking for review\ngh pr view \u003CPR_NUMBER> --json additions,deletions,changedFiles,title,url\n\n# Create PR #1 in a Feature Branch Chain\ngh pr create --base feat\u002Fmy-feature --title \"feat(scope): focused slice\" --body-file pr-body.md\n\n# Create the next child PR targeting its immediate parent branch\ngh pr create --base feat\u002Fmy-feature-01-core --title \"feat(scope): next focused slice\" --body-file pr-body.md\n```\n\n## Reviewer Guidance\n\n- If a PR exceeds 400 changed lines without `size:exception`, ask for a split.\n- Recommend chained PRs when the work must integrate before `main`.\n- Recommend stacked PRs when each slice can merge independently.\n- In Feature Branch Chain, review child PRs against their immediate parent branches and treat a polluted diff as a base\u002Fbranching bug.\n- Prefer clear dependency notes over clever branch gymnastics.\n- Push for autonomy: green CI, clear rollback, and tests or docs for the unit under review.\n- Protect reviewer energy. If the chain forces reviewers to reconstruct hidden context, ask for clearer boundaries.\n","## When to Use\n\nUse this skill when:\n\n- A planned PR is likely to exceed **400 changed lines** (`additions + deletions`).\n- An SDD tasks artifact forecasts `400-line budget risk: High` or `Chained PRs recommended: Yes`.\n- A reviewer asks to split a PR for cognitive load, review fatigue, or burnout prevention.\n- You need chained PRs, stacked PRs, or a feature branch with multiple reviewable slices.\n- A change should be reviewed in roughly **60 minutes or less** per PR.\n\nDo not use this skill for small fixes or single-purpose changes that fit comfortably under the review budget.\n\n## Critical Rules\n\n| Rule | Requirement |\n|------|-------------|\n| Review budget | **MUST split** when a PR exceeds **400 changed lines** (`additions + deletions`), unless it has maintainer-approved `size:exception` |\n| Review time | Design each PR for an approximately **≤60-minute** human review |\n| Review health | Optimize for sustainable maintainer attention, not just CI compliance |\n| Start and finish | Every chained PR MUST state where it starts, where it ends, what came before, and what comes next |\n| Autonomy | Every chained PR MUST be understandable and verifiable on its own |\n| Scope | One deliverable work unit per PR; do not mix unrelated refactors, features, tests, or docs |\n| Dependencies | State what each PR depends on and what follows next |\n| Exceptions | Use `size:exception` only when a maintainer agrees the large diff is unavoidable |\n| SDD handoff | If SDD forecasts a >400-line workload, honor `delivery_strategy`: ask, auto-chain, or require\u002Frecord `size:exception` |\n| Visual map | Every chained PR MUST include a dependency diagram that marks the current PR |\n| Tracker PR | If the team chooses Feature Branch Chain, create a draft tracker PR that maps every child PR and stays draft\u002Fno-merge until final integration |\n| Child PR base | In Feature Branch Chain, PR #1 targets the feature\u002Ftracker branch; every later child PR targets the immediate previous PR branch |\n| Diff source of truth | If a child PR shows previous PR changes, its base is wrong; retarget\u002Frebase until the diff contains only the current work unit |\n| Strategy consistency | Once the user picks a chain strategy, follow it for the entire chain — do not mix stacked and feature branch patterns |\n\nThe goal is not bureaucracy. The goal is preventing reviewer burnout so maintainers can review with care instead of skimming exhausted. Big PRs create fatigue, hide defects, and slow merge velocity.\n\n## Autonomy Requirements\n\nEach chained PR must function as a complete review unit:\n\n- **CI green**: checks pass for the PR branch in its intended base context.\n- **Autonomous scope**: the PR has one clear deliverable outcome.\n- **Reasonable rollback**: reverting this PR does not require reverting unrelated work.\n- **Verification included**: tests, docs, or manual verification cover this unit.\n- **Reviewable alone**: reviewers do not need to read future PRs to understand this one.\n\nIf a slice cannot meet these rules, split it differently. A chain is not a dumping ground for partial, unreviewable diffs.\n\n## Choosing the Chain Strategy\n\nWhen the workload exceeds 400 lines and chained PRs are needed, **ask the user** before proceeding:\n\n```\nThis work exceeds the 400-line review budget. How do you want to split it?\n\n1. Stacked PRs to main\n   Each PR merges to main in order. Fast iteration, fix on the go.\n   Best for: speed-first teams, startups, independent slices.\n\n2. Feature Branch Chain (with tracker)\n   Child PRs review against their immediate parent branch; the tracker branch accumulates the final feature and is the only branch that merges to main.\n   Best for: rollback control, integration testing before main, coordinated releases.\n\n3. size:exception\n   Keep it as a single PR with maintainer approval.\n   Best for: generated code, migrations, vendor diffs where splitting adds noise.\n```\n\nCache the user's answer for the rest of the session. Do not ask again unless the user changes scope.\n\nThis is a **team decision**, not a technical one. Both strategies are valid — they reflect different priorities:\n\n| | Stacked PRs to main | Feature Branch Chain |\n|---|---|---|\n| Speed | Each slice ships immediately | Waits until the chain is complete |\n| Rollback | Revert individual PRs from main | Revert the whole feature branch |\n| Risk | Partial features may land in main | Nothing lands until everything is ready |\n| Fix flow | Fix on the go in main | Fix on the integration branch |\n| Complexity | Simpler — rebase and retarget | Needs tracker PR, parent bases, and diff hygiene |\n| Best for | Startups, fast-moving teams | Teams needing coordination and control |\n\n## Chain Boundaries\n\nEvery PR in a chain needs explicit boundaries:\n\n| Boundary | What to document |\n|----------|------------------|\n| Start | The branch, PR, or state this PR builds on |\n| End | The finished unit this PR leaves behind |\n| Before | Prior PRs reviewers can assume already exist |\n| After | Follow-up PRs reviewers should ignore for now |\n| Out of scope | Related work intentionally excluded from this review |\n\n## Tracker PR Requirement\n\nFor any chain with more than two PRs, create a draft tracker PR before review starts. The tracker PR is not the review surface. It is the map.\n\nIt must include:\n\n- every child PR in merge\u002Freview order,\n- current status for each PR,\n- one dependency diagram,\n- explicit instruction not to review the aggregate diff,\n- `size:exception` if the aggregate diff exceeds 400 changed lines,\n- `no-merge` while the chain is incomplete.\n\n## Diagram Requirement\n\nEvery child PR must show where it sits in the chain. Mark the current PR with `📍`.\n\n```text\nmain\n └── #101 Foundation\n      └── #102 Work-unit commits\n           └── 📍 #103 This PR\n                └── #104 Docs\n                     └── #105 Tracker\n```\n\nPair the diagram with a status table:\n\n| PR | Scope | Status |\n|----|-------|--------|\n| #101 | Foundation | ✅ Passing |\n| #102 | Work-unit commits | 🟡 Open |\n| #103 | This PR | 📍 Review here |\n| #104 | Docs | ⚪ Pending |\n| #105 | Tracker | 🟡 Draft |\n\n## SDD Integration\n\nWhen SDD planning produces tasks that may exceed 400 changed lines:\n\n1. Treat the `Review Workload Forecast` as a hard planning signal.\n2. Follow the cached `delivery_strategy` before `sdd-apply` writes code.\n3. Convert suggested work units into PR slices.\n4. Keep each slice autonomous: tests\u002Fdocs included, CI green, clear rollback.\n5. Do not let one `sdd-apply` batch silently grow into a burnout-sized PR.\n\n## Feature Branch Chain\n\nUse this when the user chooses option 2: the feature branch is the accumulator\u002Ftracker\u002Ffinal integration branch, while child PRs are reviewed as focused slices against their immediate parent branch.\n\nThe tracker PR is the map, not the review surface:\n\n- tracker PR: `feat\u002Fmy-feature` -> `main`, draft\u002Fno-merge,\n- PR #1: child branch -> feature\u002Ftracker branch,\n- PR #2: child branch -> PR #1 branch,\n- PR #3: child branch -> PR #2 branch,\n- final merge: tracker PR -> `main` only after the chain is complete.\n\n```text\nmaster\u002Fmain\n └── feat\u002Fmy-feature              ← tracker\u002Ffinal integration branch\n      ↑\n      │ PR #1 base: feat\u002Fmy-feature\n      │\n      └── feat\u002Fmy-feature-01-core\n            ↑\n            │ PR #2 base: feat\u002Fmy-feature-01-core\n            │\n            └── feat\u002Fmy-feature-02-shared\n                  ↑\n                  │ PR #3 base: feat\u002Fmy-feature-02-shared\n                  │\n                  └── feat\u002Fmy-feature-03-slice\n```\n\nExample review chain:\n\n```text\n#40 tracker:   feat\u002Fui-ownership-refactor -> master\n#41 foundation: ui-ownership-refactor\u002Ffoundation -> feat\u002Fui-ownership-refactor\n#42 shared:     ui-ownership-refactor\u002Fshared -> ui-ownership-refactor\u002Ffoundation\n#43 feature:    ui-ownership-refactor\u002F\u003Cfeature> -> ui-ownership-refactor\u002Fshared\n```\n\n### Steps\n\n1. Create the feature\u002Ftracker branch from `main`.\n2. Open the tracker PR from the feature branch to `main` — mark it draft with `no-merge`.\n3. Create PR #1 from the feature\u002Ftracker branch and target it back to that branch.\n4. Create each later child branch from the previous PR branch and target it to that immediate parent branch.\n5. Review each child PR against its immediate parent branch, not against `main` and not against the tracker branch after PR #1.\n6. Keep the tracker branch as the accumulator\u002Ffinal integration branch.\n7. Only merge the tracker PR into `main` after all children are reviewed and integrated.\n\n### Commands\n\nPR #1 targets the feature\u002Ftracker branch:\n\n```bash\ngit checkout feat\u002Fui-ownership-refactor\ngit checkout -b ui-ownership-refactor\u002Ffoundation\ngit push -u origin ui-ownership-refactor\u002Ffoundation\n\ngh pr create \\\n  --base feat\u002Fui-ownership-refactor \\\n  --head ui-ownership-refactor\u002Ffoundation\n```\n\nPR #2 targets PR #1's branch:\n\n```bash\ngit checkout ui-ownership-refactor\u002Ffoundation\ngit checkout -b ui-ownership-refactor\u002Fshared\ngit push -u origin ui-ownership-refactor\u002Fshared\n\ngh pr create \\\n  --base ui-ownership-refactor\u002Ffoundation \\\n  --head ui-ownership-refactor\u002Fshared\n```\n\nPR #3 targets PR #2's branch:\n\n```bash\ngit checkout ui-ownership-refactor\u002Fshared\ngit checkout -b ui-ownership-refactor\u002Forgs\ngit push -u origin ui-ownership-refactor\u002Forgs\n\ngh pr create \\\n  --base ui-ownership-refactor\u002Fshared \\\n  --head ui-ownership-refactor\u002Forgs\n```\n\n### Diff Hygiene\n\nThe diff is the source of truth. A child PR is correctly based only when GitHub shows the current work unit and not previous PR changes.\n\n- If PR #2 shows PR #1 changes, retarget PR #2 to PR #1's branch or rebase it until the diff is clean.\n- If PR #3 shows PR #1 or PR #2 changes, retarget it to PR #2's branch or rebase it until the diff is clean.\n- Do **not** target `main` from child PRs in Feature Branch Chain.\n- Do **not** target the tracker branch from child PRs after PR #1; that inflates review diffs.\n\n### Common mistakes\n\nIf you chose this strategy, no child PR should target `main` — otherwise it bypasses the tracker and lands in `main` before the chain is complete. Later child PRs also should not target the tracker branch, because GitHub will show prior slices again.\n\n```text\n# WRONG — child bypasses tracker\nmain ← #101 (base: main) ← #102 ← #103\n\n# WRONG — later children target tracker and show inflated diffs\nmain ← tracker (#105)\n         ├── #101 (base: tracker branch)\n         ├── #102 (base: tracker branch)  # shows #101 again\n         └── #103 (base: tracker branch)  # shows #101 and #102 again\n\n# CORRECT — each review targets the immediate parent branch\nmain ← tracker (#105)\n         └── #101 (base: tracker branch)\n              └── #102 (base: #101 branch)\n                   └── #103 (base: #102 branch)\n```\n\n### Post-merge Rule\n\nAfter a parent PR is merged, keep the chain coherent: leave the next PR base as the parent branch if GitHub still shows only the current work unit, or retarget\u002Frebase to the updated accumulator\u002Fparent as needed. The diff must stay focused.\n\n### Tracker PR Expectations\n\nThe tracker PR is a **chain map**, not the review surface. Keep it draft\u002Fno-merge until the child PRs are reviewed and integrated.\n\n- Reviewers should review child PRs against their immediate parent branches, where each slice stays within the 400-line budget.\n- The tracker PR may exceed 400 changed lines because it aggregates the full feature branch by design.\n- If the tracker PR exceeds the budget, request\u002Fobtain maintainer-applied `size:exception` and document why the aggregate diff is unavoidable.\n\n## Stacked PRs to Main\n\nUse this when each PR can land in `main` in order.\n\n```text\nmain \u003C- PR 1: foundation\n          └── PR 2: feature slice built on PR 1\n                └── PR 3: docs\u002Ftests built on PR 2\n```\n\n### Steps\n\n1. Create PR 1 from `main`.\n2. Create PR 2 from PR 1's branch and target it to PR 1's branch.\n3. After PR 1 merges, rebase PR 2 on `main` and retarget it to `main`.\n4. Repeat until the stack is merged.\n\n## Chain Context Section\n\nInsert this extra section into the existing `.github\u002FPULL_REQUEST_TEMPLATE.md` body. Do **not** replace the repository PR template; the linked issue, PR type, summary, changes, test plan, automated checks, and contributor checklist sections are still required.\n\n```markdown\n## Chain Context\n\n| Field | Value |\n|-------|-------|\n| Chain | \u003Cfeature or stack name> |\n| Tracker PR | \u003C#NNN or \"Not needed\"> |\n| Position | \u003CN of total> |\n| Base | `\u003Ctarget branch>` |\n| Depends on | \u003CPR\u002Fissue\u002Flink or \"None\"> |\n| Follow-up | \u003Cnext PR or \"None\"> |\n| Review budget | \u003Cchanged lines> \u002F 400 |\n| Starts at | \u003Cbranch, PR, or state this builds on> |\n| Ends with | \u003Cstandalone result delivered by this PR> |\n\n### Chain Overview\n\n```text\nmain\n └── #NNN Previous PR\n      └── 📍 #NNN This PR\n           └── #NNN Next PR\n                └── #NNN Tracker\n```\n\n### Chain Status\n\n| PR | Scope | Status |\n|----|-------|--------|\n| #NNN | \u003Cscope> | \u003Cstatus> |\n| #NNN | \u003Cscope> | 📍 This PR |\n\n## Scope\n\n- \u003CWhat this PR includes>\n- \u003CWhat this PR intentionally excludes>\n\n## Autonomy\n\n- [ ] CI is expected to pass for this PR branch\n- [ ] This PR has one deliverable scope\n- [ ] This PR can be rolled back without unrelated changes\n- [ ] Tests, docs, or manual verification cover this unit\n\n## Review Notes\n\n- Review this PR in isolation.\n- Do not review dependent PR changes here.\n- If this exceeds 400 changed lines, request\u002Fobtain maintainer-applied `size:exception` and document the rationale.\n\n## Test Plan\n\n- \u003Ccommand or manual verification>\n```\n\n## Commands\n\n```bash\n# Check PR size before asking for review\ngh pr view \u003CPR_NUMBER> --json additions,deletions,changedFiles,title,url\n\n# Create PR #1 in a Feature Branch Chain\ngh pr create --base feat\u002Fmy-feature --title \"feat(scope): focused slice\" --body-file pr-body.md\n\n# Create the next child PR targeting its immediate parent branch\ngh pr create --base feat\u002Fmy-feature-01-core --title \"feat(scope): next focused slice\" --body-file pr-body.md\n```\n\n## Reviewer Guidance\n\n- If a PR exceeds 400 changed lines without `size:exception`, ask for a split.\n- Recommend chained PRs when the work must integrate before `main`.\n- Recommend stacked PRs when each slice can merge independently.\n- In Feature Branch Chain, review child PRs against their immediate parent branches and treat a polluted diff as a base\u002Fbranching bug.\n- Prefer clear dependency notes over clever branch gymnastics.\n- Push for autonomy: green CI, clear rollback, and tests or docs for the unit under review.\n- Protect reviewer energy. If the chain forces reviewers to reconstruct hidden context, ask for clearer boundaries.\n",{"name":5,"license":15,"metadata":24,"description":27},{"author":25,"version":26},"gentleman-programming","1.0","Split large changes into chained or stacked pull requests that protect reviewer focus and stay within Gentle AI's 400-line cognitive review budget. Trigger: when a PR would exceed 400 changed lines, when planning chained PRs, stacked PRs, or reviewable slices.\n","main","5dc86f90a5cbe45db3acd917825461b3ed6937fb","config\u002F.config\u002Fkilo\u002Fskills\u002Fchained-pr",0,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev","🌐 Apasionado por crear soluciones web escalables y eficientes. \r\n🧑‍🏫 Coach Dev.\r\n💻 Frontend Dev. \r\n🎚️Backend Dev.\r\n📊 Agile\u002FScrum.\r\n🚀100% remoto.","2026-08-26 07:28:05",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add davidcoachdev\u002Fdcfiles --skill gentle-ai-chained-pr",{"tool":42,"command":43},"bunx","bunx skills add davidcoachdev\u002Fdcfiles --skill gentle-ai-chained-pr",{"tool":45,"command":46},"pnpm","pnpm dlx skills add davidcoachdev\u002Fdcfiles --skill gentle-ai-chained-pr","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fkilo\u002Fskills\u002Fchained-pr\u002FSKILL.md",true,[],[51,58,65,72,80,87],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M7740FETMZY1VTYAEFY1TWY7","zustand-5","Zustand 5 state management patterns. Trigger: When managing React state with Zustand.","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fzustand-5\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M773ZZM9V68SA1AKP4WF4J29","zod-4","Zod 4 schema validation patterns. Trigger: When using Zod for validation - breaking changes from v3.","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fzod-4\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M773ZJFR90CQAY0N9QR40QVP","x-bookmark-quote-posts","Workflow para revisar bookmarks de X\u002FTwitter y convertirlos en drafts de quote posts. Accede a la sección de bookmarks vía browser headless, extrae posts recientes, y genera drafts con voz personal del usuario. No publica ni muta X — solo genera contenido para revisión. Trigger: X bookmarks, Twitter bookmarks, quote posts, bookmark automation, crear quote posts, revisar bookmarks, growth content X.","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fx-bookmark-quote-posts\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M773Z2RGV3786FV310SDB0YD","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","MIT","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M773YJH3KDSW467CSS63CSRJ","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M773Y3S3H2CPRK5S8YFHWB5C","work-unit-commits","Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fwork-unit-commits\u002FSKILL.md",[],[]]