0x1abin--nanortc--git-push

仓库创建 2026年6月24日最近提交 22 天前SkillHot 收录 22 天前
▸ 精选理由

帮助在本机发现并修复能导致 CI 失败的问题,节省回滚成本。

▸ 风险提示

会执行本地脚本并最终推送到远端仓库,请注意凭据和变更。

这个 Skill 做什么

在本地运行预检流程、修复问题并在合格后推送代码到远端。

在把改动推到远端前,本地跑一遍预检流程:本地 CI、格式化、提交检查和文档同步,发现问题就先修好再推。适合担心 GitHub Actions 在远端报错或想把常见失败都提前拦下的场景。特点是尽量在本机复现并修复远端会报的错误,减少失败推送、回滚和额外修复工作。

开发编程预检推送本地 CI提交检查通用
0
Stars
0
Forks
40
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/tomevault-io/skills-registry/main/0x1abin--nanortc--git-push/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/tomevault-io/skills-registry/main/0x1abin--nanortc--git-push/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
---
name: git-push
description: > Use when this capability is needed.
metadata:
  author: 0x1abin
---

# git-push — NanoRTC Pre-flight Push Workflow

Run local CI, fix formatting, review commits, check doc freshness, then push. The goal is to
catch everything GitHub Actions would catch, before the code leaves your machine.

## Step 1: Pre-flight Status

Gather context. Run ALL of these in parallel:

```bash
git status
git branch --show-current
git remote -v
git log --oneline -5
git rev-parse --abbrev-ref @{upstream} 2>/dev/null || echo "NO_UPSTREAM"
```

Handle edge cases before proceeding:

- **Detached HEAD**: Stop. Tell the user to create or checkout a branch first.
- **No remote configur
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有