/core:githubfrom core
Applies commit and PR conventions, then polls review bots and CI until the PR can merge. Use when the user commits, opens a PR or handles review feedback. Not for judging a diff.
Ships in core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Apply commit and PR conventions, then run an automated review loop instead of asking the user to relay bot comments. After a PR opens, the loop watches what gates a merge — CI, review-bot reactions and comments, and merge conflicts — answers each comment, and tells the user when the PR is ready.
CANARY: github-loaded-2026-05-20-d436255c-54a7f770e04e4983
/loop cycle is checking PR state.Judging whether a diff is correct belongs to review or execution; this skill owns
the mechanics of the review loop.
Conventional Commits: <type>(scope): description. Types: feat, fix, refactor,
test, docs, chore, ci. Scope is the module or domain. Imperative voice, no
trailing period, first line ≤72 chars. Body after a blank line explains why.
End the commit with the Co-Authored-By: line the harness's git instructions supply,
copied verbatim; add no other model name to commits, PR bodies, prose or
examples, because the harness value is the one that stays current.
## Summary
<1-3 bullets>
## Test plan
- [ ] <verifiable check>
Branches: feat/<short-description>, fix/<short-description>. Main branch is main.
For several PRs that merge in sequence, load
stacking before creating the second branch.
Before gh pr create, run the host repo's lint/format/test gate (make lint,
npm run lint, …), since the review loop assumes CI was green at push time. If the
project has no lint target, say so, propose one, and proceed.
FAST=claude-arsenal/bin/fast_gate.sh
bash "$FAST" # each review round: `preflight-gate` over the changed files
bash "$FAST" --full # before merge, only if no receipt or green CI covers the tree
--full writes a receipt reused while the tree is unchanged. Review rounds run the
fast gate once, then push once, because every push is a CI run. Load
claude-arsenal/references/ci-minutes.md when CI minutes are a concern.
A green gate says the change does not break the repo, not that it is the change that
was asked for; run the independent review before opening the PR, and on the open PR
when its decision line calls for one: claude-arsenal/references/pre-pr-review.md.
In a cloud session that offers PR activity events (subscribe_pr_activity is in
its tools), subscribe to the PR instead of starting /loop, then end the turn: CI
results, reviews, comments and conflicts each wake the session, so polling only spends
turns on what is already pushed. On each wake, run query_pr_state.py --pr <N> --unresolved-only --trigger once and act on its state as listed below and per the
rubric in the loop command. Some changes send no event (a silent bot, a reaction, the
quiet window, mergeability), so whenever the script exits 1 in a state other than
ci_running, schedule one check-in rather than a loop. If the subscription result says
another agent already receives the events, run the loop instead. Everywhere else, run
the loop.
After gh pr create returns the PR number, start the loop. Each tick's output carries its own instructions in next, and with --unresolved-only, so handled
comments drop out:
/loop 90s python3 "${CLAUDE_SKILL_DIR}/scripts/query_pr_state.py" --pr <PR_NUMBER> --unresolved-only --trigger — do what its "next" field says for the printed state (bot_approved still waits for the quiet window); on ready_to_merge, merged or closed, CronDelete <job-id> and hand back to the user.
/loop rounds 90s up to every 2 minutes. Stop early with CronDelete <job-id>
(CronList recovers the ID).
The script prints JSON and exits 0 when there is something to act on or the loop is
done, 1 while waiting, 2 on conflicts or ci_failed. Exit 2 with any other state
(authentication, repo not found) is permanent: stop and tell the user.
conflicts — rebase onto the base branch, resolve, push. When the parent PR of a
stacked branch merged, use rebase_stack.sh from stacking.ci_failed — gh run view --log-failed <run-id>, fix, push, reply on related comments.ready_to_merge — tell the user "PR #N ready to merge". In a repo with
arsenal/config.toml, read merge-policy and the vendored protocol's completion
step first: the host may already have answered whether an agent merges.Load pr-review-loop when a state is unclear
(bot_eyeing that persists, a bot that never reviews), when configuring watched
bots or bot-triggers, or when judging a comment the inline rubric does not settle.
Projects Classic breaks gh pr view --comments and gh pr edit --body. On first use
in a repo:
python3 "${CLAUDE_SKILL_DIR}/scripts/query_project_type.py" --write-claude-md
It prints classic / v2 / none and records <!-- github-skill: projects=… -->
in CLAUDE.md so later sessions skip detection. When it says classic, load
projects-detection for the workarounds.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nuncaeslupus/claude-arsenal --plugin core23 skills in this plugin
/arsenal-initRuns the claude-arsenal installer (the init skill) under a name that does not collide with Claude Code's built-in /init. Use when the user types /arsenal-init. Not for writing a CLAUDE.md./bugreportReads Android bugreports (dumpstate .txt or .zip) through a byte-offset index — device summary, ranked checkup, section lookup, merged timeline, redacted copies, report diffs. Use when the user has a bugreport to read or diagnose. Not for live-device adb sessions or logcat-only files./coverage-gapsRanks the most valuable missing tests from coverage.py's coverage.json. Use when the user asks which tests are missing. Not for non-Python code.