Skip to main content
skill CX Codex official · Google

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add google/ground-android --skill push-to-github -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/push_to_github/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/push_to_github/

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

Similar skills

All skills for Git and GitHub →
github-workflow-automation ruvnet github-workflow-automation automates GitHub Actions with AI agent coordination. Generates optimised pipelines, manages pull requests, analyzes failed runs, and deploys updates with risk assessment. CX Codex +1 1,300installs github-automation davila7 github-automation — a Claude skill that walks through GitHub work over Rube MCP: issues, pull requests, branches, code search and CI/CD. CX Codex +1 63installs github-actions bobmatnyc github-actions is a Claude Code skill for building GitHub Actions workflows that handle builds, tests, and deployments. Use it to wire checks to pull requests or automate releases. CX Codex +1 778installs github-actions-pipeline-builder curiositech github-actions-pipeline-builder writes GitHub Actions workflows: matrix builds, dependency caching, deployments, automated tests, security scans, release automation. Triggers on "GitHub Actions", "CI/CD", "workflow", "deployment pipeline". CX Codex +1 202installs commit-push-pr dyoshikawa The commit-push-pr skill commits the current work, pushes the branch, and creates or updates a pull request. Use it when a change is ready to ship through GitHub. CX Codex +1 ★ 1,636repo stars GitHub SSH Setup for Students (Existing Repository, Clone & Push Ready) senoldak GitHub SSH Setup for Students (Existing Repository, Clone & Push Ready) is a prompt for ChatGPT, Claude.ai, and Claude Code that guides beginners through SSH setup and clones an existing repository without HTTPS, tokens, or passwords. GP ChatGPT ★ 178,201repo stars

Project sponsors

Companies that keep this analytics open