babarot/gh-infra/import-into

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when pulling live GitHub state back into existing gh-infra manifests with `gh infra import --into`, especially for write/patch/skip decisions, shared file sources, template-backed files, and import safety rules.

Install

npx vskill@latest install babarot/gh-infra/import-into

SKILL.md

Import Into

Use this skill for gh infra import --into=....

This workflow is different from normal import, plan, and apply:

  • it updates local manifests from live GitHub state
  • it may rewrite YAML, local source files, or manifest patches
  • it has file-level write modes and skip safety rules

When To Use

Use this skill when the user wants to:

  • pull GitHub state back into existing manifests
  • reconcile drift from GitHub UI into local YAML
  • decide between write, patch, and skip
  • understand why a file was skipped during import
  • update shared templates safely after repository-side drift

Command

bash
gh infra import <owner/repo> [owner/repo ...] --into=<path>
gh infra import --into=<path> --auto-approve # CI / agents: no prompt

<path> may be a file or a directory of manifests. Without repositories, every repository in the manifests is imported.

When running as an agent or in CI, use --auto-approve: the confirmation needs a TTY, and without one import fails before writing (the error suggests the flag). --auto-approve writes each file with its default action (below), the same as confirming without opening the viewer; reconcile: create_only files without patches are skipped. It requires --into. Import only edits local files: review with git diff, then commit or open a pull request yourself.

How It Works

  1. Parse local manifests
  2. Match target repositories against Repository, RepositorySet, and FileSet
  3. Fetch live state from GitHub
  4. Diff local vs remote
  5. Show plan output
  6. For file changes, open the interactive diff viewer (not with --auto-approve)
  7. Write approved local changes

File Write Modes

  • write: update the normal local target
  • patch: store the drift under patches:
  • skip: ignore for this run

Typical defaults:

  • inline content: write
  • single-use local source: write
  • shared local source: patch
  • existing patches: entry: patch
  • many create_only entries: skip

Safety Rules

There are two skip modes:

  • default skip: safe enough to import, but skipped by default
  • hard skip: cannot be written back safely

Hard-skip cases include:

  • github:// sources
  • template-backed files whose placeholders cannot be reverse-mapped safely

Template-Backed Files

For templates such as <% .Repo.Name %> and <% .Repo.FullName %>, gh-infra compares:

  1. rendered local template
  2. remote GitHub file

It then tries to reconstruct updated local template source while preserving placeholders.

Use write only when you want to update the underlying shared source. Use patch when drift should stay repository-specific.

What Gets Updated

  • repository settings: patched into YAML
  • inline file content: written back into the manifest
  • local source: ./... files: written back to the source file
  • shared local source files: often better stored as patches

What Does Not Get Imported

  • secrets: GitHub does not return secret values
  • github:// sources: no local write target
  • template-backed files that cannot be reverse-mapped safely

Read Next

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/babarot/gh-infra/import-into/badge)](https://verified-skill.com/skills/babarot/gh-infra/import-into)

Something wrong with this skill or its page? Tell us.