pre-push-skill
Skill by flutter
Runs the required pre-push checks for the flutter/packages repository, scoped to the camera_android_camerax package. It gives a ready or not ready verdict before a pull request is opened.
Install pre-push-skill
Built from the published package, never by AI.
git clone --depth 1 https://github.com/flutter/packages /tmp/packages && mkdir -p ~/.claude/skills && cp -r /tmp/packages/packages/camera/camera_android_camerax/.agents/skills/pre-push-skill ~/.claude/skills/pre-push-skillRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/flutter/packages /tmp/packages && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/packages/packages/camera/camera_android_camerax/.agents/skills/pre-push-skill ~/.gemini/antigravity-cli/skills/pre-push-skillAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Pre-push-skill runs the required checks before a branch is pushed to the flutter/packages repository. It checks for a clean working tree, changed files in the camera_android_camerax package, and merge conflicts with upstream main. It also runs Dart and native Android unit tests, a version and CHANGELOG publish check, and a license header check. It checks for Dart doc comments and added tests too.
The skill ends with a verdict of ready or not ready to push, followed by a checklist of results. When the code is ready, it provides a gh pr create command with a title that starts with the package name in brackets. The source describes it for contributors working on camera_android_camerax in flutter/packages. The metadata marks it as internal.
Written from the project's SKILL.md and checked against it.
What it can do
- Clean working tree checkRuns git status --porcelain to confirm all changes are committed.
- Changed files checkConfirms the branch has changes in packages/camera/camera_android_camerax.
- Merge conflict checkFetches upstream main and checks whether the branch is up to date and conflict free.
- Unit test checkRuns the Dart and native Android unit tests for camera_android_camerax.
- Publish checkVerifies the pubspec.yaml version bump and CHANGELOG.md entry.
- License header checkRuns the license check on source files in camera_android_camerax.
- Documentation and test checksChecks for Dart doc comments on public APIs and for added or updated tests.
- PR commandProvides a gh pr create command with a bracketed package title when ready.
What you need
- GitHub CLI (gh), installed and authenticated
- Git with a remote pointing to flutter/packages
- Dart, to run flutter_plugin_tools
Try asking
- Am I ready to push my camera_android_camerax changes?
- Run the pre-push checks before I open a pull request.
- Check my branch for merge conflicts with upstream main.
Good to know
- Checks are scoped to the camera_android_camerax package only.
- Stops immediately if merge conflicts are found.
- Does not run update-release-info automatically when the branch is behind.
- Marked as internal in the skill metadata.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/camera/camera_android_camerax/.agents/skills/pre-push-skill/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
evals/evals.json6 KB -
evals/test_data/setup_behind_upstream_conflict.dart5 KB -
evals/test_data/setup_behind_upstream_no_conflict.dart3 KB -
evals/test_data/setup_missing_native_test.dart764 B
Show all 8 files
-
evals/test_data/setup_mixed_missing_native_test.dart2 KB -
evals/test_data/setup_success_native_test.dart2 KB -
evals/test_data/setup_user_facing_docs_change.dart910 B
Alternatives to pre-push-skill
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
pre-push-skill: common questions
Which packages does this skill check?
The checks are scoped to camera_android_camerax. If no changed files are found in that package, the skill tells the user it is for that package only.
What happens if the branch has merge conflicts?
The skill stops, reports that the code is not ready to push, and gives the git merge command to reproduce the conflicts.
Does the skill open the pull request itself?
No. When the code is ready, it provides a gh pr create command for the user to run.
How do I install pre-push-skill?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pre-push-skill free?
The code is published under the BSD-3-Clause licence. The service it connects to may have its own pricing.
Is pre-push-skill safe to use?
It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pre-push-skill?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
