Agent Skills: 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.

UncategorizedID: bahayonghang/my-claude-code-settings/gh-bootstrap

Install this agent skill to your local

pnpm dlx add-skill https://github.com/bahayonghang/my-claude-code-settings/tree/HEAD/content/skills/git-github-skills/gh-bootstrap

Skill Files

Browse the full folder contents for gh-bootstrap.

Download Skill

Loading file tree…

content/skills/git-github-skills/gh-bootstrap/SKILL.md

Skill Metadata

Name
gh-bootstrap
Description
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.
  1. Ask user for communication language and template language preference.
  2. Detect languages, frameworks, and existing GitHub files with python "$SKILL_DIR/scripts/gh_bootstrap_runtime.py" detect "$ARGUMENTS" before planning.
  3. Call AskUserQuestion to collect necessary configuration variables.
  4. Scan for existing config files and plan conflict resolution (see references/RULES.md).
  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.
  6. Render files with python "$SKILL_DIR/scripts/gh_bootstrap_runtime.py" render-template ... so placeholder replacement is deterministic. Keep phases/ and specs/ as reference material, not the execution engine.
  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.
  8. If rtk is available, prefer it for project scanning, template inspection, and post-generation diff review. Keep template download and file rendering on the raw script path.

Mandatory Rules

  • NEVER write config files from memory; MUST use downloaded templates.
  • ALWAYS replace all variable placeholders (e.g., {{projectName}}).
  • See references/RULES.md for detailed architecture and constraints.