[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C0SMS5YXHQ4K337MDRM0T8":3,"skill-same:01M7C0SMS5YXHQ4K337MDRM0T8":51},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7C0SMS5YXHQ4K337MDRM0T8","merge-when-ci-passes",null,"Monitor a GitHub pull request, repair CI failures caused by its current changes, push verified fixes, and squash-merge the exact green head. Use when the user asks to watch CI, fix failures, and merge once checks pass.","MateuszRomek\u002Fskills","MateuszRomek","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F46934668?v=4","01M7C0PY1M3ENSCMRTV5QZJQG4","Mateusz Romek","01M7C0PY2JNPFD2DP2HQ0YW7BV",0,"MIT","https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fmerge-when-ci-passes\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: merge-when-ci-passes\ndescription: Monitor a GitHub pull request, repair CI failures caused by its current changes, push verified fixes, and squash-merge the exact green head. Use when the user asks to watch CI, fix failures, and merge once checks pass.\n---\n\n# Merge When CI Passes\n\nRun one local loop: **observe -> diagnose -> repair -> report -> repeat -> merge**. Keep a repair ledger so every pushed change is visible in the final report.\n\n## Authority boundary\n\nInvoking this skill authorizes you to:\n\n- inspect the selected pull request, CI state, and failed logs;\n- repair failures clearly caused by the pull request and within its stated intent;\n- run focused verification, stage exact files, create conventional commits, and push them to the pull request branch;\n- rerun failed jobs once when evidence points to infrastructure or flakiness;\n- squash-merge the exact green head and synchronize the local target branch.\n\nIt does not authorize changing product intent, public contracts, schemas or migrations, security policy, dependencies, or unrelated code. It also does not authorize broad refactors, force-pushes, admin bypasses, or branch deletion. Stop and ask before any such change.\n\nPreserve unrelated work. Never stage with `git add -A` or `git add .`. If the pull request branch is not safely writable from the current checkout, report the blocker instead of repairing it.\n\n## 1. Resolve the pull request\n\n1. Use the pull request number or URL supplied by the user. Otherwise resolve the pull request for the current branch with `gh pr view`.\n2. Read at least `url`, `state`, `isDraft`, `baseRefName`, `headRefName`, and `headRefOid`.\n3. Require an open, non-draft pull request. Record its URL, target branch, initial head SHA, and current head SHA.\n4. Before editing, verify that the checked-out local branch is the pull request head branch, has the expected remote, and can be pushed without rewriting history.\n5. Start an in-memory repair ledger. Do not create a repository file for it.\n\nComplete this step when one eligible pull request and its exact head SHA are known.\n\n## 2. Hold the green gate\n\nKeep the loop inside the current task. Poll `gh pr checks \u003Cpr> --json bucket,link,name,state,workflow` at a sensible interval. Tell the user only when the status materially changes, a repair begins, a commit is pushed, or input is required.\n\nDo not create or schedule an automation, heartbeat, cron job, reminder, recurring task, separate task, thread, or background handoff.\n\nThe gate is green only when:\n\n- at least one check is reported;\n- every check is terminal;\n- every bucket is `pass` or `skipping`.\n\nTreat `pending`, `fail`, and `cancel` as a closed gate. If the pull request head changes, record whether it changed locally or externally, update the current head, and restart the gate. Never carry green results from an older head forward.\n\nComplete this step when all checks for the pull request's current head satisfy the green gate.\n\n## 3. Repair a closed gate\n\nWhen a check fails or is cancelled:\n\n1. Resolve the workflow run from the check link and inspect failed-step logs with `gh run view \u003Crun-id> --log-failed`. Read broader logs only when the failed-step output is insufficient.\n2. Classify the failure as one of:\n   - **PR-caused:** the pull request introduced the failure and a repair fits its stated intent;\n   - **flaky or infrastructure:** the code is not the likely cause;\n   - **base failure:** the target branch fails independently of this pull request;\n   - **ambiguous or out of scope:** the evidence is insufficient or the required change crosses the authority boundary.\n3. Before editing, send a concise update naming the failed check, evidence-backed root cause, intended repair, and expected files.\n4. For a PR-caused failure:\n   - reproduce it locally with the closest focused command when possible;\n   - fix the root cause, not only the reported symptom;\n   - inspect the complete diff and verify only intended files changed;\n   - run the smallest relevant checks, including a regression test when behavior was wrong;\n   - stage exact paths, create a conventional commit, and push the current branch normally;\n   - re-read the remote pull request head and require it to equal the pushed commit;\n   - immediately report the failed checks, root cause, changed files, local verification, commit SHA, and new remote head;\n   - append the same receipt to the repair ledger, then restart the green gate.\n5. For a flaky or infrastructure failure, make no code change. Rerun failed jobs once with `gh run rerun \u003Crun-id> --failed`, record the rerun in the ledger, and restart the gate. If it fails again, report the external blocker.\n6. For a base failure, do not hide it with a pull request workaround. Report the evidence and stop unless the repair is also clearly required by this pull request.\n7. For an ambiguous or out-of-scope failure, show the evidence and ask the user before editing or pushing.\n\nNever push speculative changes. A passing local check is evidence for the repair, not permission to broaden its scope.\n\n## 4. Squash-merge the tested head\n\n1. Re-read the pull request and its checks immediately before merging.\n2. Restart the green gate if `headRefOid` changed.\n3. Require the pull request to remain open, non-draft, and mergeable under normal repository protections.\n4. Briefly tell the user which exact green head is about to merge and how many repair commits this loop pushed.\n5. Run `gh pr merge \u003Cpr> --squash --match-head-commit \u003Chead-sha>`. Use neither admin bypass nor branch deletion unless the user explicitly requests it.\n6. Verify that GitHub reports the pull request as merged and capture the merge commit.\n\nComplete this step only when GitHub confirms that the tested head was squash-merged into the recorded target branch.\n\n## 5. Synchronize the local target branch\n\nPerform this step by default. Skip it when the user asks to leave the checkout unchanged or postpone synchronization.\n\n1. Inspect the worktree before switching branches. Preserve local changes; if they make switching unsafe, report the synchronization blocker instead of stashing or discarding them.\n2. Switch to the pull request target branch.\n3. Pull its upstream with `git pull --ff-only`.\n4. Verify that the local branch matches its upstream.\n\nComplete this step when the target branch is checked out and current, the user opted out, or a preserved-worktree blocker has been reported.\n\n## Report\n\nReturn:\n\n- pull request URL, initial head, and final tested head;\n- one repair-ledger entry per cycle: failed checks, classification, root cause, changed files, verification, commit SHA, pushed head, or rerun;\n- final green-check summary;\n- merge commit and exact head merged;\n- local synchronization result;\n- any remaining uncertainty or blocker.\n\nSay explicitly when no CI repairs were needed. Never omit a repair merely because the final CI run passed.\n","# Merge When CI Passes\n\nRun one local loop: **observe -> diagnose -> repair -> report -> repeat -> merge**. Keep a repair ledger so every pushed change is visible in the final report.\n\n## Authority boundary\n\nInvoking this skill authorizes you to:\n\n- inspect the selected pull request, CI state, and failed logs;\n- repair failures clearly caused by the pull request and within its stated intent;\n- run focused verification, stage exact files, create conventional commits, and push them to the pull request branch;\n- rerun failed jobs once when evidence points to infrastructure or flakiness;\n- squash-merge the exact green head and synchronize the local target branch.\n\nIt does not authorize changing product intent, public contracts, schemas or migrations, security policy, dependencies, or unrelated code. It also does not authorize broad refactors, force-pushes, admin bypasses, or branch deletion. Stop and ask before any such change.\n\nPreserve unrelated work. Never stage with `git add -A` or `git add .`. If the pull request branch is not safely writable from the current checkout, report the blocker instead of repairing it.\n\n## 1. Resolve the pull request\n\n1. Use the pull request number or URL supplied by the user. Otherwise resolve the pull request for the current branch with `gh pr view`.\n2. Read at least `url`, `state`, `isDraft`, `baseRefName`, `headRefName`, and `headRefOid`.\n3. Require an open, non-draft pull request. Record its URL, target branch, initial head SHA, and current head SHA.\n4. Before editing, verify that the checked-out local branch is the pull request head branch, has the expected remote, and can be pushed without rewriting history.\n5. Start an in-memory repair ledger. Do not create a repository file for it.\n\nComplete this step when one eligible pull request and its exact head SHA are known.\n\n## 2. Hold the green gate\n\nKeep the loop inside the current task. Poll `gh pr checks \u003Cpr> --json bucket,link,name,state,workflow` at a sensible interval. Tell the user only when the status materially changes, a repair begins, a commit is pushed, or input is required.\n\nDo not create or schedule an automation, heartbeat, cron job, reminder, recurring task, separate task, thread, or background handoff.\n\nThe gate is green only when:\n\n- at least one check is reported;\n- every check is terminal;\n- every bucket is `pass` or `skipping`.\n\nTreat `pending`, `fail`, and `cancel` as a closed gate. If the pull request head changes, record whether it changed locally or externally, update the current head, and restart the gate. Never carry green results from an older head forward.\n\nComplete this step when all checks for the pull request's current head satisfy the green gate.\n\n## 3. Repair a closed gate\n\nWhen a check fails or is cancelled:\n\n1. Resolve the workflow run from the check link and inspect failed-step logs with `gh run view \u003Crun-id> --log-failed`. Read broader logs only when the failed-step output is insufficient.\n2. Classify the failure as one of:\n   - **PR-caused:** the pull request introduced the failure and a repair fits its stated intent;\n   - **flaky or infrastructure:** the code is not the likely cause;\n   - **base failure:** the target branch fails independently of this pull request;\n   - **ambiguous or out of scope:** the evidence is insufficient or the required change crosses the authority boundary.\n3. Before editing, send a concise update naming the failed check, evidence-backed root cause, intended repair, and expected files.\n4. For a PR-caused failure:\n   - reproduce it locally with the closest focused command when possible;\n   - fix the root cause, not only the reported symptom;\n   - inspect the complete diff and verify only intended files changed;\n   - run the smallest relevant checks, including a regression test when behavior was wrong;\n   - stage exact paths, create a conventional commit, and push the current branch normally;\n   - re-read the remote pull request head and require it to equal the pushed commit;\n   - immediately report the failed checks, root cause, changed files, local verification, commit SHA, and new remote head;\n   - append the same receipt to the repair ledger, then restart the green gate.\n5. For a flaky or infrastructure failure, make no code change. Rerun failed jobs once with `gh run rerun \u003Crun-id> --failed`, record the rerun in the ledger, and restart the gate. If it fails again, report the external blocker.\n6. For a base failure, do not hide it with a pull request workaround. Report the evidence and stop unless the repair is also clearly required by this pull request.\n7. For an ambiguous or out-of-scope failure, show the evidence and ask the user before editing or pushing.\n\nNever push speculative changes. A passing local check is evidence for the repair, not permission to broaden its scope.\n\n## 4. Squash-merge the tested head\n\n1. Re-read the pull request and its checks immediately before merging.\n2. Restart the green gate if `headRefOid` changed.\n3. Require the pull request to remain open, non-draft, and mergeable under normal repository protections.\n4. Briefly tell the user which exact green head is about to merge and how many repair commits this loop pushed.\n5. Run `gh pr merge \u003Cpr> --squash --match-head-commit \u003Chead-sha>`. Use neither admin bypass nor branch deletion unless the user explicitly requests it.\n6. Verify that GitHub reports the pull request as merged and capture the merge commit.\n\nComplete this step only when GitHub confirms that the tested head was squash-merged into the recorded target branch.\n\n## 5. Synchronize the local target branch\n\nPerform this step by default. Skip it when the user asks to leave the checkout unchanged or postpone synchronization.\n\n1. Inspect the worktree before switching branches. Preserve local changes; if they make switching unsafe, report the synchronization blocker instead of stashing or discarding them.\n2. Switch to the pull request target branch.\n3. Pull its upstream with `git pull --ff-only`.\n4. Verify that the local branch matches its upstream.\n\nComplete this step when the target branch is checked out and current, the user opted out, or a preserved-worktree blocker has been reported.\n\n## Report\n\nReturn:\n\n- pull request URL, initial head, and final tested head;\n- one repair-ledger entry per cycle: failed checks, classification, root cause, changed files, verification, commit SHA, pushed head, or rerun;\n- final green-check summary;\n- merge commit and exact head merged;\n- local synchronization result;\n- any remaining uncertainty or blocker.\n\nSay explicitly when no CI repairs were needed. Never omit a repair merely because the final CI run passed.\n",{"name":5,"description":7},"main","b604251d9d562521f58b39a240910968f6564a89",".agents\u002Fskills\u002Fmerge-when-ci-passes","https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills","https:\u002F\u002Fgithub.com\u002FMateuszRomek","mateuszromek.com","2026-11-13 01:35:46",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add MateuszRomek\u002Fskills --skill merge-when-ci-passes",{"tool":37,"command":38},"bunx","bunx skills add MateuszRomek\u002Fskills --skill merge-when-ci-passes",{"tool":40,"command":41},"pnpm","pnpm dlx skills add MateuszRomek\u002Fskills --skill merge-when-ci-passes","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fmerge-when-ci-passes\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",261,"https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fmerge-when-ci-passes\u002Fagents\u002Fopenai.yaml",[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7C0YZ4R20ZCCZVCSMETEX5S","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7C0YVJJ1SJD9A5Z9RVGZCHN","wizard","Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.","https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwizard\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7C0YR2G4WDJ6C0HE05G6MRD","why","Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Searches available evidence sources and returns a cited account of decisions and tradeoffs. Use how for runtime behavior.","https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7C0YND1NS2EFSS21JGC7EFX","wayfinder","Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.","https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwayfinder\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":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7C0YH23EQCKD3R92V3BCS91","unslop","Cut AI tells from prose. Use before writing or revising any reply, doc, PR description, commit message, or skill text another reader will see, or for \u002Funslop.","https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Funslop\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},"01M7C0YF7BZVR2VXKS425SFMY0","typescript-best-practices","TypeScript best practices. Use when reading or editing any .ts or .tsx file.","https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftypescript-best-practices\u002FSKILL.md",[],[]]