git-and-pr-flow
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
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 12
- Forks
- 2
01 前言 Front Matter
- name
- git-and-pr-flow
- license
- MIT
- metadata
- { "polyrob-when": "Committing work, branching or opening a pull request", "polyrob-version": "1", "polyrob-priority": "3", "polyrob-triggers": "{\"tool_ids\":[\"git\",\"github\"]}", "polyrob-owner-only": "true" }
- description
- 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
03 SKILL.md 正文
Git and Pull-Request Flow
Record work in git and move it through a pull request. A push, a PR, a comment and an issue are public; do them only when the owner asked.
Tool availability
Read the git and github lines of your <tool-catalog>. [loadable] →
load_tool("<id>"). [gated:…] → follow the remedy it names (see harness-manual);
absent → say that this deploy has no such tool. github also needs a token the operator sets. A delegated sub-agent
holds neither. The git verbs work in the session workspace (on a local terminal, the
project directory).
Commit
git_statusandgit_difffirst: know what changed and what is not yours.- Branch for a change when the owner works with branches:
git_checkout(ref="<branch>", create=true).git_branchlists branches. - Stage NAMED paths only:
git_add(paths=["src/a.py", "tests/test_a.py"]). Never stage everything; never stage a secret, a.envor a build output. git_commit(message=…)— say WHY in the message, not only what.git_logto confirm the commit.
Push and pull request (only when the owner asked)
git_pullbeforegit_push; resolve a conflict in your own change only.git_push(branch=…, set_upstream=true)for a new branch.github_open_pr(repo="<owner>/<name>", title=…, head="<branch>", base="main", body=…). The body says what changed, why, and how you tested it.- CI:
github_actions_runs(repo=…), thengithub_actions_logs(repo=…, run_id=…)for a failed run (seecoding-workflow→build-failure-triage.md).github_actions_logsgives the run status and a logs URL, not the log text. - Never merge without the owner's word:
github_merge_pris public and final.
git_push, github_open_pr and github_merge_pr ask the owner only at a high
compute posture or when the operator gates them; otherwise they run at once.
github_pr_comment and github_issue_create never ask. So the owner's request is
the gate: do not rely on an approval prompt.
Review a pull request
github_pr_view(repo=…, number=…) gives the title, state and URL only. For the diff,
git_clone and shell_run git diff <base>...<head> where shell is loaded; else say
that you could not read the diff. Read the diff with the lenses in
coding-workflow → review-lenses.md. Post findings with github_pr_comment only when
the owner asked you to comment; else report them to the owner.
Failures
- Auth refused → the token is an operator setting; say so, do not ask for it in chat.
- A push rejected as non-fast-forward →
git_pull, re-run the tests, push again.
04 同仓库更多 Skills
echo-basics
How to use the echo tool from the echo fixture pack.
x-engagement
Operate X account communication on the API rail (the captured-browser rail only where the owner chose it)—read inboxes, post/reply, send DMs, set up the account, with the real write gates and completion evidence
social-discovery
Discover public X/social accounts and conversations with AnySite first (anysite_describe, then anysite_api), using native X account reads where they are authoritative and preserving write gates
polymarket-trading
GATED: place/cancel Polymarket orders. Owner-only, read-first, >$500 confirmation gate; references crypto-trading-safety
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
polymarket-market-research
Read Polymarket markets (discover, details, price as implied probability, orderbook, spread, volume) with no wallet