[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75B4CEPH844K076Z9DJAC6F":3,"skill-same:01M75B4CEPH844K076Z9DJAC6F":52},{"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":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":34,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":36,"updatedAt":37,"install":38,"resources":51},"01M75B4CEPH844K076Z9DJAC6F","finishing-a-development-branch",null,"For a branch ready to integrate, runs its locally runnable CI jobs before any push or merge and carries out the human user's choice, asking the human user if undecided: merge locally, open or merge a pull request, keep, or delete the branch.","AidALL\u002Fghost-alice","AidALL","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F130629202?v=4","01M75B3KHHA5AD250W0XNC7DGX","AidALL Inc.","01M75B3KJAYXRRNBW5F9B8C2RW",15,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FAidALL\u002Fghost-alice\u002Fblob\u002Fmain\u002Fcoding-convention\u002Ffinishing-a-development-branch\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: finishing-a-development-branch\ndescription: \"For a branch ready to integrate, runs its locally runnable CI jobs before any push or merge and carries out the human user's choice, asking the human user if undecided: merge locally, open or merge a pull request, keep, or delete the branch.\"\ncalls:\n  - \"soft:using-git-worktrees\"\n  - \"soft:requesting-code-review\"\ncompatibility:\n  - \"Python 3.11+ standard library\"\n---\n\n# Finishing a Development Branch\n\n## Overview\n\nOffer clear options for completing development work and carry out the workflow that the human user selected.\n\nPrinciple: reproduce relevant CI locally -> honor the path that the human user selected -> reconcile remote CI and review -> integrate the verified head -> clean up only when safe.\n\n## Process\n\n### Step 1: CI preflight\n\nBefore the first push or an amend intended for publication, inspect the actual CI workflow definitions and the scripts or reusable workflows they invoke. Determine the applicable jobs from their triggers, path filters, matrix, and the proposed change. Record the commands, runner\u002Fruntime versions, dependencies, environment requirements, and generated-file or documentation checks. Do not substitute a remembered test command or a representative subset of tests for this inventory. If the repository has no CI workflow, use its documented validation contract and say that no remote workflow exists.\n\nRun all relevant locally executable equivalents, including setup and generated-artifact checks, with the workflow's runtime versions and flags where available. Identical commands under identical conditions may share one result; distinct matrix conditions may not. Match missing runtimes when feasible. Record unavoidable OS, runtime, service, credential, or runner differences explicitly, with the checks that remain remote-only. A pass on a different runtime is evidence for that local environment, not proof of runner parity. An unavailable runner does not excuse skipping the remaining checks that can run locally.\n\nBind results to the tested tree and environment. After an edit, regeneration, amend, rebase, or dependency\u002Fconfiguration change, invalidate and rerun every affected check before pushing. Reuse unaffected results only with an explicit unchanged-input basis; if impact cannot be bounded, rerun the applicable workflow set. Documentation-only changes can still affect literal assertions, link checks, catalog parity, and packaging checks. An unchanged tree after a metadata-only amend can retain local results, but the new head still needs its own remote CI and review evidence.\n\nFix observed failures before pushing. Do not add skip flags, weaken assertions, disable jobs, or mark required checks optional merely to obtain a green result. A legitimate contract change must retain meaningful coverage. Report unavoidable remote-only gaps honestly and proceed with a branch push that the human user authorized only after runnable checks pass; this is not permission to integrate with unverified required CI.\n\nRecord a compact preflight matrix: workflow\u002Fjob, applicable command, required versus actual environment, tested tree, exit status, skipped or remote-only coverage, and reason. The preflight reduces preventable remote failures; it does not guarantee that CI cannot fail.\n\nWhen tests fail:\n```\nTests failing (\u003CN> failures). Must fix before completing:\n\n[Show failures]\n\nCannot push or integrate until runnable checks pass.\n```\n\nSuspend the push or integration that depends on those checks. Correct the observed failure within what the human user's instructions already authorize.\n\nWhen runnable checks pass and runner gaps are recorded: proceed to Step 2. After pushing, require successful applicable remote CI for the exact head before integration. A green older SHA, local pass, clean code review, pending job, or silently skipped required job does not satisfy that condition.\n\n### Step 2: Determine the base branch\n\nUse the target that the human user specified, the target of a PR whose base the human user set, or the inspected repository default; a PR base that the response model set does not identify the integration target. A merge-base with main or master shows ancestry but does not by itself identify the intended integration target. Ask the human user only when these leave the integration target unresolved.\n\n### Step 3: Resolve the integration path\n\nFirst use the human user's existing instruction. If the human user already authorized merging, pushing a PR, or retaining the branch, carry out that path after its checks. The human user's authorization to merge does not imply permission to skip review.\n\nOnly when the integration path remains undecided, ask the human user, in the human user's language, to choose one of Step 4's four options: local merge, push and create a pull request, keep as-is, or discard.\n\nKeep the options concise and explain only a concrete blocker or consequence the user needs to decide.\n\n### Step 4: Execute the human user's selection\n\n#### Before integrating a pull request\n\nThe response model follows requesting-code-review's [Remote Pull Request Review Gate](..\u002Frequesting-code-review\u002FSKILL.md#remote-pull-request-review-gate). That procedure returns the reconciled head, required review\u002FCI results and finding dispositions. Integrate only the head those results support. This gate adds no remote review to a purely local integration without a PR.\n\nWhen the human user requests one commit, consolidate the unmerged work before the final review. A replacement of a published PR branch that the human user authorized uses `--force-with-lease` with the expected prior head and targets only that PR branch. A one-commit request alone does not authorize rewriting published `main` or another shared base branch. Work already merged needs a follow-up commit unless the human user specifically authorizes replacing an identified published range. With that separate authorization from the human user, preserve recovery refs, verify that the replacement contains exactly the work that the human user's instructions authorize without dropping unrelated changes, and use an explicit expected-head lease on the target ref that the human user authorized. If the remote head moves or the range cannot be reconciled, stop the push and inspect; do not broaden the authorization or overwrite the new work. A rewritten head invalidates the prior review's freshness even when tests remain green.\n\n#### Option 1: Local merge\n\nApply the remote review gate first when this branch has an associated PR. Preserve the merge strategy and authorship that the human user requested; the commands below illustrate a local merge when the human user specified no different strategy.\n\n```bash\n# Switch to the base branch\ngit checkout \u003Cbase-branch>\n\n# Pull the latest state\ngit pull\n\n# Merge the feature branch\ngit merge \u003Cfeature-branch>\n\n# Verify tests on the merge result\n\u003Ctest command>\n\n# When tests pass\ngit branch -d \u003Cfeature-branch>\n```\n\nAfter that: clean up the worktree (Step 5)\n\n#### Option 2: Push and create a PR\n\nComplete Step 1 on the final proposed tree before this first push and before publishing an amended replacement.\n\n```bash\n# Push the branch\ngit push -u origin \u003Cfeature-branch>\n\n# Write the exact PR description to a file, then create the PR\ngh pr create --title \"\u003Ctitle>\" --body-file \u003Cprepared-body-file>\n```\n\nKeep the branch and worktree while review or follow-up changes are pending. If the human user also authorized merging, continue through the remote review gate and integrate the reconciled head; do not stop at PR creation. Posting review requests or bot-trigger comments requires the human user's existing authorization for that communication, including through a workflow that the human user explicitly invoked for that post.\n\n#### Option 3: Keep as-is\n\nReport: \"Keeping branch \u003Cname>. Worktree preserved at \u003Cpath>.\"\n\nDo not clean up the worktree.\n\n#### Option 4: Discard\n\nAsk the human user to confirm first:\n```\nThis will permanently delete:\n- Branch \u003Cname>\n- All commits: \u003Ccommit-list>\n- Worktree at \u003Cpath>\n\nType 'discard' to confirm.\n```\n\nWait for the human user's exact confirmation.\n\nOn the human user's confirmation:\n```bash\ngit checkout \u003Cbase-branch>\ngit branch -D \u003Cfeature-branch>\n```\n\nAfter that: clean up the worktree (Step 5)\n\n### Step 5: Worktree cleanup\n\nFor a completed merge or a discard the human user confirmed (options 1 and 4), first ensure no uncommitted work or ongoing review\u002Ffix task needs the checkout. Never delete the working directory of an active task.\n\nCheck whether you are in a worktree:\n```bash\ngit worktree list\n```\n\nIf so:\n```bash\ngit worktree remove \u003Cworktree-path>\n```\n\nFor an open PR or keep-as-is choice (options 2 and 3): keep the worktree. A PR may need review fixes even when CI has passed.\n\n## Failure modes\n\nA selected integration path does not authorize unrelated changes or messages.\n\nVerification-before-completion owns completion claims and evidence reuse; systematic-debugging owns failed attempts. The output states the actual integration result, verified head, remaining gaps and preserved or removed checkout.\n","# Finishing a Development Branch\n\n## Overview\n\nOffer clear options for completing development work and carry out the workflow that the human user selected.\n\nPrinciple: reproduce relevant CI locally -> honor the path that the human user selected -> reconcile remote CI and review -> integrate the verified head -> clean up only when safe.\n\n## Process\n\n### Step 1: CI preflight\n\nBefore the first push or an amend intended for publication, inspect the actual CI workflow definitions and the scripts or reusable workflows they invoke. Determine the applicable jobs from their triggers, path filters, matrix, and the proposed change. Record the commands, runner\u002Fruntime versions, dependencies, environment requirements, and generated-file or documentation checks. Do not substitute a remembered test command or a representative subset of tests for this inventory. If the repository has no CI workflow, use its documented validation contract and say that no remote workflow exists.\n\nRun all relevant locally executable equivalents, including setup and generated-artifact checks, with the workflow's runtime versions and flags where available. Identical commands under identical conditions may share one result; distinct matrix conditions may not. Match missing runtimes when feasible. Record unavoidable OS, runtime, service, credential, or runner differences explicitly, with the checks that remain remote-only. A pass on a different runtime is evidence for that local environment, not proof of runner parity. An unavailable runner does not excuse skipping the remaining checks that can run locally.\n\nBind results to the tested tree and environment. After an edit, regeneration, amend, rebase, or dependency\u002Fconfiguration change, invalidate and rerun every affected check before pushing. Reuse unaffected results only with an explicit unchanged-input basis; if impact cannot be bounded, rerun the applicable workflow set. Documentation-only changes can still affect literal assertions, link checks, catalog parity, and packaging checks. An unchanged tree after a metadata-only amend can retain local results, but the new head still needs its own remote CI and review evidence.\n\nFix observed failures before pushing. Do not add skip flags, weaken assertions, disable jobs, or mark required checks optional merely to obtain a green result. A legitimate contract change must retain meaningful coverage. Report unavoidable remote-only gaps honestly and proceed with a branch push that the human user authorized only after runnable checks pass; this is not permission to integrate with unverified required CI.\n\nRecord a compact preflight matrix: workflow\u002Fjob, applicable command, required versus actual environment, tested tree, exit status, skipped or remote-only coverage, and reason. The preflight reduces preventable remote failures; it does not guarantee that CI cannot fail.\n\nWhen tests fail:\n```\nTests failing (\u003CN> failures). Must fix before completing:\n\n[Show failures]\n\nCannot push or integrate until runnable checks pass.\n```\n\nSuspend the push or integration that depends on those checks. Correct the observed failure within what the human user's instructions already authorize.\n\nWhen runnable checks pass and runner gaps are recorded: proceed to Step 2. After pushing, require successful applicable remote CI for the exact head before integration. A green older SHA, local pass, clean code review, pending job, or silently skipped required job does not satisfy that condition.\n\n### Step 2: Determine the base branch\n\nUse the target that the human user specified, the target of a PR whose base the human user set, or the inspected repository default; a PR base that the response model set does not identify the integration target. A merge-base with main or master shows ancestry but does not by itself identify the intended integration target. Ask the human user only when these leave the integration target unresolved.\n\n### Step 3: Resolve the integration path\n\nFirst use the human user's existing instruction. If the human user already authorized merging, pushing a PR, or retaining the branch, carry out that path after its checks. The human user's authorization to merge does not imply permission to skip review.\n\nOnly when the integration path remains undecided, ask the human user, in the human user's language, to choose one of Step 4's four options: local merge, push and create a pull request, keep as-is, or discard.\n\nKeep the options concise and explain only a concrete blocker or consequence the user needs to decide.\n\n### Step 4: Execute the human user's selection\n\n#### Before integrating a pull request\n\nThe response model follows requesting-code-review's [Remote Pull Request Review Gate](..\u002Frequesting-code-review\u002FSKILL.md#remote-pull-request-review-gate). That procedure returns the reconciled head, required review\u002FCI results and finding dispositions. Integrate only the head those results support. This gate adds no remote review to a purely local integration without a PR.\n\nWhen the human user requests one commit, consolidate the unmerged work before the final review. A replacement of a published PR branch that the human user authorized uses `--force-with-lease` with the expected prior head and targets only that PR branch. A one-commit request alone does not authorize rewriting published `main` or another shared base branch. Work already merged needs a follow-up commit unless the human user specifically authorizes replacing an identified published range. With that separate authorization from the human user, preserve recovery refs, verify that the replacement contains exactly the work that the human user's instructions authorize without dropping unrelated changes, and use an explicit expected-head lease on the target ref that the human user authorized. If the remote head moves or the range cannot be reconciled, stop the push and inspect; do not broaden the authorization or overwrite the new work. A rewritten head invalidates the prior review's freshness even when tests remain green.\n\n#### Option 1: Local merge\n\nApply the remote review gate first when this branch has an associated PR. Preserve the merge strategy and authorship that the human user requested; the commands below illustrate a local merge when the human user specified no different strategy.\n\n```bash\n# Switch to the base branch\ngit checkout \u003Cbase-branch>\n\n# Pull the latest state\ngit pull\n\n# Merge the feature branch\ngit merge \u003Cfeature-branch>\n\n# Verify tests on the merge result\n\u003Ctest command>\n\n# When tests pass\ngit branch -d \u003Cfeature-branch>\n```\n\nAfter that: clean up the worktree (Step 5)\n\n#### Option 2: Push and create a PR\n\nComplete Step 1 on the final proposed tree before this first push and before publishing an amended replacement.\n\n```bash\n# Push the branch\ngit push -u origin \u003Cfeature-branch>\n\n# Write the exact PR description to a file, then create the PR\ngh pr create --title \"\u003Ctitle>\" --body-file \u003Cprepared-body-file>\n```\n\nKeep the branch and worktree while review or follow-up changes are pending. If the human user also authorized merging, continue through the remote review gate and integrate the reconciled head; do not stop at PR creation. Posting review requests or bot-trigger comments requires the human user's existing authorization for that communication, including through a workflow that the human user explicitly invoked for that post.\n\n#### Option 3: Keep as-is\n\nReport: \"Keeping branch \u003Cname>. Worktree preserved at \u003Cpath>.\"\n\nDo not clean up the worktree.\n\n#### Option 4: Discard\n\nAsk the human user to confirm first:\n```\nThis will permanently delete:\n- Branch \u003Cname>\n- All commits: \u003Ccommit-list>\n- Worktree at \u003Cpath>\n\nType 'discard' to confirm.\n```\n\nWait for the human user's exact confirmation.\n\nOn the human user's confirmation:\n```bash\ngit checkout \u003Cbase-branch>\ngit branch -D \u003Cfeature-branch>\n```\n\nAfter that: clean up the worktree (Step 5)\n\n### Step 5: Worktree cleanup\n\nFor a completed merge or a discard the human user confirmed (options 1 and 4), first ensure no uncommitted work or ongoing review\u002Ffix task needs the checkout. Never delete the working directory of an active task.\n\nCheck whether you are in a worktree:\n```bash\ngit worktree list\n```\n\nIf so:\n```bash\ngit worktree remove \u003Cworktree-path>\n```\n\nFor an open PR or keep-as-is choice (options 2 and 3): keep the worktree. A PR may need review fixes even when CI has passed.\n\n## Failure modes\n\nA selected integration path does not authorize unrelated changes or messages.\n\nVerification-before-completion owns completion claims and evidence reuse; systematic-debugging owns failed attempts. The output states the actual integration result, verified head, remaining gaps and preserved or removed checkout.\n",{"name":5,"calls":24,"description":7,"compatibility":27},[25,26],"soft:using-git-worktrees","soft:requesting-code-review",[28],"Python 3.11+ standard library","main","d8f3b95a64ce7042d26b5b14282d54821538b79e","coding-convention\u002Ffinishing-a-development-branch",4,"https:\u002F\u002Fgithub.com\u002FAidALL\u002Fghost-alice","https:\u002F\u002Faidall.github.io\u002Fghost-alice\u002F","https:\u002F\u002Fgithub.com\u002FAidALL","AI for everyone, AidALL","2026-11-15 02:33:23",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add AidALL\u002Fghost-alice --skill finishing-a-development-branch",{"tool":44,"command":45},"bunx","bunx skills add AidALL\u002Fghost-alice --skill finishing-a-development-branch",{"tool":47,"command":48},"pnpm","pnpm dlx skills add AidALL\u002Fghost-alice --skill finishing-a-development-branch","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAidALL\u002Fghost-alice\u002Fblob\u002Fmain\u002Fcoding-convention\u002Ffinishing-a-development-branch\u002FSKILL.md",true,[],[53,60,67,74,81,88],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M75B5QP9T3Z24VG1PZ8BFRXS","skill-evolution","Recommends skill changes from recorded tool-call patterns and conduct corrections asserted by the human user or observed by the response model, when the human user asks for such recommendations or their pending backlog, or authorizes that analysis.","https:\u002F\u002Fgithub.com\u002FAidALL\u002Fghost-alice\u002Fblob\u002Fmain\u002Fskill-evolution\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M75B5M1QFQRR9AW2PSV9GMNX","session-intent-analyzer","Records the response model's new or changed interpretation of the input the response model is answering as its `interpreted-as` record before the first tool call of work, and reads that record when it can change the objective, constraints, work choice or whether earlier work continues.","https:\u002F\u002Fgithub.com\u002FAidALL\u002Fghost-alice\u002Fblob\u002Fmain\u002Fsession-intent-analyzer\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M75B5FW8XJ7WGK3R683PG1RW","necessity-gate","Judges whether proposed work is justified, needs a narrower scope or is unjustified, when the response model proposes new work or the human user asks whether to do it.","https:\u002F\u002Fgithub.com\u002FAidALL\u002Fghost-alice\u002Fblob\u002Fmain\u002Fnecessity-gate\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M75B5CKFWYKXMAN9SWPDGT0S","merge-companion","Reviews the installer's backups of external changes to installed skills and merges each into the new skill version, discards or defers it as the human user chooses, before a task changes or reinstalls an installed skill, or when the human user asks for that review.","https:\u002F\u002Fgithub.com\u002FAidALL\u002Fghost-alice\u002Fblob\u002Fmain\u002Fmerge-companion\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M75B59BWNYVAK4W2V577W2TA","compact-handoff","Writes a handoff of the task's objective, scope, evidence and next action when a long conversation, compaction or handover to another session or agent could lose them, and resumes the task from it afterwards.","https:\u002F\u002Fgithub.com\u002FAidALL\u002Fghost-alice\u002Fblob\u002Fmain\u002Fcompact-handoff\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M75B57FN00BYY5Y50DZ980Q4","writing-skills","Writes a new skill or changes an existing one in its folder (SKILL.md, references and scripts) and tests it.","https:\u002F\u002Fgithub.com\u002FAidALL\u002Fghost-alice\u002Fblob\u002Fmain\u002Fcoding-convention\u002Fwriting-skills\u002FSKILL.md",[],[]]