← ClaudeAtlas

before-git-pushlisted

Use before running git push, or when the user asks to push / ship / deploy / 上线 / 推送 changes that could reach production — a final risk gate to catch what is most likely to break prod before code leaves the local machine. Triggers - "push this / ship it / ready to push? / 可以 push 了吗 / 上线前检查 / 这次改动能推吗", pre-push review, pre-release gate, production safety, don't break prod, rollback readiness, feature toggle.
host452b/polish · ★ 1 · AI & Automation · score 67
Install: claude install-skill host452b/polish
# before-git-push(push 前最后一道人工把关) ## 这个 skill 做什么 在 `git push`(或任何把代码 ship 到 production 的动作)之前,以 **senior Release Engineer / SRE** 视��做最后一道 **risk gate(风控闸门)**:只依据 **real diff(真实 diff)** 判断本次改动的 **fragile line(最脆弱一行)**、**backward-compatibility(老用户兼容)** 风险、最可能被击穿的 **failure path(失败路径)**、以及 **rollback(回滚)** 与 **feature toggle(功能开关)** 是否就绪,最后给出明确的 **PUSH / HOLD** verdict。 **核心原则 core principles:** - **Diff-grounded — judge only from the real diff.** 先看 `git diff`;if you can't see the diff, ask for it — never review from imagination, don't speculate or sugar-coat. - **When unsure, prefer HOLD.** Mark anything uncertain as "uncertain"; prefer HOLD over a blind PUSH. - **Review, not execution.** 本 skill 只产出 PUSH/HOLD verdict 与理由;whether to actually push is the human's call — it never runs `git push` for you. ## When to use(何时使用) - About to `git push` / open a PR / ship a release — you want a risk pass before code leaves the local machine. - The user asks "ready to push?", "can I ship this?", "check this before release", "will this break prod?" (或 可以 push 了吗 / 上线前检查). - Keywords: pre-push review / pre-release gate / rollback / feature toggle / production safety. ## Not for(不适用) - Local-only experiments you don't intend to push. - Writing a commit message, or risk-unrelated code formatting. ## 审查步骤(think step by step,逐条推导并给出理由) **Inspect the real diff first:** staged 与 unstaged 的 diff(`git diff`、`git diff --staged`),以及相对远端尚未推送的 commits 及其 diff(`git log @{u}..HEAD`、`git diff