babarot/gh-infra/import-into
- community
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-intoSKILL.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, andskip - understand why a file was skipped during import
- update shared templates safely after repository-side drift
Command
<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
- Parse local manifests
- Match target repositories against
Repository,RepositorySet, andFileSet - Fetch live state from GitHub
- Diff local vs remote
- Show plan output
- For file changes, open the interactive diff viewer (not with
--auto-approve) - Write approved local changes
File Write Modes
write: update the normal local targetpatch: store the drift underpatches: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_onlyentries: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:
- rendered local template
- 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
- Examples and detailed behavior: references/behavior.md
- Diff-viewer decisions: references/write-modes.md
- Template safety: references/template-safety.md
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
- SKILL.md in the repositoryCheckingskills/import-into/SKILL.md
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
[](https://verified-skill.com/skills/babarot/gh-infra/import-into)