github-init
Initializes the current project as a Git repository, creates a GitHub repository, and pushes the initial branch with upstream tracking. Defaults to a private repository in snowflake1xyz with Snowflake1 guidance connected; explicit text may override owner or visibility. Use only when the human explicitly invokes github-init.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- github-init
- description
- Initializes the current project as a Git repository, creates a GitHub repository, and pushes the initial branch with upstream tracking. Defaults to a private repository in snowflake1xyz with Snowflake1 guidance connected; explicit text may override owner or visibility. Use only when the human explicitly invokes github-init.
- disable-model-invocation
- true
02 资源文件 1
- 参考文档agents/openai.yaml43 B
03 SKILL.md 正文
GitHub Init
Initialize the current project as a remote-synced GitHub repository.
Invocation
Start only when the human explicitly requests this skill by name; a general repository setup request does not activate it.
Interpret text following the skill invocation as natural-language overrides, not as a rigid argument syntax.
/github-init→ private repository owned bysnowflake1xyz/github-init public→ public repository owned bysnowflake1xyz/github-init name=my-project→ private repository namedmy-project/github-init in the acme organization→ private repository owned byacme/github-init public owner=acme→ public repository owned byacme/github-init in my personal account→ personal repository, exempt from automatic Snowflake1 connection/github-init internal in acme→ internal repository owned byacme, if its GitHub Enterprise plan supports internal repositories
Ownership on GitHub is limited to a personal user account or an organization. For an organization owner, verify repository-creation privileges; for an explicitly requested personal owner, verify the authenticated account can create there. If trailing text is ambiguous, ask one focused question.
Defaults and overrides
- Verify
gitandghare available andgh auth statussucceeds. Stop and report a definitive authentication or authorization failure. - Resolve the authenticated user with
gh api user --jq .login. - Default
ownertosnowflake1xyz(SF1) andvisibilitytoprivate, regardless of the authenticated user. Never fall back to a personal namespace if organization access fails. - Override
owneronly when the user explicitly requests another organization or a personal account. Resolve “my personal account” to the verified authenticated user. - Override
visibilityonly when the trailing text explicitly requestspublic,private, orinternal. Treatinternalas organization-only and verify GitHub accepts it. - Use the basename of the current working directory as the repository name unless trailing text explicitly supplies another name.
- Check whether
<owner>/<repository-name>already exists. If the default name is unavailable, use the first available numeric suffix (name-2,name-3, and so on). Never silently alter an explicit name; ask whether to use the existing repository or choose another name.
Workflow
- Resolve the intended project directory from the active workspace and invocation; ask only when it is ambiguous.
- Inspect the project for likely secrets, credentials, environment files, generated files, and dependency directories. Add appropriate ignore rules before staging, and never commit likely secrets.
- If the directory is not a Git repository, run
git init. - For a new organization-owned repository, follow the canonical Snowflake1 connection procedure using its current approved
mainrevision and existing authenticated access. Complete its required reading and verification, preserving project instructions. Repositories explicitly created under a personal account are exempt; an explicit connection request or opt-out takes precedence. Disclose blocked connection rather than claiming full setup. Then, if there is no commit, stage the safe project files and create an initial commit. Follow repository commit-message conventions when present; otherwise useInitial commit. - If
originalready exists, verify that it points to the intended GitHub repository. Do not replace or push to a mismatched remote without user approval. - If no GitHub remote exists, create
<owner>/<repository-name>from the current directory withgh repo create, passing exactly one of--private,--public, or--internal, plus--source=. --remote=origin. - Push the current branch with upstream tracking using
git push -u origin HEAD. - Verify the actual owner and visibility with
gh repo view, verify the local branch tracks the remote branch, and account for any remaining working-tree changes rather than discarding them to force a clean tree.
Ask only when an override is ambiguous, an organization rejects repository creation, an existing remote conflicts, likely secrets require a user decision, or an operation would overwrite or expose existing work.
Completion
Report the GitHub repository URL, owner, visibility, current branch, upstream branch, Snowflake1 connection status (verified, exempt, or blocked), and any files intentionally left uncommitted.
04 同仓库更多 Skills
search-agent-chats
Search retained Cursor, Codex, and Claude Code conversations for past work, decisions, and context when historical recall would help. Exposes archive scope, freshness, coverage, and event citations. Do not run at session start.
plaintext
Produce one copyable plain-text payload only when the human explicitly invokes plaintext. Use for prompts, messages, emails, and other requested copy-paste output.
interview
Run an adaptive context-gathering interview when the user explicitly invokes interview before a decision or task. Reuse known answers and stop when the decision-critical context is sufficient.
github-repo-defaults
Apply GitHub ownership and Snowflake1 connection defaults when creating a new repository or publishing a local project to a new GitHub repository. Use for repository creation requests, including project setup that creates a repo.
decision-criteria
Assess a decision or revisit a prior recommendation against the user's objectives, criteria, constraints, and evidence. Use only when explicitly invoked.
concierge
Deliver complete work and anticipate the user's follow-up questions, with concise responses backed by human-readable answers and prepared alternatives. Use only when the user explicitly invokes concierge for sustained iteration or exploration beyond a first pass, including useful progress while resources or decisions are pending.