w-push — Claude Code skill: branch checks and installation
w-push — a skill for Claude Code checks changes before pushing the intended branch. It runs when asked to publish the current task.
MIT 647 installs ★ 1 updated 2026-10-02
npx skills add blockmatic-icebox/basilic-skills --skill w-push -a claude-codeWhat w-push does
w-push reviews the diff and required check results before pushing. It removes temporary debug code added for the task, while leaving unrelated staged and untracked files alone. If the task changes need a commit, it follows the w-commit skill’s instructions.
The skill pushes to the inspected upstream. If there is no upstream, it uses the repository’s intended remote and current branch, resolving any ambiguity before publishing. When a push is rejected, it checks branch divergence and follows a non-destructive sync workflow. Force-pushes and hook bypasses are off limits. It won’t open a PR, deploy, or monitor CI unless asked.
What it helps with
- check a diff and required results before pushing
- push the current branch to its inspected upstream
- keep unrelated staged and untracked files intact
- handle a rejected push without force-pushing
Example prompts for the agent
- Push the current task to the remote repository.
- Check the changes and push the current branch.
- Handle the rejected push without overwriting remote history.
How to install w-push
1Skills CLI (Vercel)
npx skills add blockmatic-icebox/basilic-skills --skill w-push -a claude-code2Manually: put the files in place
~/.claude/skills/w-push/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/w-push/
1Skills CLI (Vercel)
npx skills add blockmatic-icebox/basilic-skills --skill w-push -a codex2Manually: put the files in place
.agents/skills/w-push/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add blockmatic-icebox/basilic-skills --skill w-push -a cursor2Manually: put the files in place
.cursor/skills/w-push/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install blockmatic-icebox/basilic-skills skills/workflow/w-push2Manually: put the files in place
.github/skills/w-push/SKILL.md1Skills CLI (Vercel)
npx skills add blockmatic-icebox/basilic-skills --skill w-push -a gemini-cli2Platform CLI
gemini skills install https://github.com/blockmatic-icebox/basilic-skills --path skills/workflow/w-pushManually: put the files in place
.devin/skills/w-push/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add blockmatic-icebox/basilic-skills --skill w-push -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about w-push
How do I install w-push in Claude Code?
Run npx skills add blockmatic-icebox/basilic-skills --skill w-push -a claude-code. The skill file is at ~/.claude/skills/w-push/SKILL.md.
What does w-push do?
It checks the diff and required results, then pushes the intended branch to its upstream. For a rejected push, it inspects divergence and uses a non-destructive sync workflow.
What happens if a push is rejected?
The skill checks how the branches diverged and follows a non-destructive synchronization workflow. It won’t force-push or bypass hooks.
Source text
SKILL.md · MIT
--- name: w-push description: Validate and push the intended branch while preserving unrelated work. disable-model-invocation: true --- Invocation requests pushing the current task. Follow [git publish](references/git-publish.md). 1. Review the intended diff and required check results. Remove only temporary debug code introduced by the task. 2. If task changes need committing, follow [commit](../w-commit/SKILL.md). Preserve unrelated staged and untracked files. 3. Push to the inspected upstream. If none exists, use the repository's intended remote and current branch; resolve ambiguity before publishing. 4. For a rejected push, inspect divergence and use the repository's non-destructive synchronization workflow. Never force-push or bypass hooks. Do not create a PR, deploy, or start watching CI unless requested.
© blockmatic-icebox · MIT · blockmatic-icebox/basilic-skills