setup-github
Skill32 starsChanged 23 days agoMITView on GitHub
Install Git and the GitHub CLI (gh) on macOS, Linux or Windows, sign the user in to GitHub through the browser and set up their Git name and email, so the agent can create repos and push. Use when git or gh is missing, the user wants to connect GitHub, or gh auth status fails.
- Installs packages
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- lorenzogm/skillstheir own version, first seen May 25, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- lorenzogm/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository42 other files it gives its agents.
- skills/setup-my-hermes-dashboard/template/AGENTS.mdAGENTS.md
- audit-safetySkill
- betterSkill
- cleanupSkill
- create-projectSkill
- doneSkill
- dreamSkill
- projectsSkill
- setup-brainSkill
- cloudflareSkill
- code-debugSkill
- codex-imagesSkill
- connect-googleSkill
- connect-instagram-developer-platformSkill
- connect-toolSkill
- connect-vpsSkill
- connect-youtube-developer-platformSkill
- convexSkill
- create-internal-appSkill
- create-landingSkill
- create-softwareSkill
- dev-browserSkill
- grill-meSkill
- initializeSkill
- install-skillsSkill
- lumailSkill
- safe-shipSkill
- setup-cloudflareSkill
- setup-convexSkill
- setup-dev-browserSkill
- setup-lumailSkill
- dashboardSkill
- setup-my-hermes-dashboardSkill
- setup-nodeSkill
- setup-stripeSkill
- setup-vpsSkill
- show-meSkill
- skill-managerSkill
- stripe-checkoutSkill
- use-styleSkill
- verifySkill
- wait-whatSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
If the user has no GitHub account, send them to https://github.com/signup and wait for "done".
- Very specific: line 17
If gh auth status already says logged in, skip to step 6.
- Very specific: line 24
Run gh auth setup-git so git push uses this login.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Make Git and GitHub work on the user's machine so the agent can create private repos and push code. Do every step yourself and only ask for what needs a human (a click in an install window, signing in, a one-time code). Talk to the user in their language, short messages, no jargon (never say "CLI", "PATH" or "token" to them). Never ask for their GitHub password or a token.
If you got this skill from a link instead of a local folder, install nothing else from the repo: download a file it links only when a step needs it, with curl -fsSL https://raw.githubusercontent.com/Melvynx/ai-maxxing-skills/main/skills/setup-github/<path> -o <scratch>/<file> (for example scripts/install-gh.sh), and read another skill it names only when you reach it, from https://raw.githubusercontent.com/Melvynx/ai-maxxing-skills/main/skills/<skill-name>/SKILL.md.
- Find the OS with
uname -s(Darwinis macOS,Linuxis Linux); if it fails or PowerShell answers, it is Windows. - Make Git work, then check with
git --version:- macOS: if
xcode-select -pfails, Git is only an empty shell until Apple's developer tools are installed. Homebrew installs them, so if it is missing run thesetup-nodeskill first (it installs Homebrew and Node, both needed later anyway). Only if the user cannot install Homebrew (no admin rights), runxcode-select --install, tell them a window just opened and to click "Install" then accept the licence, and checkxcode-select -pevery 30 seconds (in the background, up to 30 minutes) until it answers. - Linux: if Git is missing, installing it needs the user's password, so ask them to run
sudo apt install -y git(orsudo dnf install -y git) in their own terminal and say "done". - Windows: Git comes with Claude Code; if it is missing,
winget install --id Git.Git -e.
- macOS: if
- Install
gh: on macOS and Linux run scripts/install-gh.sh (Homebrew on macOS, exit code 3 means Homebrew is missing so runsetup-nodefirst; on Linux or with--no-brew, the official release into~/.local/bin); on Windowswinget install --id GitHub.cli -e. The current session does not see it yet: prefix your next commands witheval "$(/opt/homebrew/bin/brew shellenv)"(or/usr/local/bin/brewon Intel) on macOS, orexport PATH="$HOME/.local/bin:$PATH"with the~/.localinstall. - If the user has no GitHub account, send them to https://github.com/signup and wait for "done". GitHub asks for two-step verification on new accounts: tell them it is normal and to follow it to the end.
If
gh auth statusalready says logged in, skip to step 6. Otherwise start the login in the background, with the output in a file you can read:gh auth login --hostname github.com --git-protocol https --web --skip-ssh-key < /dev/null > <scratch>/gh-login.txt 2>&1Read the one-time code (
XXXX-XXXX) from that file and give it to the user with https://github.com/login/device (open it in Chrome AI whensetup-dev-browseris done). They paste the code, click "Authorize", and say "done". Checkgh auth statusuntil it says logged in. If the code expired, start again.- Run
gh auth setup-gitsogit pushuses this login. - Set the Git identity only if
git config --global user.nameis empty: the name fromgh api user --jq '.name // .login', and the private GitHub email fromgh api user --jq '"\(.id)+\(.login)@users.noreply.github.com"'unless the user wants their real email shown in commits. Also rungit config --global init.defaultBranch main. - Prove it:
gh auth statusis logged in,gh api user --jq .loginprints their username,gh repo list --limit 1answers,git config --global user.nameanduser.emailare set, and a new session findsghtoo ($SHELL -lic 'gh --version').
End with a short check list, a check or a cross on each line: Git works, gh installed, signed in as <username>, Git uses the GitHub login, name and email set. Then tell the user in one line that the agent can now create private repos and push for them.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

