kbn-github
Installation
SKILL.md
GitHub (gh CLI)
Defaults & Constraints
- Use
ghCLI for all GitHub interactions. - Set
GH_PAGER=catfor allghcalls to avoid interactive pagers. - The repo is
elastic/kibana; when not inside a local clone, prefer-R elastic/kibanaforghsubcommands. Forgh api,-Ris not supported; use explicitrepos/elastic/kibana/...endpoints or setGH_REPO=elastic/kibanawhen using{owner}/{repo}placeholders. - Follow repository merge settings (squash/rebase/merge); do not enforce a merge strategy.
- Never merge into the base branch via CLI; merges happen via the GitHub UI.
First Actions
- Resolve the exact target repo/object (PR, issue, comment thread, release) before mutating anything.
PR Targeting
- If the user uses implicit-current phrasing ("this PR", "current PR", "PR for this branch") and does not specify a PR URL/number, resolve the PR for the current branch:
gh pr view --json number -q .number. - Do not assume an unspecified GitHub task targets the current branch PR unless the wording clearly implies the current PR.