# Gh Bootstrap

> Initialize GitHub repository configuration from vetted upstream templates. Use when setting up repository automation, issue and PR templates, CI workflows, or baseline GitHub project files for a new or existing repo.

- **Type:** Skill
- **Install:** `agentstack add skill-bahayonghang-my-ai-cli-toolkit-gh-bootstrap`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [bahayonghang](https://agentstack.voostack.com/s/bahayonghang)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [bahayonghang](https://github.com/bahayonghang)
- **Source:** https://github.com/bahayonghang/my-ai-cli-toolkit/tree/main/skills/git-github-collaboration/gh-bootstrap

## Install

```sh
agentstack add skill-bahayonghang-my-ai-cli-toolkit-gh-bootstrap
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

> In the commands below, `` 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 "/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 "/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 "/scripts/gh_bootstrap_runtime.py" render-template ...` so placeholder replacement is deterministic.
7. Validate the generated tree with `python "/scripts/gh_bootstrap_runtime.py" validate-tree ` 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.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [bahayonghang](https://github.com/bahayonghang)
- **Source:** [bahayonghang/my-ai-cli-toolkit](https://github.com/bahayonghang/my-ai-cli-toolkit)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-bahayonghang-my-ai-cli-toolkit-gh-bootstrap
- Seller: https://agentstack.voostack.com/s/bahayonghang
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
