git-push

A skill that automatically commits code with Git and pushes to a remote repository. Triggered by the command `/gitpush`. Features include automatically staging all changes, auto-generating commit messages, committing to the local repository, and pushing to the remote branch. Reports commit status, number of files changed, and elapsed time on success.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "git-push" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-50f739b5d89a055323d9fc1c4fec6f6665760936c92fe3581b8e37ab67b186ee. Verify the upstream source and version against https://skillhub.cn/skills/user_4e42b097/git-push before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

A skill that automatically commits code with Git and pushes to a remote repository. Triggered by the command `/gitpush`. Features include automatically staging all changes, auto-generating commit messages, committing to the local repository, and pushing to the remote branch. Reports commit status, number of files changed, and elapsed time on success.

0 Downloads

Introduction source: third_party · user_4e42b097 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: gitpush
description: "自动用 git 提交代码并推送到远程仓库。当用户输入 `/gitpush` 时触发此技能。功能包括:自动暂存所有更改、自动生成提交信息、自动提交到本地仓库、自动推送到远程分支。成功后报告提交状态、文件数量和耗时。"

GitPush 技能

自动完成 git 提交流程:暂存 → 生成提交信息 → 提交 → 推送到远程仓库。

执行步骤

1. 检查 git 状态

使用 git status 检查当前仓库状态,确认是否有可提交的内容。

2. 暂存更改

如果有待提交的文件,执行 git add -A 暂存所有更改。

3. 生成提交信息

执行 git diff --cached --stat 获取暂存的变更统计,然后:

  • 如果有新增文件,提取新增文件的文件名
  • 如果有修改文件,提取修改的文件名
  • 根据变更内容生成简洁的提交信息,格式:feat: 描述 / fix: 描述 / docs: 描述 / chore: 描述

4. 执行提交

使用生成的提交信息执行 git commit -m "提交信息"

5. 推送到远程

执行 git push 推送到远程仓库。如果当前分支没有上游跟踪,执行 git push -u origin master 设置上游并推送。

输出格式

成功时

✓ 提交成功!

  • 提交信息: xxx
  • 变更文件: x 个新增, x 个修改, x 个删除
  • 耗时: x 秒
  • 远程推送: 已完成

失败时

✗ 提交失败 原因: [具体错误信息]

可能的原因:

  • 无可提交的内容(工作区干净)
  • 未连接到远程仓库
  • 远程仓库拒绝推送(权限问题或冲突)
  • 网络连接失败

无需提交时

✓ 工作区没有可提交的内容

注意事项

  1. 始终使用 git add -A 暂存所有更改
  2. 提交信息使用中文,简洁明了
  3. 推送到当前分支的远程对应分支
  4. 如果推送失败,尝试显示具体的 git 错误信息
  5. 记录每个步骤的耗时,最后汇总报告

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 解决开发者日常高频刚需任务,显著提升 git 提交流程效率
Trigger Precision88/100

Highlights

  • 触发词 `/gitpush` 明确且边界清晰
Structure and Standards90/100

Highlights

  • 执行步骤清晰,输出格式完整,frontmatter 规范
Execution Reliability75/100

Areas to improve

  • 前置条件未覆盖 Reported severity: Minor

    未说明如何处理 git 用户名/邮箱未配置等前置条件

    Recommendation: 建议在文档或执行流程中加入前置条件检查与引导

Highlights

  • 覆盖主要异常场景,有明确错误反馈机制
Evidence Verifiability (mean of the first four)86/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.