github-host-alias
Use when running git clone, git remote add, git remote set-url, or suggesting GitHub SSH commands to ensure all GitHub access uses the saski SSH host alias.
- License 许可
- Unlicense
- 所属仓库
- saski/arnesto
- 最近更新
- 2026-11-12
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- github-host-alias
- description
- Use when running git clone, git remote add, git remote set-url, or suggesting GitHub SSH commands to ensure all GitHub access uses the saski SSH host alias.
03 SKILL.md 正文
GitHub Host Alias
Goal
Ensure every GitHub SSH operation in this environment uses the single configured account: saski.
Use This Skill When
- Cloning a repository from GitHub.
- Adding or modifying a git remote.
- Suggesting or running
gitcommands that involve fetching, pulling, pushing, or cloning over SSH. - Troubleshooting GitHub auth where SSH aliases and
gh auth loginare being conflated.
SSH Host Alias Context
All GitHub access should use:
git@github.com-saski:
Do not use bare git@github.com: in this environment. If a command, remote, or example uses bare GitHub SSH, rewrite it to git@github.com-saski:.
GitHub CLI Caveat
github.com-saskiis an SSH alias from~/.ssh/config, not a separate GitHub CLI host.- Do not use
gh auth loginto choose Git-over-SSH identity. - Only use
gh auth loginwhen a GitHub CLI command ongithub.comtruly requires API authentication. - Before suggesting
gh auth login, inspect whetherGITHUB_TOKENis set. - If
GITHUB_TOKENis set,gh auth loginwill authenticate from that environment variable and will not store interactive credentials. For a stored login, runenv -u GITHUB_TOKEN gh auth loginor unsetGITHUB_TOKENin that shell first. - Confirm CLI auth separately with
gh auth status.
Workflow
- Check whether the target URL is a GitHub SSH URL.
- Normalize bare GitHub SSH URLs:
git@github.com:owner/repo.git- becomes
git@github.com-saski:owner/repo.git
- Leave already-correct
git@github.com-saski:URLs unchanged. - For HTTPS GitHub remotes that should use SSH, replace them with
git@github.com-saski:owner/repo.git.
Example: Cloning
git clone git@github.com-saski:saski/my-repo.git
Example: Fixing an Existing Remote
If a repository was cloned with the default GitHub SSH host or HTTPS and authentication fails, update the remote URL:
git remote set-url origin git@github.com-saski:owner/repository-name.git
Cross-Platform Rules
- Treat
github.com-saskias the universal GitHub SSH alias for this environment. - Do not choose GitHub SSH identity based on local workspace path.
- Do not attempt to modify the
~/.ssh/configfile; rely on these aliases being present.
04 同仓库更多 Skills
visualize
Use /visualize for creating compact charts, diagrams, or other visuals inline as part of the conversation itself. It chooses among Markdown tables, Mermaid, inline HTML, and other supported in-transcript forms. Use Canvas for durable artifacts outside the transcript that users may revisit, refine, or share.
update-cursor-settings
Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.
update-cli-config
View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.
statusline
Configure a custom status line in the CLI. Use when the user mentions status line, statusline, statusLine, CLI status bar, prompt footer customization, or wants to add session context above the prompt.
split-to-prs
Split current work into small reviewable PRs. Use when the user asks to split a chat, set of changes, branch, or PR.
shell
Runs the rest of a /shell request as a literal shell command. Use only when the user explicitly invokes /shell and wants the following text executed directly in the terminal.