gh-bootstrap

gh-bootstrap is a skill for Claude Code, Codex from bahayonghang/my-ai-cli-toolkit. It costs 41 tokens per session (585 once invoked), scanned A, original, MIT.

A setup guide for initializing GitHub repository files from approved templates. GitHub is a code-hosting service, and these files can include issue forms, pull-request templates, and automated checks.

In plain words
What is it for?
Use it to detect a project’s languages, choose a setup mode, add repository templates and automation, and handle conflicts with existing GitHub files.
Why use it?
It avoids manually designing the repository’s starting configuration and helps detect existing files before changes are made.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/bahayonghang/my-ai-cli-toolkit/gh-bootstrap
Any agent
npx skills add bahayonghang/my-ai-cli-toolkit --skill gh-bootstrap
Clone the repo
git clone --depth 1 https://github.com/bahayonghang/my-ai-cli-toolkit

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 gh-bootstrap

README.md
[![agentmods](https://agentmods.dev/badge/skills/bahayonghang/my-ai-cli-toolkit/gh-bootstrap.svg)](https://agentmods.dev/skills/bahayonghang/my-ai-cli-toolkit/gh-bootstrap)
Your own site
<a href="https://agentmods.dev/skills/bahayonghang/my-ai-cli-toolkit/gh-bootstrap"><img src="https://agentmods.dev/badge/skills/bahayonghang/my-ai-cli-toolkit/gh-bootstrap.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 585 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00041 $0.00585
Opus 5 $0.00020 $0.00293
Sonnet 5 $0.00008 $0.00117
Haiku 4.5 $0.00004 $0.00059

Measured 5d ago against content hash 6d1d45c3c36c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gh-bootstrap 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 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/gh_bootstrap_runtime.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/git-github-collaboration/gh-bootstrap/SKILL.md · 30 lines

What it actually says

In the commands below, <skill-dir> is this skill's base directory, announced when the skill loads. Substitute the literal path; it is not an environment variable. The runtime script gh_bootstrap_runtime.py is the only execution engine — never hand-roll the detect / fetch / render / validate steps.

  1. Ask the user for communication language and template language preference, plus the desired mode: quick (sensible defaults, minimal interaction), custom (choose specific templates), or full (all available templates).
  2. Detect languages, frameworks, and existing GitHub files with python "<skill-dir>/scripts/gh_bootstrap_runtime.py" detect "$ARGUMENTS" before planning. If detection returns no languages (empty project or unrecognized stack), ask the user to specify the primary language manually instead of guessing.
  3. Call AskUserQuestion to collect necessary configuration variables (project name, GitHub owner/repo, author, license, and any component-specific values).
  4. Scan for existing config files and plan conflict resolution. Never overwrite existing files without explicit user approval.
  5. Read specs/template-catalog.md to map required files to repository URLs, then use python "<skill-dir>/scripts/gh_bootstrap_runtime.py" fetch-template ... to download the chosen template sources. If a template download fails (network error, 404, timeout), report which template failed and offer to skip it or retry.
  6. Render files with python "<skill-dir>/scripts/gh_bootstrap_runtime.py" render-template ... so placeholder replacement is deterministic.
  7. Validate the generated tree with python "<skill-dir>/scripts/gh_bootstrap_runtime.py" validate-tree <target-root> and refuse completion if unreplaced {{placeholders}} remain.

Mandatory Rules

  • NEVER write config files from memory; MUST render from downloaded templates.
  • ALWAYS replace {{variable}} placeholders (e.g. {{projectName}}); NEVER alter GitHub Actions expressions (${{ github.* }}, ${{ secrets.* }}) or action version pins (e.g. @v4). The renderer only substitutes {{...}}.
  • Output targets .github/workflows/, issue templates, PR templates, and baseline community files.
Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 30 lines · 41 tokens per session scan A 6d1d45c3c36c

Subscribe to this mod's changes

gh-bootstrap is a skill published in the GitHub repository bahayonghang/my-ai-cli-toolkit (16 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 585 once invoked, about $0.0002 per session on Opus 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.