yolo-gh

yolo-gh is a skill for Claude Code, Codex from mschulkind-oss/yolo-jail. It costs 44 tokens per session (1,454 once invoked), scanned A, original, Apache-2.0.

A guide to using GitHub's command-line tool inside the YOLO environment through a host-side broker. It explains how repository access is approved and how to handle commands that read or change GitHub data.

In plain words
What is it for?
Use it to inspect repositories, issues, and pull requests, create issues or pull requests when approved, and add a repository to the permitted workspace.
Why use it?
It clarifies why a GitHub command may be refused and keeps the jail from holding GitHub credentials. It also distinguishes approved reads from actions such as creating issues or pull requests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect repositories, issues, and pull requests, create issues or pull requests when approved, and add a repository to the permitted workspace.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mschulkind-oss/yolo-jail/yolo-gh
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mschulkind-oss/yolo-jail --skill yolo-gh
Clone the repo
git clone --depth 1 https://github.com/mschulkind-oss/yolo-jail

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for yolo-gh

README.md
[![agentmods](https://agentmods.dev/badge/skills/mschulkind-oss/yolo-jail/yolo-gh/github.svg)](https://agentmods.dev/skills/mschulkind-oss/yolo-jail/yolo-gh)
Your own site
<a href="https://agentmods.dev/skills/mschulkind-oss/yolo-jail/yolo-gh"><img src="https://agentmods.dev/badge/skills/mschulkind-oss/yolo-jail/yolo-gh/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.

agentmods 80×15 button for yolo-gh

Your own site · 80×15
<a href="https://agentmods.dev/skills/mschulkind-oss/yolo-jail/yolo-gh"><img src="https://agentmods.dev/badge/skills/mschulkind-oss/yolo-jail/yolo-gh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,454 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.01454
Opus 5.5 $0.00018 $0.00582
Sonnet 5.5 $0.00009 $0.00291
Haiku 4.5 $0.00004 $0.00145

Measured 16d ago against content hash b43acef1e3c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

yolo-gh 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 16d 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.

packs/github/skills/yolo-gh/SKILL.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

gh in this jail

gh here is ~/.yolo/bin/block/gh, the github pack's forwarder, not a blocker. Each call goes to the github-broker on the host, which runs the host's own gh login against this workspace's GitHub repositories. The jail holds no GitHub token; gh auth status names the login.

  • The broker grants nothing until the user's config does. A call refused with no read grant means the user has not granted read access. Ask them to run this in a host terminal, in this workspace, directly (not through yolo host-run), and answer y to the approval it offers:

    yolo allow github always read
    

    (A user config still in JSONC needs yolo config migrate first; the command says so.) You cannot grant it from the jail.

  • With the read grant, reads run, and their output and exit codes are gh's own. --jq and --template work as in gh, and so does piping --json output into jq.

  • Some writes run without asking. With a create-pr (or create-issue) grant, which the user adds with yolo request github create_pr in this workspace and approves with yolo config apply on the host, gh pr create (or gh issue create) runs, and the PR or issue it creates joins this workspace's working set. Comments and edits on a PR or issue in the working set run too (comment, edit, a review that comments or requests changes, ready, close, reopen, and the same gh api writes under its pulls/{n} or issues/{n}), until the PR is merged. An approval (gh pr review --approve, or a review event=APPROVE) and a merge always ask; so does a gh api review whose verdict is not a plain -f event=…, and any DELETE. Name a PR or issue by its number, not a branch: a write without a number always asks.

  • With a runs grant naming a workflow file (or *), which the user adds with yolo request github runs <file> and approves the same way, three things run unasked: gh workflow run <file> on the repository's default branch only (omit --ref or pass the default branch's name; name the workflow by its file name, nightly.yml, not its id or display name); gh run rerun <run-id> (with --failed, --debug, or --job <job-id> in place of the run id) of a run of that workflow on the default branch of the repository itself; and gh run cancel <run-id> of any run in the repository. A run or re-run on any other branch, of a fork, or without a numeric id asks.

  • With an approve-run grant naming a GitHub login (or *), which the user adds with yolo request github approve_runs <login> (such as 'github-actions[bot]') and approves the same way, gh api -X POST repos/OWNER/REPO/actions/runs/<id>/approve runs unasked for a run that login triggered whose head is the repository itself. A fork's run always asks.

  • Every other in-scope write files a pending request, waits briefly for the host, and is refused with a menu of every answer, each command on its own line: yolo approve <id> once, --for 15m for that kind of write on it for a time, and, for a creation, the project request then yolo config apply. The human runs these directly on the host, not through yolo host-run. Relay the whole menu, each command alone in its own code block, recommend one path, and start yolo wait <id> in the background; on exit 0, run the same command again, once. An Allow once binds command, repository and stdin digest, is one use, and expires after 15 minutes; a legacy set-wide grant is not spent. A configured on_request hook is optional; its output is never consent.

  • Exit 64 is a refusal, and its message says why and what to do instead. Refused: anything that could print the credential or reach the host, a repository outside this workspace's scope, and every call across the account. Raw gh api graphql is always refused; gh's own commands (gh pr view, gh issue list, …) use GraphQL inside and work.

  • A repository this workspace has no remote for stays out of scope until the user approves it. Run yolo request repos <alias> github.com/OWNER/REPO, which writes this project's config (if it refuses because the config file is read-only here or cannot take the key, ask the user to run the same command on the host, in this workspace). Then run yolo config check, and ask the user to run yolo config apply on the host, in this workspace, and answer y to the repository-scope prompt. In a jail started by this yolo, the running broker takes the repository at its next call; an older one needs a restart. Nothing changes before that y.

  • A wildcard entry reaches more than one repository: */* is every repository the host login can reach, OWNER/* is one owner's, */REPO is that name under any owner. A whole segment is the only wildcard form. Use one only when the user asks for that reach; it widens only the repository scope. Writes still require exact host approval unless a grant or the working set covers them, and commands that act across the account remain refused (a search with no --repo, gh repo list, gh status).

  • In a gh api path, percent-encode a slash in a branch name as usual: repos/OWNER/REPO/branches/MS%2Fmain.

  • Exit 69: no broker in this jail, or no gh login on the host.

Read the full file on GitHub · 77 lines

Changes

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.

  1. 16d ago First seen · 77 lines · 44 tokens per session scan A b43acef1e3c6

Subscribe to this mod's changes

yolo-gh is a skill published in the GitHub repository mschulkind-oss/yolo-jail (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 44 tokens to every session and 1,454 once invoked, about $0.0002 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-11-14.

Related

yolo-gh compared with skills from other repositories

yolo-gh next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
yolo-ghmschulkind-oss/yolo-jailSkill6yesterdayApache-2.0A44Claude Code, Codex
standup-updategszr/lunarSkill2125d agoMITA49Claude Code, Codex
lunar-attributiongszr/lunarSkill2125d agoMITA30Claude Code, Codex
code-quality-reviewthixpin/pitwaySkill201mo agoMITA79Claude Code, Codex
gjalla-prepare-and-commitgjalla/engineeringSkill32mo agononeA30Claude Code
release-and-rollback-safetyChloeVPin/open-agent-skillsSkill22mo agononeA50Claude Code, Codex
safe-git-workflowChloeVPin/open-agent-skillsSkill22mo agononeA56Claude Code, Codex