github-push
Skill0 starsChanged 2 months agoMITView on GitHub
Push the current project repository to GitHub. Handles the full flow: git init, first commit, gh auth, repo creation, and push. Use when the user says "push to github", "create github repo", "push repo", "publish to github", "put this on GitHub".
- Reads credentials
- Installs packages
- Commits and pushes
2 other projects use a version of this.
Adopted by
Most recently taken up by
- kuailexiaozixin/githubtheir own version, first seen Nov 20, 2026
- kaipingyang/CDISC_trainingtheir own version, first seen Aug 29, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- kaipingyang/CDISC_training★ 9same name
- kuailexiaozixin/github★ 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 repository14 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- architectSkill
- atomic-commitSkill
- codebase-tutorialSkill
- code-via-opencodeSkill
- code-walkthroughSkill
- deep-research-economySkill
- deep-researchSkill
- instagram-transcriptSkill
- move-projectSkill
- poc-portfolio-prepSkill
- research-via-opencodeSkill
- resume-after-windowSkill
- translate-ruSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 6 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Ensure git is initialised and has at least one commit
- Very specific: line 16
Ensure gh CLI is authenticated
- Distinctive: line 17
Create a GitHub repository if no remote exists
- Very specific: line 32
If output contains not a git repository → go to Step 2a (init)
- Very specific: line 33
If output shows nothing to commit or a clean state with commits → skip to Step 3
- Distinctive: line 34
If output shows uncommitted changes → go to Step 2b (stage + commit)
- Distinctive: line 73
Use a descriptive commit message based on what files changed.
- Very specific: line 83
If output contains Logged in as → skip to Step 4
- Very specific: line 84
If output contains not logged in → run:
- Very specific: line 103
If a remote named origin exists → skip to Step 5 (just push)
- Distinctive: line 104
If no remote → go to Step 4a (create repo)
- Very specific: line 111
Default repo name: basename "$PWD"
- Very specific: line 112
Default visibility: private — use --public only if the user explicitly specified it in their request
- Distinctive: line 134
If the branch has no upstream yet:
≈ “Common” is an estimate: at least 1 in 5 of the 383,637 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
Skill: Push Project to GitHub
Purpose
Handles the complete flow of publishing the current project to GitHub:
- Ensure git is initialised and has at least one commit
- Ensure
ghCLI is authenticated - Create a GitHub repository if no remote exists
- Push all commits
Workflow
Work through the steps below sequentially, checking state at each step before acting.
Step 1 — Check git status
git -C "$PWD" status 2>&1- If output contains
not a git repository→ go to Step 2a (init) - If output shows
nothing to commitor a clean state with commits → skip to Step 3 - If output shows uncommitted changes → go to Step 2b (stage + commit)
Step 2a — Initialise git (if not a repo)
cd /path/to/project
git initThen check if .gitignore is needed. If the project has node_modules/, __pycache__/, .venv/, .env, or similar — offer to create a .gitignore. Common template:
node_modules/
__pycache__/
.venv/
venv/
.env
*.pyc
.DS_StoreThen stage and commit:
git add -A
git commit -m "Initial commit"Step 2b — Stage and commit pending changes
git add -A
git status # confirm what will be committed
git commit -m "<describe the changes>"Use a descriptive commit message based on what files changed.
Step 3 — Check gh authentication
gh auth status 2>&1- If output contains
Logged in as→ skip to Step 4 - If output contains
not logged in→ run:
gh auth login --web -h github.comWalk the user through the interactive prompts:
- Protocol: HTTPS
- Authenticate Git with credentials: Yes
- Copy the one-time code shown, press Enter to open the browser, paste the code on GitHub
Step 4 — Check for existing remote
git remote -v- If a remote named
originexists → skip to Step 5 (just push) - If no remote → go to Step 4a (create repo)
Step 4a — Create GitHub repository and push
First, determine the repo name and visibility:
- Default repo name:
basename "$PWD" - Default visibility: private — use
--publiconly if the user explicitly specified it in their request
gh repo create <repo-name> --private --description "<short description>" \
--source=. --remote=origin --pushFor a public repo:
gh repo create <repo-name> --public --source=. --remote=origin --pushThis creates the repo, adds origin remote, and pushes in one step.
Step 5 — Push (remote already exists)
git pushIf the branch has no upstream yet:
git push --set-upstream origin $(git branch --show-current)What to report after completion
Tell the user:
- The GitHub URL of the repository (from
gh repo view --json url -q .urlor from the output ofgh repo create) - How many commits were pushed (
git log --oneline | wc -l) - Current branch name
Edge cases
| Situation | Action |
gh not installed | Run sudo apt install gh or sudo snap install gh |
Branch is master not main | Push as-is; mention user can rename with git branch -m main |
| Push rejected (non-fast-forward) | Show git log origin/<branch>..HEAD and ask whether to force-push or merge |
| Repo already exists on GitHub | Skip creation, add remote manually: git remote add origin https://github.com/<user>/<repo>.git, then push |
| Binary files or large files | Warn if any file > 50 MB (GitHub limit is 100 MB; LFS recommended above 50 MB) |
Dependencies
git— version controlgh— GitHub CLI:sudo apt install ghorsudo snap install gh- Active internet connection
- A GitHub account (free tier is sufficient)
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.

