GitHub code
Use git and gh for repository work.
| Action | Tool / command |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| Create PR | github_createPullRequest (not gh pr create) |
| Update PR title/body/base/state | github_updatePullRequest |
| Mark PR ready / draft | github_updatePullRequest with draft: false / draft: true |
| Submit PR review | github_submitPullRequestReview |
| Comment on PR / reply in thread | github_commentOnPullRequest (in_reply_to for a thread reply) |
| Resolve review thread | github_resolvePullRequestReviewThread |
| Clone missing repo | github_cloneRepository (not git clone or gh repo clone); on Workspace match error use switchWorkspace |
Open when needed
| Need | Read |
| ---------------------------------- | -------------------------------------------------------------------------------------- |
| Commands and permissions | references/api-surface.md |
| Edit, verify, and open a PR | references/workflow.md |
| Command, permission, or CI failure | references/troubleshooting-workarounds.md |
Always
- Use the requested repo. Otherwise read
github.repowith standalonejr-rpc config get github.repo. - Pass
--repo owner/repotogh. Usegit -C PATHfor local repos. - Read each applicable
AGENTS.mdbefore edits. - Keep unrelated work. Never delete refs or make destructive merges.
- Force-push only with
--force-with-lease, and only to branches Junior pushed or the requester named. - Use repository evidence. Report only checks you ran.
- Push before
github_createPullRequest. Never ask for a token for bot pushes. - When an error names a tool, use it. Change permissions only when GitHub rejected the request.
- Stop for an unclear target, missing access, destructive work, or a GitHub permission failure.
- Code changes always end in a pushed branch and a PR. Do not ask whether to open one. Skip it only when the user opts out or asks for investigation only.
- Open the PR as a draft, unless the requester asks for a ready PR. A scope or follow-up question is not a reason to stop: open the PR, and name the question in the PR body and in one line of the reply. Name each open decision of a draft in its PR body: when the required checks pass, the Watch marks a draft with no open decision ready for review. It checks the changed files against CODEOWNERS first: a draft that would ask code owners to review, or whose repo's
AGENTS.mdasks for drafts, stays a draft, and the Watch asks only the requester to review it, which adds their Inbox item. When the requester approves that draft, the Watch marks it ready. - Link the PR. Mention checks only when they failed or were skipped.
- The runtime adds the requester
vialine. Do not write one. - Credit other people, such as a reporter, by GitHub
@loginso GitHub notifies them. Get the login fromuserLookup(linked_identitieswith providergithub, else a GitHub link inprofile_fields). Pass the Slack user ID when known. With no login, write the name. Never guess a login. When you delegate the write, put the@loginin the brief.
Do not install or repair the GitHub plugin from this skill.