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 3mo 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.
- 3mo 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 8mo 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.
github-cli compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| github-cliasgarovf/locusai | Skill | 23 | 8mo ago | MIT | A | 37 | Claude Code |
| github-clizhinjs/zhin | Skill | 136 | yesterday | MIT | A | 30 | Claude Code, Codex |
| git-flow-prsoulcodex/agentic | Skill | 10 | 10d ago | MIT | A | 103 | Claude Code, Codex |
| githubzhinjs/zhin | Skill | 136 | yesterday | MIT | A | 58 | Claude Code, Codex |
| codeflow-maintainerOpenCoven/coven | Skill | 78 | yesterday | MIT | A | 39 | Claude Code, Codex |
| openclaw-devOpenCoven/coven | Skill | 78 | yesterday | MIT | A | 42 | Claude Code, Codex |
| surface-after-careellmos-ai/skills | Skill | 10 | today | MIT | A | 169 | Claude Code, Codex |