github-cli
Helper skill for GitHub operations in this repo; use it when another workflow needs gh for PRs, issues, review threads, checks, Actions runs, or job logs —…
Skill by kaeawc
Chalk Labs
Need help deploying github-cli?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/kaeawc-github-cli
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/github-cli
What's inside
- Skill name
github-cli- Description
- Helper skill for GitHub operations in this repo; use it when another workflow needs gh for PRs, issues, review threads, checks, Actions runs, or job logs — including logs from a job that is still running.
- License
- Apache-2.0
- Instructions
- 185 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# GitHub CLI Usage
Shared dependency for `check-ci`, `github-pr-feedback`, `auto-mobile-code-review`,
`pr-analysis`, `push-pr`, and `push-my-prs`.
- Prefer `gh pr view|list|create|edit` and `gh issue list|view`.
- Reach for `gh api`/GraphQL only where the subcommands fall short — review-thread resolution
state and live job logs are the two cases that matter here.
- Write long output to `scratch/` and summarize. Job logs run 100KB+; never let one into the
conversation whole.
## PR feedback: four separate surfaces
No single endpoint returns all PR feedback. Collect all four, paginated, or miss whole
categories:
```bash
gh api --paginate "repos/kaeawc/auto-mobile/issues/<PR>/comments?per_page=100" # conversation
gh api --paginate "repos/kaeawc/auto-mobile/pulls/<PR>/reviews?per_page=100" # review verdicts
gh api --paginate "repos/kaeawc/auto-mobile/pulls/<PR>/comments?per_page=100" # inline (no resolution state)
# review threads — the only source of resolution state — below
```
These three return **top-level JSON arrays**, and `--paginate` merges the pages into one flat
array, so redirecting to a file and parsing it with `jq` is safe. Verified on gh 2.96 against
PR [#4117](https://github.com/kaeawc/auto-mobile/pull/4117) with `per_page=2`: five GET requests, one top-level document, element count matching
the unpaginated result. (The `gh api` manual describes pages as separate documents — true for
GraphQL and for object-shaped responses, but not for these array endpoints on this version. If
you are on an older gh, re-check before relying on it.) Do **not** add `--slurp`
here: on an array endpoint it produces an array _of pages_ (`[[…],[…]]`), and it is rejected
outright when combined with `--jq` (`the --slurp option is not supported with --jq or
--template`). GraphQL is the opposite case — see below.
Scope everything to the PR's `headRefOid`; after any push, re-collect from the new head. For
the triage workflow — ledger, dispositions, resolution conditions — use `github-pr-feedback`.
This is just the mechanics.
## Review threads: resolution state
`GET /pulls/{n}/comments` and `gh pr view --json comments` return bodies but **not** whether a
thread is resolved; that lives only in GraphQL. Collect threads through the tested helper:
```bash
scripts/ci/pr-review-threads.sh <PR> --unresolved-only
```
It paginates review threads, emits one clean JSON array, and fails closed rather than returning a
partial feedback ledger. Do not replace it with a saved `gh api graphql --paginate` response:
GraphQL emits one JSON document per page, unlike the REST array endpoints above.
`--paginate` advances the **outer** `reviewThreads` connection only. The nested
`comments(first:20)` is a separate connection: a thread with more replies than that silently
truncates, and the later replies are exactly where a rebuttal or fix-evidence lives. For a
thread you are about to resolve on the strength of its discussion, read the full comment list
from REST instead, which paginates properly:
```bash
gh api --paginate "repos/kaeawc/auto-mobile/pulls/<PR>/comments?per_page=100" \
--jq '.[] | select(.in_reply_to_id == <root_comment_id> or .id == <root_comment_id>)
| "\(.user.login): \(.body)"'
```
`isOutdated` means the anchored line changed, **not** that the finding was addressed — judge
outdated threads on content.
Resolving needs only the thread's `PRRT_…` id:
```bash
gh api graphql -f query='
mutation($id:ID!){ resolveReviewThread(input:{threadId:$id}){ thread{ isResolved } } }' \
-F id=<PRRT_…>
```
Only resolve on a PR **we** authored and are actively working, once the finding is genuinely
handled — fixed in a pushed commit, or verified and declined. Both count: resolving claims the
thread is dealt with, not that the reviewer was right. Leave it open only when you could not
determine whether the finding is real.
Replying instead takes the _comment_ id, not the thread id:
```bash
gh api repos/kaeawc/auto-mobile/pulls/<PR>/comments/<comment_id>/replies -f body='…'
```
### Bot findings
`chatgpt-codex-connector[bot]` encodes severity as a body badge (`P1 Badge`/`P2 Badge`/`P3 Badge`):
```bash
gh api repos/kaeawc/auto-mobile/pulls/<PR>/comments --paginate \
--jq '.[] | select(.user.login|test("codex"))
| {id, path, line, sev: (.body|capture("P(?<n>[123]) Badge").n), body: .body[0:400]}'
```
P1 claims to block. Codex is usually right about mechanism and sometimes wrong about
reachability — verify before acting and equally before dismissing, and keep those two judgements
apart: a false mechanism often arrives attached to a good suggestion, so evaluate the proposed
change on its own reasoning before rejecting it. Refuting also carries the higher burden than
accepting, since a wrong rejection leaves a live bug. When you do decline, **report the reason
in-session and resolve the thread**; do not post a reply. `github-pr-feedback` and
`auto-mobile-code-review` both forbid posting, and a decline is not an exception.
## Checks
```bash
gh pr checks <PR> --json name,state,bucket,link
```
Branch on `bucket`: `pass`, `fail`, `pending`, `skipping`, `cancel`. **Only `fail` is a
failure.** A `cancelled` check on the head SHA is usually a superseded run from a rapid push,
but it can still wedge the `green-main` ruleset — re-run it rather than debugging code.
Cross-check the head SHA's check-runs, where duplicates surface:
```bash
# filter defaults to `latest`, which hides exactly the stale duplicate you are looking for.
gh api --paginate "repos/kaeawc/auto-mobile/commits/<HEAD_SHA>/check-runs?per_page=100&filter=all" \
--jq '.check_runs[] | "\(.name)\t\(.status)\t\(.conclusion // "-")\t\(.completed_at)"' | sort
```From kaeawc/auto-mobile, Apache-2.0.
More from kaeawc/auto-mobile
- 0.789score
AutoMobile
jasonpearson.dev
Mobile device interaction automation.
ConnectorAFreshness: ALocal★ 52↓ 2.9K/wkClaude Code +5 - 0.664score
fan-out-fan-in
kaeawc
Use this workflow skill only when the user wants explicit parallelization or the task should be split into isolated worktrees and merged back without separate…
SkillAFreshness: A★ 52Claude Code +9 - 0.664score
research
kaeawc
Use this skill to conduct deep parallel research on a topic using web searches and available tools.
SkillAFreshness: A★ 52Claude Code +9 - 0.664score
ship-issue
kaeawc
Drive one GitHub issue to a merged PR via TDD, autonomously by default — interrupting the user only on review-feedback thrashing or an approach pivot — with a…
SkillAFreshness: A★ 52Claude Code +9 - 0.664score
dead-code
kaeawc
Use this skill to detect and clean up dead code in this repo, starting with the project’s TypeScript dead-code scripts and validating that removals do not…
SkillAFreshness: A★ 52Claude Code +9 - 0.661score
check-ci
kaeawc
Use this workflow skill for PR CI triage: inspect pending and failed checks for the exact PR head, read live or completed job logs and artifacts, classify…
SkillAFreshness: A★ 52Claude Code +9 - 0.661score
push-my-prs
kaeawc
Use this workflow skill to iterate through multiple open PRs authored by the current user, address feedback and CI issues, and push follow-up fixes across the…
SkillAFreshness: A★ 52Claude Code +9 - 0.661score
pr-analysis
kaeawc
Use this workflow skill for a deep, read-only PR review covering intent, code quality, regression risk, test gaps, and feedback status; prefer it over…
SkillAFreshness: A★ 52Claude Code +9 - 0.661score
push-pr
kaeawc
Canonical repo workflow for publishing one branch or PR: confirm scope, validate, commit, push, create or update the PR with preserved Markdown, and…
SkillAFreshness: A★ 52Claude Code +9 - 0.660score
android-gradlew
kaeawc
Helper skill for Android-specific validation or build work in the android/ subdirectory; use it when another task needs Gradle wrapper commands run from…
SkillAFreshness: A★ 52Claude Code +9 - 0.659score
observe
kaeawc
Use this skill to inspect the current state of a connected mobile device through the AutoMobile observe capability and summarize the active app, visible UI…
SkillAFreshness: A★ 52Claude Code +9 - 0.659score
bun-tasks
kaeawc
Helper skill for repo-root Bun commands; use it when another skill needs a package.json script instead of an ad hoc command.
SkillAFreshness: A★ 52Claude Code +9
Signals
- Stars
- 52
- Forks
- 7
- Open issues
- 510
- Contributors
- 20
- Last commit (this folder)
- Aug 24, 2026 (2 months ago)
- Last release
- Oct 19, 2026 (11 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/kaeawc/auto-mobile
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from kaeawc
- 0.664score
ship-issue
kaeawc
Drive one GitHub issue to a merged PR via TDD, autonomously by default — interrupting the user only on review-feedback thrashing or an approach pivot — with a…
SkillAFreshness: A★ 52Claude Code +9 - 0.664score
dead-code
kaeawc
Use this skill to detect and clean up dead code in this repo, starting with the project’s TypeScript dead-code scripts and validating that removals do not…
SkillAFreshness: A★ 52Claude Code +9 - 0.664score
fan-out-fan-in
kaeawc
Use this workflow skill only when the user wants explicit parallelization or the task should be split into isolated worktrees and merged back without separate…
SkillAFreshness: A★ 52Claude Code +9 - 0.664score
research
kaeawc
Use this skill to conduct deep parallel research on a topic using web searches and available tools.
SkillAFreshness: A★ 52Claude Code +9 - 0.661score
check-ci
kaeawc
Use this workflow skill for PR CI triage: inspect pending and failed checks for the exact PR head, read live or completed job logs and artifacts, classify…
SkillAFreshness: A★ 52Claude Code +9 - 0.661score
pr-analysis
kaeawc
Use this workflow skill for a deep, read-only PR review covering intent, code quality, regression risk, test gaps, and feedback status; prefer it over…
SkillAFreshness: A★ 52Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get github-cli running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
github-cli skill. Agent Mart. https://agentmart.dev/skills/kaeawc-github-cli (last updated 2026-10-24)