gh-this
Installation
SKILL.md
GH This
Initialize a GitHub repository from the current directory without losing files or history. Never create GitHub Issues.
Confirm and preflight
- Get the repository name (
namefor the authenticated account orowner/name), optional description, and explicit public or private visibility. Never infer visibility. - Before mutation, confirm
git,gh, andgh auth status; inspect worktree, branch, staged changes, and remotes; resolve the canonical GitHub target. Reuse only a matchingorigin. If authentication fails, changes are staged, the target exists without a matchingorigin, ororiginconflicts, stop. Never switch branches, rewrite history, or replace remotes. - For an existing repo, tell the user which branch and existing history the push will publish.
Select files
- For a non-Git directory, list exact candidate paths using Git ignore semantics, including nested
.gitignorefiles. Exclude.git, dependencies/build outputs, and known secret or credential paths (including.envvariants) without opening or printing their contents. Omit suspicious or uncertain paths. - For an existing worktree, show exact modified/untracked paths that would be committed. Apply the same secret and generated-file exclusions.
- Ask which exact paths to publish. A directory approval is not blanket approval.
- Never create or edit
TODO.md;tick-itcreates the ticket-only Kanban board when it adds the first approved tickets.