github-publish
Skill0 starsChanged 24 days agoMITView on GitHub
Publishes a local project to GitHub by generating metadata files, reusing an existing target repository when present, creating the repo when absent, and pushing. Triggers on "publish to GitHub", "push to GitHub", "create a GitHub repo", "push to existing repo", or first-time repository setup.
- Commits and pushes
4 other projects use a version of this.
Adopted by
Most recently taken up by
- mccc8/claude-skillstheir own version, first seen Oct 13, 2026
- Jawahars07/ballasttheir own version, first seen Sep 11, 2026
- korux-ai/korux-repertoiretheir own version, first seen Aug 31, 2026
- Marnie0415/pi-skillstheir own version, first seen Jun 13, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- korux-ai/korux-repertoire★ 2same name
- Jawahars07/ballast★ 1same name
- Marnie0415/pi-skills★ 1same name
- mccc8/claude-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 repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- effective-goSkill
- git-commitSkill
- github-releaseSkill
- github-topicsSkill
- matklad-architectureSkill
- nystrom-game-programming-patternsSkill
- ousterhout-software-designSkill
- silber-pixel-artSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 7 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
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
- could be automatic: a setting could enforce it
- Distinctive: line 10
Create only if absent or empty.
- Very specific: line 18
Prefer an explicit user-provided repo or GitHub URL.
- Very specific: line 20
If origin already exists:
- Distinctive: line 22
Use it when it points at the same GitHub repo target.
- Distinctive: line 27
Check whether the target repo already exists before trying to create it:
- Distinctive: line 33
If the repo exists:
- Very specific: line 35
Do not run gh repo create.
- Distinctive: line 36
Treat it as the publish target.
- Very specific: line 37
Add origin if missing, using the returned sshUrl when available:
- Distinctive: line 43
If the repo does not exist:
- Very specific: line 49
Use --private if the user requested it.
- Very specific: line 50
If creation reports that the repo already exists, re-run gh repo view <owner>/<repo-name> and reuse it when visible.
- Distinctive: line 58
If the push is rejected because the remote has unrelated history or protected branches, stop and report the exact reason.
- Very specific: line 63
Before committing, check git config user.name and git config user.email.
- Very specific: line 64
If origin remote already exists, warn the user instead of overwriting.
≈ “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
Analyze the project, then create missing metadata files, create or reuse the GitHub repo, and push.
Generate metadata files
Create only if absent or empty. Never overwrite existing files unless the user explicitly asks.
- README.md — Matched to the actual project.
- .gitignore — Appropriate for the detected language/framework.
- LICENSE — MIT by default (current year, username from
gh api user -q .login). Ask if the user wants a different license.
Resolve target repo
Prefer an explicit user-provided repo or GitHub URL. Otherwise derive the repo name from the directory (lowercase, hyphens) and the owner from gh api user -q .login. Derive description from README.
If origin already exists:
- Use it when it points at the same GitHub repo target.
- Warn and stop if it points somewhere else, unless the user explicitly asks to switch remotes.
Reuse or create repo
Check whether the target repo already exists before trying to create it:
gh repo view <owner>/<repo-name> --json url,sshUrl,nameWithOwner,defaultBranchRefIf the repo exists:
- Do not run
gh repo create. - Treat it as the publish target.
- Add
originif missing, using the returnedsshUrlwhen available:
git remote add origin <ssh-url>If the repo does not exist:
gh repo create <owner>/<repo-name> --public --description "<description>" --source=. --remote=origin- Use
--privateif the user requested it. - If creation reports that the repo already exists, re-run
gh repo view <owner>/<repo-name>and reuse it when visible. Stop only when the repo is inaccessible or clearly belongs to a different target.
Push the current branch:
git push -u origin HEADIf the push is rejected because the remote has unrelated history or protected branches, stop and report the exact reason. Never force-push unless the user explicitly asks.
Edge cases
- Skip
git initif.gitalready exists. - Before committing, check
git config user.nameandgit config user.email. If unset, read from--globalconfig and apply locally. - If
originremote already exists, warn the user instead of overwriting. - Print the repository URL after a successful push.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

