ワンクリックで
gh-cli
Official GitHub CLI (gh) automation for PRs, Issues, Actions, and Repos.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Official GitHub CLI (gh) automation for PRs, Issues, Actions, and Repos.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating browser actions.
Reviews and removes unsupported, non-idiomatic code and UI/design changes introduced on a branch. Use when implementing or reviewing a feature or fix before handoff.
Design principles for REST and GraphQL APIs in 2025. Enforces OpenAPI-first, versioning strategies, and standardized error responses.
Use the `fm` CLI (Apple Foundation Models) for on-device and Private Cloud Compute LLM inference on macOS. Use when the user wants to prompt, chat, serve, or count tokens with Apple's built-in foundation models. Also use for structured output generation (`fm schema`), checking model availability (`fm available`), or checking quota usage (`fm quota-usage`). Trigger on phrases like 'run fm', 'Apple Foundation Model', 'on-device LLM', 'Apple AI', 'fm respond', 'fm chat', 'fm serve', 'fm token-count', 'fm schema', or any task involving Apple's local AI models.
This skill should be used when the user asks to "trigger a build", "check build status", "watch a build", "view build logs", "retry a build", "cancel a build", "list builds", "download artifacts", "upload artifacts", "manage secrets", "create a pipeline", "list pipelines", or "interact with Buildkite from the command line". Also use when the user mentions bk commands, bk build, bk job, bk pipeline, bk secret, bk artifact, bk cluster, bk package, bk auth, bk configure, bk use, bk init, bk api, or asks about Buildkite CLI installation, terminal-based Buildkite workflows, or command-line CI/CD operations.
Buildkite CI/CD pipeline setup, migration, validation, hardening, and live pipeline management. Use when Codex needs to create, review, debug, or update Buildkite pipelines, .buildkite/pipeline.yml files, steps, queues, triggers, artifacts, annotations, secrets, OIDC, or deployment stages.
| name | gh-cli |
| description | Official GitHub CLI (gh) automation for PRs, Issues, Actions, and Repos. |
| license | MIT |
Expert GitHub automation using the official gh CLI tool.
Enforces machine-readable outputs (--json) and safe, atomic operations for Pull Requests, Issues, Repositories, and Actions.
<context_gathering> Execute these commands IN PARALLEL to establish ground truth:
# Verify installation and check version
gh --version || echo "NOT_INSTALLED"
# Check authentication status
gh auth status || echo "NOT_AUTHENTICATED"
# Check current repo context (if applicable)
gh repo view --json name,owner,url || echo "NO_REPO_CONTEXT"
Capture these data points:
gh installed? (If "NOT_INSTALLED", STOP and ask user to install it: brew install gh or equivalent).gh auth login).pr create).
</context_gathering>| Condition | Strategy |
|---|---|
| User wants to read data (list PRs, view issue) | Read-Only: Use list/view with --json flag. Parse output strictly. |
| User wants to modify state (create PR, merge) | Transactional: Check prerequisites -> Execute -> Verify. |
| User wants to checkout code | Context-Switch: Verify clean working directory -> gh pr checkout. |
| User wants to run/watch CI/CD | Observability: gh run list -> gh run watch. |
You MUST output this block before proceeding. NO EXCEPTIONS.
ANALYSIS RESULT
===============
Target Repo: [owner/repo]
Operation: [Read | Write | Context-Switch | CI]
Command Chain:
1. [Validation Step]
2. [Primary Action]
3. [Verification Step]
Required Scopes: [e.g. repo, read:org]
NEVER parse the default tabular text output. It is intended for humans, not agents.
# Correct: Get specific fields as JSON
gh pr list --json number,title,url,state
# Correct: View specific issue details
gh issue view 123 --json body,comments
# 1. Push current branch
git push -u origin HEAD
# 2. Create PR with explicit title/body
gh pr create --title "feat: new feature" --body "Detailed description..." --web
# Note: --web is optional, usually we want non-interactive:
gh pr create --title "..." --body "..." --base main
# List recent runs
gh run list --limit 5 --json databaseId,status,conclusion,workflowName
# Watch a run
gh run watch <run-id> --exit-status
Pre-Flight Check:
gh is authenticated.Action Execution:
gh command with appropriate flags.--body "...").Error Handling:
gh returns exit code 1, check stderr.--json <fields> when retrieving information.--yes, --public, --fill) or pass inputs explicitly.gh auth refresh -s <scope>).
# Example: Verify PR creation
gh pr view <pr-number> --json state,url
# Example: Verify Issue closure
gh issue view <issue-number> --json state
Final Report: Output a summary of the action, including relevant URLs (PR link, Issue link, Run link).
<anti_patterns>
gh pr list default output. ALWAYS USE --json.gh pr create without flags, causing the process to hang waiting for user input.--head).gh auth status first (in Phase 0).url is needed. Be specific with --json.
</anti_patterns>