/gavel-skills:gavel-gitfrom gavel-skills
Use gavel instead of gh/git for pull requests, CI status, and commits — check a PR's checks with gavel pr status, open PRs with AI-generated content, and commit with gavel commit
Ships in gavel-skills. 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.
None: SKILL.md is the whole skill.
Reach for gavel — not raw gh or git commit — for pull requests, CI status,
and commits. Gavel renders workflow steps, conclusions, timing, and failing-step
logs in one view, generates conventional commit messages and PR content with an
LLM, and can send CI failures directly to an agent. Reserve raw gh/git only
for actions gavel does not cover.
--help is the source of truth for flags. Start with gavel pr --help and
gavel commit --help; this skill is the when/why + a cheatsheet.
| Intent | Use gavel | Instead of |
|---|---|---|
| PR + CI status | gavel pr status [<n>] [--logs] [--follow] | gh pr view / gh run view / gh run list |
| Fix CI from status | gavel pr status --ai-fix | — |
| Open a PR (current changes) | gavel commit -p | gh pr create |
| Open a PR (one existing commit) | gavel pr create <SHA> | gh pr create |
| List / dashboard PRs | gavel pr list [--ui] | gh pr list |
| Commit | gavel commit | git add + git commit |
| Pick files to commit | gavel commit -i (tree picker, no git add) | git add -p |
| Split by directory | gavel commit -A | manual staging |
| Fixup into a prior commit | gavel commit --fixup[=<hash>] | git commit --fixup + rebase |
Reserve raw gh/git for what gavel doesn't cover (e.g. gh pr merge,
gh release, git rebase, branch surgery).
First move when investigating a PR or CI failure:
gavel pr status # current branch's PR + its checks
gavel pr status 123 --logs # PR #123, including failing-job log tails
gavel pr status --follow # block until what you filtered on settles
gavel pr status --follow --fail-fast --actions 'CI / Test' # stop at the first red check
gavel pr status --ai-fix # send failed checks directly to an agent
gavel pr status --logs is the go-to for "why is CI red" — it shows the failing
steps and their logs inline. Do not fall back to gh run view --log.
PR title, body, and branch name are generated by an LLM — never hand-roll a
PR body or pass gh pr create --title/--body.
gavel commit -p # commit staged/session changes, then push + open a PR
gavel commit -p --auto-merge # ...and enable auto-merge once checks pass
gavel pr create HEAD # PR from a single existing commit (isolated worktree)
gavel pr create HEAD --draft --base main
See gavel pr create --help and the -p examples in gavel commit --help.
gavel commit generates a conventional-commit message, runs .gavel.yaml
pre-commit hooks, and stages the current agent session's edits by default (no
git add needed).
gavel commit # session-scoped commit, AI message, hooks
gavel commit -i # interactive tree picker over all changed files
gavel commit -A # one commit per top-level directory, split when large
gavel commit -m "chore: bump" # explicit message, still runs hooks/checks
gavel commit --fixup=<hash> # squash staged files into an earlier commit
gavel commit --help documents the full staging model, the gitignore/linked-dep
guards, --precommit/--compat/--lint gates, and the -p push/PR path.
gavel pr status --ai-fix for immediate agent repair. When the failure
needs durable tracking, create a native issue explicitly with gavel todos create.gavel-runner.gh pr checks polling loops — gavel pr status --follow blocks until the checks and
comments you filtered on settle; add --fail-fast to return at the first definitive failure.gavel pr status resolves the current branch's PR, falling
back to your most recent PR.--logs only shows output for failed jobs; on a green PR it is a no-op.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub flanksource/gavel --plugin gavel-skills6 skills in this plugin
/gavel-ci-migratorMigrate a repo's GitHub Actions lint and test workflows onto the flanksource/gavel composite action — discover existing golangci-lint / go test / make lint|test jobs, ask the user per-workflow whether to replace, add alongside, or skip, rewrite YAML with the right permissions and checkout depth, and verify with actionlint without auto-committing/gavel-fixture-testerCreate and run Gavel fixture-based tests and TODO executable definitions of done using Markdown command blocks, tables, test/lint steps, acceptance checklists, and CEL assertions. Use when authoring standalone fixtures or persisted TODO Verification content./gavel-runnerRun gavel test and lint, focus on a subset, re-run only failures (defaults to .gavel/last.json), filter noise with baselines, and pull JSON/markdown results from finished or live runs/gavel-todosCreate, inspect, review, verify, and maintain PostgreSQL-backed Gavel TODOs without starting implementation runs. Use for creating or syncing TODOs, attaching durable plans, authoring fixture-backed executable definitions of done, reviewing plans, running gavel todos check, inspecting history, or importing and exporting portable .todos Markdown./gavel-triageTriage a Gavel TODO backlog by sorting work into keep, shape, investigate, retire, merge, or duplicate; detecting completed or duplicate work; setting priority, labels and status; and preparing survivors for external execution with scope, acceptance criteria, and an executable definition of done. Use for backlog cleanup, choosing the next task, shaping raw TODOs, or investigating stuck work.