About push-skill-to-github
An agent skill for committing skill changes in the canonical `~/.agents` repository and pushing them to GitHub. It describes how to avoid unrelated changes and verify that the push succeeded.
Key features
- 01Check pending repository changes
- 02Stage and commit skill updates
- 03Push changes from the repository root
- 04Verify the push result
Use cases
- 01Publish an edited skill after user approval
- 02Commit only the changed skill folders
- 03Confirm a push reached `main`
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ davidondrej/ skills --skill push-skill-to-githubAfter installing, type/push-skill-to-githubin Claude Code to confirm it loaded.
Details
From the project READMEPush Skills to GitHub
For committing any skill change to the user's private skills repo: <private-skills-repo>, git root ~/.agents (this is also the canonical skill folder; .claude and .pi/agent/skills symlink to ~/.agents/skills). Pushes here auto-publish a sanitized public mirror to davidondrej/skills — never push directly to that public repo.
Use this after creating or editing a skill. If the skill is distributed to all agents, do that first (distribute-skill-to-all-agents), then run this to push the canonical copy.
Steps
Run git directly in the current shell. A push is a quick synchronous command — no persistent terminal, pane, or cmux needed.
- Check what's pending in
~/.agents:
If there are unrelated uncommitted changes, stage only the skill folder(s) you changed — don't bundle unrelated work under one commit message.cd ~/.agents && git status --short - Stage, commit, push:
cd ~/.agents && git add skills/<skill-name> && git commit -m "<concise message>" && git push - Verify the push landed: the push output must show
main -> main. If it doesn't, report the error — don't claim success.
Notes
- Always run git from
~/.agents(the repo root), not~/.agents/skills. - Write a concise, specific commit message describing the skill change.
- Only push to GitHub when the user asks. Don't push speculatively.