Push Skills to GitHub
When to Use
- Use when skill changes are ready to commit and push to the configured skills repo.
- Use when the user asks to save or publish skill updates after validation.
For committing any skill change to the user's 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
Not in cmux? (no $CMUX_WORKSPACE_ID): skip the cmux pane steps — just run the git commands from step 2 directly in any available terminal, then verify the push output.
- Open a fresh cmux pane in the current workspace, no focus steal:
cmux new-pane --type terminal --direction right --workspace "$CMUX_WORKSPACE_ID" --focus false
cmux list-panes --workspace "$CMUX_WORKSPACE_ID" # note the NEW pane + its surface ref
- Stage, commit, push in
~/.agents (send to the new pane's surface):cmux send --surface surface:NEW 'cd ~/.agents && git add -A && git commit -m "<concise message>" && git push'
cmux send-key --surface surface:NEW enter
- Verify the push landed:
sleep 2
cmux read-screen --surface surface:NEW | tail -15 # expect "main -> main"
- Close the pane once confirmed:
cmux close-surface --surface surface:NEW
cmux list-panes --workspace "$CMUX_WORKSPACE_ID" # confirm the pane is gone
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.
Example
User request:
Validate the changed skills, review the diff, commit them with a focused message, and push the topic branch.
Limitations
- Adapted from
davidondrej/skills; verify local paths, tools, credentials, and agent features before acting.
- For commands, remote access, scheduling, browser automation, or file-changing workflows, get explicit user approval and confirm the target environment first.
1---2name: push-skill-to-github3description: "Commit and push skill changes to the configured skills repository after review and validation."4category: development5risk: critical6source: community7source_repo: davidondrej/skills8source_type: community9date_added: "2026-07-07"10author: davidondrej11tags: [skills, git, publishing]12tools: [claude, codex]13license: "MIT"14license_source: "https://github.com/davidondrej/skills/blob/main/LICENSE"15metadata:16 source: https://skillmd.com/skills/francostino/push-skill-to-github17---1819# Push Skills to GitHub2021## When to Use2223- Use when skill changes are ready to commit and push to the configured skills repo.24- Use when the user asks to save or publish skill updates after validation.2526For committing any skill change to the user's 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.2728Use 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.2930## Steps3132**Not in cmux?** (no `$CMUX_WORKSPACE_ID`): skip the cmux pane steps — just run the git commands from step 2 directly in any available terminal, then verify the push output.33341. **Open a fresh cmux pane** in the current workspace, no focus steal:35 ```bash36 cmux new-pane --type terminal --direction right --workspace "$CMUX_WORKSPACE_ID" --focus false37 cmux list-panes --workspace "$CMUX_WORKSPACE_ID" # note the NEW pane + its surface ref38 ```392. **Stage, commit, push** in `~/.agents` (send to the new pane's surface):40 ```bash41 cmux send --surface surface:NEW 'cd ~/.agents && git add -A && git commit -m "<concise message>" && git push'42 cmux send-key --surface surface:NEW enter43 ```443. **Verify** the push landed:45 ```bash46 sleep 247 cmux read-screen --surface surface:NEW | tail -15 # expect "main -> main"48 ```494. **Close the pane** once confirmed:50 ```bash51 cmux close-surface --surface surface:NEW52 cmux list-panes --workspace "$CMUX_WORKSPACE_ID" # confirm the pane is gone53 ```5455## Notes56- Always run git from `~/.agents` (the repo root), not `~/.agents/skills`.57- Write a concise, specific commit message describing the skill change.58- Only push to GitHub when the user asks. Don't push speculatively.5960## Example6162**User request:**6364> Validate the changed skills, review the diff, commit them with a focused message, and push the topic branch.6566## Limitations6768- Adapted from `davidondrej/skills`; verify local paths, tools, credentials, and agent features before acting.69- For commands, remote access, scheduling, browser automation, or file-changing workflows, get explicit user approval and confirm the target environment first.