github-host-alias

github-host-alias is a skill for Claude Code, Codex from saski/arnesto. It costs 40 tokens per session (607 once invoked), scanned A, original, Unlicense.

A rule for GitHub commands that use SSH, directing them through the configured saski account alias. An SSH alias is a local name that selects a particular connection setup.

In plain words
What is it for?
Use it when cloning repositories, changing remotes, fetching, pulling, pushing, or writing GitHub SSH commands.
Why use it?
It prevents GitHub operations from using the wrong account or confusing Git-over-SSH authentication with GitHub CLI login.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when cloning repositories, changing remotes, fetching, pulling, pushing, or writing GitHub SSH commands.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/saski/arnesto/github-host-alias
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add saski/arnesto --skill github-host-alias
Clone the repo
git clone --depth 1 https://github.com/saski/arnesto

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for github-host-alias

README.md
[![agentmods](https://agentmods.dev/badge/skills/saski/arnesto/github-host-alias/github.svg)](https://agentmods.dev/skills/saski/arnesto/github-host-alias)
Your own site
<a href="https://agentmods.dev/skills/saski/arnesto/github-host-alias"><img src="https://agentmods.dev/badge/skills/saski/arnesto/github-host-alias/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for github-host-alias

Your own site · 80×15
<a href="https://agentmods.dev/skills/saski/arnesto/github-host-alias"><img src="https://agentmods.dev/badge/skills/saski/arnesto/github-host-alias.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 607 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00607
Opus 5.5 $0.00016 $0.00243
Sonnet 5.5 $0.00008 $0.00121
Haiku 4.5 $0.00004 $0.00061

Measured 1mo ago against content hash 436366dedcba, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

github-host-alias scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/github-host-alias/SKILL.md · 65 lines

How it starts

The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 git commands that involve fetching, pulling, pushing, or cloning over SSH.
  • Troubleshooting GitHub auth where SSH aliases and gh auth login are being conflated.

SSH Host Alias Context

All GitHub access should use:

[email protected]:

Do not use bare [email protected]: in this environment. If a command, remote, or example uses bare GitHub SSH, rewrite it to [email protected]:.

GitHub CLI Caveat

  • github.com-saski is an SSH alias from ~/.ssh/config, not a separate GitHub CLI host.
  • Do not use gh auth login to choose Git-over-SSH identity.
  • Only use gh auth login when a GitHub CLI command on github.com truly requires API authentication.
  • Before suggesting gh auth login, inspect whether GITHUB_TOKEN is set.
  • If GITHUB_TOKEN is set, gh auth login will authenticate from that environment variable and will not store interactive credentials. For a stored login, run env -u GITHUB_TOKEN gh auth login or unset GITHUB_TOKEN in that shell first.
  • Confirm CLI auth separately with gh auth status.

Workflow

  1. Check whether the target URL is a GitHub SSH URL.
  2. Normalize bare GitHub SSH URLs:
  3. Leave already-correct [email protected]: URLs unchanged.
  4. For HTTPS GitHub remotes that should use SSH, replace them with [email protected]:owner/repo.git.

Example: Cloning

git clone [email protected]: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 [email protected]:owner/repository-name.git

Read the full file on GitHub · 65 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 65 lines · 40 tokens per session scan A 436366dedcba

Subscribe to this mod's changes

github-host-alias is a skill published in the GitHub repository saski/arnesto (5 stars, last pushed yesterday), licensed Unlicense. It adds 40 tokens to every session and 607 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.