Push to GitHub — Claude Code skill: tests and validation before push
Push to GitHub — a skill that runs tests, lints code, and pushes changes to GitHub. Use it as a guard before sending commits to ensure CI stays green.
Apache-2.0 21 installs ★ 299 updated 2026-10-29
npx skills add google/ground-android --skill push-to-github -a claude-codeWhat Push to GitHub does
The skill runs three checks in sequence: unit tests first, then code linting, and if both pass, it sends the commit to the current branch. This prevents broken code from reaching your repository. Powered by a Python script (push.py) that calls each check in order and halts if anything fails. Works best when your project already has tests and a linter configured.
What it helps with
- run tests before pushing code to GitHub
- check code for style issues before committing
- automate quality checks before each push
- block pushes that would break CI
Example prompts for the agent
- run Push to GitHub to send my changes
- check tests and push code to GitHub
- run all checks and push the current branch
How to install Push to GitHub
1Skills CLI (Vercel)
npx skills add google/ground-android --skill push-to-github -a claude-code2Manually: put the files in place
~/.claude/skills/push_to_github/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/push_to_github/
1Skills CLI (Vercel)
npx skills add google/ground-android --skill push-to-github -a codex2Manually: put the files in place
.agents/skills/push_to_github/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add google/ground-android --skill push-to-github -a cursor2Manually: put the files in place
.cursor/skills/push_to_github/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install google/ground-android .agent/skills/push_to_github2Manually: put the files in place
.github/skills/push_to_github/SKILL.md1Skills CLI (Vercel)
npx skills add google/ground-android --skill push-to-github -a gemini-cli2Platform CLI
gemini skills install https://github.com/google/ground-android --path .agent/skills/push_to_githubManually: put the files in place
.devin/skills/push_to_github/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add google/ground-android --skill push-to-github -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 Push to GitHub
How do I install Push to GitHub in Claude Code?
Run npx skills add google/ground-android --skill push_to_github -a claude-code, then open ~/.claude/skills/push_to_github/SKILL.md to configure it.
What does this skill do?
It runs unit tests, checks code with a linter, and if both pass, pushes changes to your current branch. If any check fails, the push is blocked.
How is this different from a regular git push?
A plain push sends your commit immediately. This skill validates your code first—tests and linting pass before anything reaches the repository, keeping CI stable.
Source text
SKILL.md · Apache-2.0
--- name: Push to GitHub description: Runs all necessary checks (lint, tests) and pushes to GitHub. Use this as the final safety gate. --- # Push to GitHub Use this skill **when you are ready to push** your changes to the remote repository. It acts as a safety gate to prevent breaking CI. ## Usage 1. Verifies changes (Unit Tests). 2. Runs code checks (Lint/CheckCode). 3. Pushes to the current branch. ### Command ```bash python3 .agent/skills/push_to_github/scripts/push.py ```
© google · Apache-2.0 · google/ground-android