[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EZ6MTP0GEYZCJYTFJXT0HB":3,"skill-same:01M7EZ6MTP0GEYZCJYTFJXT0HB":54},{"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":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7EZ6MTP0GEYZCJYTFJXT0HB","resolve-drive-pr",null,"Drive an open PR through Polly\u002FOCR, validation, and maintainer handoff.","stephenhuo-code\u002Fcontexture-omnigent","stephenhuo-code","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F49703269?v=4","01M6CJ3KFPPGFV3Q04P3DAA687","yanwen","01M7EZ18M1YH045CYJR6EHFGM0",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fstephenhuo-code\u002Fcontexture-omnigent\u002Fblob\u002Fmain\u002Fdev\u002Fresolve-agent\u002Fskills\u002Fresolve-drive-pr\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: resolve-drive-pr\ndescription: Drive an open PR through Polly\u002FOCR, validation, and maintainer handoff.\n---\n\n# Drive an open PR\n\nRead each resource when reaching its substep, preserving the publication mode:\n\n| Substep | Resource |\n| --- | --- |\n| 4.2, current CI and mergeability | `ci.md` in the shared `otto-drive-pr` skill (load it) |\n| 4.3, independent Polly and OCR reviews | the shared `otto-pr-review-loop` skill (load it) |\n| 4.1, preview after CI and both reviews are clean | `preview.md` in the shared `otto-drive-pr` skill (load it) |\n| 4.4, live-validation instructions | [validation-prompt.md](validation-prompt.md) |\n| 4.5, final review and maintainer handoff | [final-review.md](final-review.md) |\n\nUse `read_skill_file` with the owning skill's name and the relative filename, or read\nrelative to the directory supplied by the native Skill tool. Workflow-owned\nauthor runs read only `validation-prompt.md` for deferred body preparation;\nlocal-only author runs skip this skill. Review-remediation follows its mode's\nexemptions. Load `resolve-handoff` before any interim or final handoff.\n\nA draft proposal with an unresolved design choice follows `resolve-publish`'s\nincomplete handoff exception. Do not enter this readiness loop or promote the\ndraft just to satisfy `review_cycle.py`.\n\nWhen `.omnigent\u002Fpr-gate.json` exists, use the checked-publication commands in\n`resolve-publish` for all PR writes, including replies to findings. CI's\ninstructions govern reviewer outages and review budgets. Do not use the direct\nwrite, approval, fork takeover, or token-recovery recipes in this mode.\n\n## Step 4 — Land the PR: preview, green CI, clean review, hand it to the maintainer\n\nThis step applies to **any PR you are driving toward landable** — the one you\nopened (author path, Step 2B\u002F3) **and** the existing PR you reviewed and kept as\nthe fix (review path, Step 2A, when its approach was sound). The goal is identical\neither way: a live preview, green CI, a clean automated review, a copy-paste\nlive-validation command, and a maintainer tagged. `skip_push` runs (author path\nthat only committed locally) have no PR to land, so skip Step 4 entirely.\nWorkflow-owned author runs also have no PR during the agent session: perform only\nthe deferred body\u002Fprompt preparation called out in Step 4.4 before the final\nhandoff, and leave preview, CI, both reviews, GitHub comments, and maintainer\ntagging to the post-publication workflow. Once a directly published or reviewed\nPR is up you **stay on it** until CI is green and the review is clean, then hand it to a\nhuman. The sub-steps overlap in time (kick off the preview and the first review,\nthen poll), so don't serialize what can run concurrently.\n\nRefresh the shared impact assessment after changes made in this loop, including\nCI\u002Freview fixes and conflict resolution. Earlier green checks do not cover a new\nhead automatically.\n\n**Whose branch — push or take over.** On the **author path** the PR is yours: push\nfix commits freely. On the **review path** the PR is someone else's; whether you\ncan land a fix depends on where its branch lives:\n\n- **In-repo PR branch** (the head branch is on `omnigent-ai\u002Fomnigent`, not a fork)\n  → you have write access. Push fixes the same as the author path, then re-check.\n  Say in your review comments that you pushed, so the author isn't surprised.\n- **Fork PR** (the head branch is on a contributor's fork, `head.repo.fork ==\n  true`) → the App token cannot push there, but CI may provide an isolated\n  maintainer credential specifically for that transport. Read\n  `maintainerCanModify`, `headRepositoryOwner`, `headRepository`, and\n  `headRefName` from `gh pr view`.\n  - If `maintainerCanModify` is true and\n    `git config --get omnigent.forkPushTokenFile` names a readable file, preserve\n    the contributor's branch. Keep the App token exported as `GH_TOKEN` for all\n    visible actions. For the push only, use CI's credential-isolating helper:\n    ```bash\n    omnigent-push-fork --repo \u003Cowner>\u002F\u003Crepo> --branch \u003Chead-branch>\n    ```\n    The helper uses `GIT_ASKPASS`, clears the checkout's App-token extraheader\n    only for that push, and keeps the maintainer token out of command arguments,\n    remote URLs, and git's failure output. Never read or copy the token file\n    yourself, and never use it for `gh pr comment`\u002F`review`\u002F`create`; those\n    commands must remain bot-attributed through the App token.\n  - **If the fork PR needs a fix** and maintainer edits are disabled, the token\n    file is absent, or the isolated push returns a real permission error →\n    **take over: open your own PR**\n    that includes their work plus your fix. This is the same mechanic as the\n    \"approach is wrong\" escape hatch (Step 2A), but the reason is different — the\n    approach is fine, you just can't push the fix to a fork. Build it so the\n    contributor keeps credit:\n    - Branch off `main`, cherry-pick the fork PR's commits (`gh pr checkout \u003Cpr>`\n      then replay onto your branch, or `git cherry-pick`), then add your fix on top.\n    - Credit the original author on the commits (`Co-authored-by: \u003Cname> \u003Cemail>`,\n      read from `gh pr view \u003Cpr> --json commits`).\n    - In your PR body, put `Supersedes #\u003Cpr>` on its own line, credit\n      `@\u003Cauthor>`, and say why you re-opened it (couldn't push to the fork). The\n      duplicate-PR workflow exempts trusted resolve-agent replacement PRs.\n    - Comment on the fork PR as soon as yours opens, but leave it open while the\n      replacement is being reviewed:\n      ```\n      gh pr comment \u003Cfork-pr> --body 'Replacement #\u003Cyour-pr> is open because maintainer fork updates were unavailable. Your commits are carried over with credit. This PR will remain open until the replacement merges. Thanks @\u003Cauthor>!'\n      ```\n      The trusted post-merge workflow reads the `Supersedes #\u003Cpr>` marker and\n      closes the contributor PR only after your replacement is merged. Never\n      close a contributor PR merely because a replacement was opened.\n    - Set `mode: \"authored_fix\"`, record the fork PR's number in `reviewed_pr_url`,\n      and drive **your** PR through the rest of Step 4 (you can push to it).\n  - **If the fork PR needs no fix** (repro passes against it, CI green, review\n    clean) → there's nothing to push, so keep it. Since you're a pure independent\n    reviewer here, **submit an approving review** (2A.5) with the findings + the\n    try-it-out command, then tag the maintainer. No takeover needed. (The approval\n    is a bot indicator — the maintainer's approval still merges it.)\n\nThroughout, address the PR you're landing by its number `\u003Cpr>`. Continue until\ncurrent CI and both independent reviews are settled; follow the workflow-provided review budget when present; otherwise there is no fixed\nreview-round cap. After every push, request both Polly and OCR for the new head\n(Step 4.3), including pushes for CI or conflict repairs. A fork takeover starts\nthis loop on the replacement PR. If a concrete blocker or actual execution\ndeadline prevents completion, leave a resumable checkpoint and report\n`outcome: \"partially_fixed\"` with the unresolved work (see Output). Never loosen\na test, skip a check, or merge to force green.\n","# Drive an open PR\n\nRead each resource when reaching its substep, preserving the publication mode:\n\n| Substep | Resource |\n| --- | --- |\n| 4.2, current CI and mergeability | `ci.md` in the shared `otto-drive-pr` skill (load it) |\n| 4.3, independent Polly and OCR reviews | the shared `otto-pr-review-loop` skill (load it) |\n| 4.1, preview after CI and both reviews are clean | `preview.md` in the shared `otto-drive-pr` skill (load it) |\n| 4.4, live-validation instructions | [validation-prompt.md](validation-prompt.md) |\n| 4.5, final review and maintainer handoff | [final-review.md](final-review.md) |\n\nUse `read_skill_file` with the owning skill's name and the relative filename, or read\nrelative to the directory supplied by the native Skill tool. Workflow-owned\nauthor runs read only `validation-prompt.md` for deferred body preparation;\nlocal-only author runs skip this skill. Review-remediation follows its mode's\nexemptions. Load `resolve-handoff` before any interim or final handoff.\n\nA draft proposal with an unresolved design choice follows `resolve-publish`'s\nincomplete handoff exception. Do not enter this readiness loop or promote the\ndraft just to satisfy `review_cycle.py`.\n\nWhen `.omnigent\u002Fpr-gate.json` exists, use the checked-publication commands in\n`resolve-publish` for all PR writes, including replies to findings. CI's\ninstructions govern reviewer outages and review budgets. Do not use the direct\nwrite, approval, fork takeover, or token-recovery recipes in this mode.\n\n## Step 4 — Land the PR: preview, green CI, clean review, hand it to the maintainer\n\nThis step applies to **any PR you are driving toward landable** — the one you\nopened (author path, Step 2B\u002F3) **and** the existing PR you reviewed and kept as\nthe fix (review path, Step 2A, when its approach was sound). The goal is identical\neither way: a live preview, green CI, a clean automated review, a copy-paste\nlive-validation command, and a maintainer tagged. `skip_push` runs (author path\nthat only committed locally) have no PR to land, so skip Step 4 entirely.\nWorkflow-owned author runs also have no PR during the agent session: perform only\nthe deferred body\u002Fprompt preparation called out in Step 4.4 before the final\nhandoff, and leave preview, CI, both reviews, GitHub comments, and maintainer\ntagging to the post-publication workflow. Once a directly published or reviewed\nPR is up you **stay on it** until CI is green and the review is clean, then hand it to a\nhuman. The sub-steps overlap in time (kick off the preview and the first review,\nthen poll), so don't serialize what can run concurrently.\n\nRefresh the shared impact assessment after changes made in this loop, including\nCI\u002Freview fixes and conflict resolution. Earlier green checks do not cover a new\nhead automatically.\n\n**Whose branch — push or take over.** On the **author path** the PR is yours: push\nfix commits freely. On the **review path** the PR is someone else's; whether you\ncan land a fix depends on where its branch lives:\n\n- **In-repo PR branch** (the head branch is on `omnigent-ai\u002Fomnigent`, not a fork)\n  → you have write access. Push fixes the same as the author path, then re-check.\n  Say in your review comments that you pushed, so the author isn't surprised.\n- **Fork PR** (the head branch is on a contributor's fork, `head.repo.fork ==\n  true`) → the App token cannot push there, but CI may provide an isolated\n  maintainer credential specifically for that transport. Read\n  `maintainerCanModify`, `headRepositoryOwner`, `headRepository`, and\n  `headRefName` from `gh pr view`.\n  - If `maintainerCanModify` is true and\n    `git config --get omnigent.forkPushTokenFile` names a readable file, preserve\n    the contributor's branch. Keep the App token exported as `GH_TOKEN` for all\n    visible actions. For the push only, use CI's credential-isolating helper:\n    ```bash\n    omnigent-push-fork --repo \u003Cowner>\u002F\u003Crepo> --branch \u003Chead-branch>\n    ```\n    The helper uses `GIT_ASKPASS`, clears the checkout's App-token extraheader\n    only for that push, and keeps the maintainer token out of command arguments,\n    remote URLs, and git's failure output. Never read or copy the token file\n    yourself, and never use it for `gh pr comment`\u002F`review`\u002F`create`; those\n    commands must remain bot-attributed through the App token.\n  - **If the fork PR needs a fix** and maintainer edits are disabled, the token\n    file is absent, or the isolated push returns a real permission error →\n    **take over: open your own PR**\n    that includes their work plus your fix. This is the same mechanic as the\n    \"approach is wrong\" escape hatch (Step 2A), but the reason is different — the\n    approach is fine, you just can't push the fix to a fork. Build it so the\n    contributor keeps credit:\n    - Branch off `main`, cherry-pick the fork PR's commits (`gh pr checkout \u003Cpr>`\n      then replay onto your branch, or `git cherry-pick`), then add your fix on top.\n    - Credit the original author on the commits (`Co-authored-by: \u003Cname> \u003Cemail>`,\n      read from `gh pr view \u003Cpr> --json commits`).\n    - In your PR body, put `Supersedes #\u003Cpr>` on its own line, credit\n      `@\u003Cauthor>`, and say why you re-opened it (couldn't push to the fork). The\n      duplicate-PR workflow exempts trusted resolve-agent replacement PRs.\n    - Comment on the fork PR as soon as yours opens, but leave it open while the\n      replacement is being reviewed:\n      ```\n      gh pr comment \u003Cfork-pr> --body 'Replacement #\u003Cyour-pr> is open because maintainer fork updates were unavailable. Your commits are carried over with credit. This PR will remain open until the replacement merges. Thanks @\u003Cauthor>!'\n      ```\n      The trusted post-merge workflow reads the `Supersedes #\u003Cpr>` marker and\n      closes the contributor PR only after your replacement is merged. Never\n      close a contributor PR merely because a replacement was opened.\n    - Set `mode: \"authored_fix\"`, record the fork PR's number in `reviewed_pr_url`,\n      and drive **your** PR through the rest of Step 4 (you can push to it).\n  - **If the fork PR needs no fix** (repro passes against it, CI green, review\n    clean) → there's nothing to push, so keep it. Since you're a pure independent\n    reviewer here, **submit an approving review** (2A.5) with the findings + the\n    try-it-out command, then tag the maintainer. No takeover needed. (The approval\n    is a bot indicator — the maintainer's approval still merges it.)\n\nThroughout, address the PR you're landing by its number `\u003Cpr>`. Continue until\ncurrent CI and both independent reviews are settled; follow the workflow-provided review budget when present; otherwise there is no fixed\nreview-round cap. After every push, request both Polly and OCR for the new head\n(Step 4.3), including pushes for CI or conflict repairs. A fork takeover starts\nthis loop on the replacement PR. If a concrete blocker or actual execution\ndeadline prevents completion, leave a resumable checkpoint and report\n`outcome: \"partially_fixed\"` with the unresolved work (see Output). Never loosen\na test, skip a check, or merge to force green.\n",{"name":5,"description":7},"main","1679c4238ee0448de3b26525da79184660132bf8","dev\u002Fresolve-agent\u002Fskills\u002Fresolve-drive-pr","https:\u002F\u002Fgithub.com\u002Fstephenhuo-code\u002Fcontexture-omnigent","https:\u002F\u002Fgithub.com\u002Fstephenhuo-code","2026-11-09 19:15:17",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add stephenhuo-code\u002Fcontexture-omnigent --skill resolve-drive-pr",{"tool":36,"command":37},"bunx","bunx skills add stephenhuo-code\u002Fcontexture-omnigent --skill resolve-drive-pr",{"tool":39,"command":40},"pnpm","pnpm dlx skills add stephenhuo-code\u002Fcontexture-omnigent --skill resolve-drive-pr","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstephenhuo-code\u002Fcontexture-omnigent\u002Fblob\u002Fmain\u002Fdev\u002Fresolve-agent\u002Fskills\u002Fresolve-drive-pr\u002FSKILL.md",true,[44,50],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"final-review.md","REFERENCE","参考文档",6187,"https:\u002F\u002Fgithub.com\u002Fstephenhuo-code\u002Fcontexture-omnigent\u002Fblob\u002Fmain\u002Fdev\u002Fresolve-agent\u002Fskills\u002Fresolve-drive-pr\u002Ffinal-review.md",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"validation-prompt.md",5131,"https:\u002F\u002Fgithub.com\u002Fstephenhuo-code\u002Fcontexture-omnigent\u002Fblob\u002Fmain\u002Fdev\u002Fresolve-agent\u002Fskills\u002Fresolve-drive-pr\u002Fvalidation-prompt.md",[55,62,69,76,81,86],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7EZ9NDK23Q45H6D3SW00YX6","deep-research","Research checklist and source-quality guidance for the archer e2e fixture.","https:\u002F\u002Fgithub.com\u002Fstephenhuo-code\u002Fcontexture-omnigent\u002Fblob\u002Fmain\u002Ftests\u002Fresources\u002Fexamples\u002Farcher\u002Fskills\u002Fdeep-research\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7EZ9KFNY77TTBEBDJNEZTX8","pi-e2e-xyz-greet-c4a8d5","Test greeter — pi skills e2e. The unique suffix c4a8d5 appears in the skill name so a string match in the agent's output proves Pi loaded this skill.","https:\u002F\u002Fgithub.com\u002Fstephenhuo-code\u002Fcontexture-omnigent\u002Fblob\u002Fmain\u002Ftests\u002Fresources\u002Fagents\u002Fpi_skills_none\u002Fskills\u002Fpi-e2e-xyz-greet-c4a8d5\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7EZ9H0BW3VKANPE96MA564A","pi-e2e-xyz-count-d2f6e1","Test counter — pi skills e2e. The unique suffix d2f6e1 appears in the skill name so a string match in the agent's output proves Pi loaded this skill.","https:\u002F\u002Fgithub.com\u002Fstephenhuo-code\u002Fcontexture-omnigent\u002Fblob\u002Fmain\u002Ftests\u002Fresources\u002Fagents\u002Fpi_skills_none\u002Fskills\u002Fpi-e2e-xyz-count-d2f6e1\u002FSKILL.md",[],[],{"skillNo":77,"name":64,"nameZh":6,"description":65,"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},"01M7EZ9EHVAVZXA67B3WAD3D6T","https:\u002F\u002Fgithub.com\u002Fstephenhuo-code\u002Fcontexture-omnigent\u002Fblob\u002Fmain\u002Ftests\u002Fresources\u002Fagents\u002Fpi_skills_list\u002Fskills\u002Fpi-e2e-xyz-greet-c4a8d5\u002FSKILL.md",[],[],{"skillNo":82,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7EZ9C4CMPSQ8RYPFDCEEDBY","https:\u002F\u002Fgithub.com\u002Fstephenhuo-code\u002Fcontexture-omnigent\u002Fblob\u002Fmain\u002Ftests\u002Fresources\u002Fagents\u002Fpi_skills_list\u002Fskills\u002Fpi-e2e-xyz-count-d2f6e1\u002FSKILL.md",[],[],{"skillNo":87,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EZ9A58NMY35T5SR2VQ5Z1V","https:\u002F\u002Fgithub.com\u002Fstephenhuo-code\u002Fcontexture-omnigent\u002Fblob\u002Fmain\u002Ftests\u002Fresources\u002Fagents\u002Fpi_skills_all\u002Fskills\u002Fpi-e2e-xyz-greet-c4a8d5\u002FSKILL.md",[],[]]