Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/asgarovf/locusainpx agentmods add skills/asgarovf/locusai/github-cliWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/asgarovf/locusai/github-cli)<a href="https://agentmods.dev/skills/asgarovf/locusai/github-cli"><img src="https://agentmods.dev/badge/skills/asgarovf/locusai/github-cli/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/asgarovf/locusai/github-cli"><img src="https://agentmods.dev/badge/skills/asgarovf/locusai/github-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00037 | $0.00715 |
| Opus 5.5 | $0.00015 | $0.00286 |
| Sonnet 5.5 | $0.00007 | $0.00143 |
| Haiku 4.5 | $0.00004 | $0.00072 |
Grade A, and why
github-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GitHub CLI (gh)
When to use this skill
- Creating, reviewing, or merging pull requests
- Managing issues (create, close, label, assign)
- Checking CI/CD status and workflow runs
- Creating releases and managing tags
- Repository settings and management
- Querying GitHub API for custom automation
Pull Requests
# Create PR
gh pr create --title "feat: add auth" --body "Description here"
# Create PR with template
gh pr create --fill # Uses commit messages
# List open PRs
gh pr list
# View PR details
gh pr view <number>
# Review PR
gh pr diff <number>
gh pr review <number> --approve
gh pr review <number> --request-changes --body "Please fix X"
# Merge PR
gh pr merge <number> --squash --delete-branch
# Check PR CI status
gh pr checks <number>
Issues
# Create issue
gh issue create --title "Bug: login fails" --body "Steps to reproduce..."
# Create with labels and assignee
gh issue create --title "Bug" --label bug,urgent --assignee @me
# List issues
gh issue list --label bug --state open
# Close issue
gh issue close <number> --reason completed
# Transfer issue
gh issue transfer <number> <target-repo>
Actions & CI/CD
# List workflow runs
gh run list --workflow=ci.yml
# View run details
gh run view <run-id>
# Watch a running workflow
gh run watch <run-id>
# Re-run failed jobs
gh run rerun <run-id> --failed
# Trigger workflow manually
gh workflow run <workflow-name> --ref main
Releases
# Create release
gh release create v1.0.0 --title "v1.0.0" --generate-notes
# Create draft release
gh release create v1.0.0 --draft --notes "Release notes here"
# Upload assets
gh release upload v1.0.0 ./dist/app.tar.gz
# List releases
gh release list
API Queries
# Custom API calls
gh api repos/{owner}/{repo}/pulls --jq '.[].title'
# GraphQL
gh api graphql -f query='{ viewer { login } }'
# Paginated results
gh api repos/{owner}/{repo}/issues --paginate --jq '.[].title'
Best Practices
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 120 lines · 37 tokens per session scan A 6e11cbc7fb17
github-cli is a skill published in the GitHub repository asgarovf/locusai (23 stars, last pushed 7mo ago), licensed MIT. It adds 37 tokens to every session and 715 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
github-cli
A command-line tool connection for GitHub tasks that built-in tools do not cover. It uses GitHub's command-line program to work with issues, pull requests, releases, workflows, searches, and the GitHub API.
git-flow-pr
Executes the full PR-driven development workflow: create an isolated feature branch from the current work, commit all staged changes, rebase cleanly onto the selected base branch (skipping any ancestor commits already merged), push the branch, and open a GitHub pull request linked to a related issue. Includes guidance…
github
A writing guide for GitHub issues, pull requests, code reviews, and release notes in Zhin projects. GitHub is a service where teams track bugs, discuss changes, review code, and publish project updates.
codeflow-maintainer
OpenClaw-only maintainer PR workflow modes and skills. For OpenCoven/coven PR creation, redirect to skills/pr-agent, the Coven PR Readiness Agent.
openclaw-dev
OpenClaw Dev Agent — OpenClaw-only docs-aware development assistant. For OpenCoven/coven PR creation, redirect to skills/pr-agent, the Coven PR Readiness Agent.
surface-after-care
Regelmäßiger Pflegedurchlauf für ein bereits veröffentlichtes GitHub-Repository (Stufe 1, günstig und oft wiederholbar): zuerst alle Distributionsflächen des Projekts ermitteln (npm, PyPI, Registries, Marketplaces, Stores, Website) und Änderungen später dorthin spiegeln, dann Topics setzen, Privacy-Gate, Dokumente auf…