[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M783FADHW985N166W7NWWNBR":3,"skill-same:01M783FADHW985N166W7NWWNBR":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":35,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M783FADHW985N166W7NWWNBR","git-and-pr-flow",null,"Commit work, branch, push and open or review a pull request with the git and github verbs - named paths only, push and PR only when the owner asked","theselfruleorg\u002Fpolyrob","theselfruleorg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128891129?v=4","01M783D1MFDP1D5ZXSNZMKHARH","01M783D1NEE9ATD39KJYCRR09J",12,"MIT","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fdata\u002Fprompts\u002Fskills\u002Fgit-and-pr-flow\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: git-and-pr-flow\ndescription: Commit work, branch, push and open or review a pull request with the git and github verbs - named paths only, push and PR only when the owner asked\nlicense: MIT\nmetadata:\n  polyrob-when: 'Committing work, branching or opening a pull request'\n  polyrob-priority: '3'\n  polyrob-owner-only: 'true'\n  polyrob-triggers: '{\"tool_ids\":[\"git\",\"github\"]}'\n  polyrob-version: '1'\n---\n# Git and Pull-Request Flow\n\nRecord work in git and move it through a pull request. A push, a PR, a comment and an\nissue are public; do them only when the owner asked.\n\n## Tool availability\nRead the `git` and `github` lines of your `\u003Ctool-catalog>`. `[loadable]` →\n`load_tool(\"\u003Cid>\")`. `[gated:…]` → follow the remedy it names (see `harness-manual`);\nabsent → say that this deploy has no such tool. `github` also needs a token the operator sets. A delegated sub-agent\nholds neither. The git verbs work in the session workspace (on a local terminal, the\nproject directory).\n\n## Commit\n1. `git_status` and `git_diff` first: know what changed and what is not yours.\n2. Branch for a change when the owner works with branches:\n   `git_checkout(ref=\"\u003Cbranch>\", create=true)`. `git_branch` lists branches.\n3. Stage NAMED paths only: `git_add(paths=[\"src\u002Fa.py\", \"tests\u002Ftest_a.py\"])`. Never\n   stage everything; never stage a secret, a `.env` or a build output.\n4. `git_commit(message=…)` — say WHY in the message, not only what.\n5. `git_log` to confirm the commit.\n\n## Push and pull request (only when the owner asked)\n1. `git_pull` before `git_push`; resolve a conflict in your own change only.\n2. `git_push(branch=…, set_upstream=true)` for a new branch.\n3. `github_open_pr(repo=\"\u003Cowner>\u002F\u003Cname>\", title=…, head=\"\u003Cbranch>\", base=\"main\", body=…)`.\n   The body says what changed, why, and how you tested it.\n4. CI: `github_actions_runs(repo=…)`, then `github_actions_logs(repo=…, run_id=…)` for a\n   failed run (see `coding-workflow` → `build-failure-triage.md`). `github_actions_logs`\n   gives the run status and a logs URL, not the log text.\n5. Never merge without the owner's word: `github_merge_pr` is public and final.\n\n`git_push`, `github_open_pr` and `github_merge_pr` ask the owner only at a high\ncompute posture or when the operator gates them; otherwise they run at once.\n`github_pr_comment` and `github_issue_create` never ask. So the owner's request is\nthe gate: do not rely on an approval prompt.\n\n## Review a pull request\n`github_pr_view(repo=…, number=…)` gives the title, state and URL only. For the diff,\n`git_clone` and `shell_run` `git diff \u003Cbase>...\u003Chead>` where `shell` is loaded; else say\nthat you could not read the diff. Read the diff with the lenses in\n`coding-workflow` → `review-lenses.md`. Post findings with `github_pr_comment` only when\nthe owner asked you to comment; else report them to the owner.\n\n## Failures\n- Auth refused → the token is an operator setting; say so, do not ask for it in chat.\n- A push rejected as non-fast-forward → `git_pull`, re-run the tests, push again.\n","# Git and Pull-Request Flow\n\nRecord work in git and move it through a pull request. A push, a PR, a comment and an\nissue are public; do them only when the owner asked.\n\n## Tool availability\nRead the `git` and `github` lines of your `\u003Ctool-catalog>`. `[loadable]` →\n`load_tool(\"\u003Cid>\")`. `[gated:…]` → follow the remedy it names (see `harness-manual`);\nabsent → say that this deploy has no such tool. `github` also needs a token the operator sets. A delegated sub-agent\nholds neither. The git verbs work in the session workspace (on a local terminal, the\nproject directory).\n\n## Commit\n1. `git_status` and `git_diff` first: know what changed and what is not yours.\n2. Branch for a change when the owner works with branches:\n   `git_checkout(ref=\"\u003Cbranch>\", create=true)`. `git_branch` lists branches.\n3. Stage NAMED paths only: `git_add(paths=[\"src\u002Fa.py\", \"tests\u002Ftest_a.py\"])`. Never\n   stage everything; never stage a secret, a `.env` or a build output.\n4. `git_commit(message=…)` — say WHY in the message, not only what.\n5. `git_log` to confirm the commit.\n\n## Push and pull request (only when the owner asked)\n1. `git_pull` before `git_push`; resolve a conflict in your own change only.\n2. `git_push(branch=…, set_upstream=true)` for a new branch.\n3. `github_open_pr(repo=\"\u003Cowner>\u002F\u003Cname>\", title=…, head=\"\u003Cbranch>\", base=\"main\", body=…)`.\n   The body says what changed, why, and how you tested it.\n4. CI: `github_actions_runs(repo=…)`, then `github_actions_logs(repo=…, run_id=…)` for a\n   failed run (see `coding-workflow` → `build-failure-triage.md`). `github_actions_logs`\n   gives the run status and a logs URL, not the log text.\n5. Never merge without the owner's word: `github_merge_pr` is public and final.\n\n`git_push`, `github_open_pr` and `github_merge_pr` ask the owner only at a high\ncompute posture or when the operator gates them; otherwise they run at once.\n`github_pr_comment` and `github_issue_create` never ask. So the owner's request is\nthe gate: do not rely on an approval prompt.\n\n## Review a pull request\n`github_pr_view(repo=…, number=…)` gives the title, state and URL only. For the diff,\n`git_clone` and `shell_run` `git diff \u003Cbase>...\u003Chead>` where `shell` is loaded; else say\nthat you could not read the diff. Read the diff with the lenses in\n`coding-workflow` → `review-lenses.md`. Post findings with `github_pr_comment` only when\nthe owner asked you to comment; else report them to the owner.\n\n## Failures\n- Auth refused → the token is an operator setting; say so, do not ask for it in chat.\n- A push rejected as non-fast-forward → `git_pull`, re-run the tests, push again.\n",{"name":5,"license":14,"metadata":23,"description":7},{"polyrob-when":24,"polyrob-version":25,"polyrob-priority":26,"polyrob-triggers":27,"polyrob-owner-only":28},"Committing work, branching or opening a pull request","1","3","{\"tool_ids\":[\"git\",\"github\"]}","true","main","3a595c0e3db5aa91acc53dd80673c4d80e0721d1","data\u002Fprompts\u002Fskills\u002Fgit-and-pr-flow",2,"https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg","https:\u002F\u002Ftheselfrule.org","2026-11-14 16:54:43",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add theselfruleorg\u002Fpolyrob --skill git-and-pr-flow",{"tool":43,"command":44},"bunx","bunx skills add theselfruleorg\u002Fpolyrob --skill git-and-pr-flow",{"tool":46,"command":47},"pnpm","pnpm dlx skills add theselfruleorg\u002Fpolyrob --skill git-and-pr-flow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fdata\u002Fprompts\u002Fskills\u002Fgit-and-pr-flow\u002FSKILL.md",true,[],[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":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M783NSEPG1S13E7W3GEQMG6J","echo-basics","How to use the echo tool from the echo fixture pack.","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fpacks\u002Fecho\u002Fpolyrob_echo\u002Fskills\u002Fecho-basics\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M783NM911CND5PQCYDHA9GGV","x-engagement","Operate X account communication on the API rail (the captured-browser rail only where the owner chose it)—read inboxes, post\u002Freply, send DMs, set up the account, with the real write gates and completion evidence","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fpacks\u002Fx\u002Fpolyrob_x\u002Fskills\u002Fx-engagement\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M783NGQ43PGVT6F9XQR4ZNP2","social-discovery","Discover public X\u002Fsocial accounts and conversations with AnySite first (anysite_describe, then anysite_api), using native X account reads where they are authoritative and preserving write gates","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fpacks\u002Fx\u002Fpolyrob_x\u002Fskills\u002Fsocial-discovery\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M783NDAEPJT10SD3DNR56H96","polymarket-trading","GATED: place\u002Fcancel Polymarket orders. Owner-only, read-first, >$500 confirmation gate; references crypto-trading-safety","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fpacks\u002Fmarkets\u002Fpolyrob_markets\u002Fskills\u002Fpolymarket-trading\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M783N8GADTQMKKBQT4Z3JJ84","polymarket-portfolio-review","Read the configured Polymarket account's positions and trade history from the public Data API (no address parameter); summarize exposure and P&L","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fpacks\u002Fmarkets\u002Fpolyrob_markets\u002Fskills\u002Fpolymarket-portfolio-review\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M783N5KTTTRRRSM7XY8SY4NF","polymarket-market-research","Read Polymarket markets (discover, details, price as implied probability, orderbook, spread, volume) with no wallet","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fpacks\u002Fmarkets\u002Fpolyrob_markets\u002Fskills\u002Fpolymarket-market-research\u002FSKILL.md",[],[]]