Check Github CLI
Apps & Automationcheck-github-cliCheck Github CLI is an Agent Skill for apps & automation published in the blockscout/frontend repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Ensure GitHub CLI (gh) is installed and authenticated before running gh commands; guide the user to configure it if not
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/blockscout/frontend/blob/HEAD/.agents/skills/check-github-cli/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/check-github-cli, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Check GitHub CLI Availability
Use this skill whenever a workflow or command requires the GitHub CLI (gh). Before running any gh commands:
- Check installation and auth: Run
gh auth status. If it reports "not logged in" or the command is not found:- If
ghis not installed: Ask the user to install it (e.g.brew install ghon macOS, or see GitHub CLI) and then authenticate. - If
ghis installed but not configured: Ask the user to configure it themselves. Provide these instructions to help them:- Run
gh auth loginand follow the prompts (choose HTTPS or SSH, authenticate via browser or token). - Ensure the account has the permissions needed for the operation (e.g. read access to the repository, or read/write if the task requires it).
- Run
- Do not attempt to authenticate on the user's behalf; only guide them with the commands and link to GitHub CLI authentication docs.
- If
- If
gh auth statussucceeds: Proceed with the steps that requiregh.
Other skills that depend on gh (e.g. get-checks-status) should instruct the agent to ensure GitHub CLI is ready first by following this skill.