git-push

GitHub

用于安全地将已提交的代码推送到远程分支。检查工作区状态,拒绝向受保护分支推送,处理上游设置及推送被拒后的分歧,确保不使用强制推送。

.agents/skills/git-push/SKILL.md Terry-Mao/AICodingFlow

触发场景

用户要求推送或发布当前分支 执行 git push 操作

安装

npx skills add Terry-Mao/AICodingFlow --skill git-push -g -y
更多选项

非标准路径

npx skills add https://github.com/Terry-Mao/AICodingFlow/tree/main/.agents/skills/git-push -g -y

不安装直接使用

npx skills use Terry-Mao/AICodingFlow@git-push

指定 Agent (Claude Code)

npx skills add Terry-Mao/AICodingFlow --skill git-push -a claude-code -g -y

安装 repo 全部 skill

npx skills add Terry-Mao/AICodingFlow --all -g -y

预览 repo 内 skill

npx skills add Terry-Mao/AICodingFlow --list

SKILL.md

Frontmatter
{
    "name": "git-push",
    "description": "Publish committed work to the correct remote branch without unsafe force pushes."
}

git-push

Use this after commits exist and the user asks to push or publish the current branch.

Check worktree status, current branch, upstream, and commits not yet on the upstream. Refuse main, master, develop, and release branches unless the user explicitly asks. Dirty changes are not pushed; report them and continue only when pushing existing commits is clearly intended.

Use ordinary push for an existing upstream, otherwise set the branch upstream:

git push
git push -u origin <branch>

If rejected, fetch and inspect divergence. Ask before rebasing, merging, or using --force-with-lease; never use plain --force unless explicitly requested. Report branch, remote/upstream, pushed commit, result, and any dirty changes left behind.

版本历史

  • d3fef11 当前 2026-09-03 03:51

    精简了本地开发与 spec 工作流指引,优化了命令调用方式。

  • e53c5ac 2026-07-24 11:35

同 Skill 集合

.agents/skills/bootstrap-issue-config/SKILL.md
.agents/skills/create-issue/SKILL.md
.agents/skills/create-pr/SKILL.md
.agents/skills/diagnose-ci-failures/SKILL.md
.agents/skills/git-branch/SKILL.md
.agents/skills/git-commit/SKILL.md
.agents/skills/git-worktree/SKILL.md
.agents/skills/pr-walkthrough/SKILL.md
.agents/skills/resolve-merge-conflicts/SKILL.md
.agents/skills/review-pr-local/SKILL.md
.agents/skills/review-spec-local/SKILL.md
.agents/skills/spec-driven-implementation/SKILL.md
.agents/skills/write-product-spec/SKILL.md
.agents/skills/write-tech-spec/SKILL.md
.github/skills/check-impl-against-spec/SKILL.md
.github/skills/create-product-spec/SKILL.md
.github/skills/create-tech-spec/SKILL.md
.github/skills/dedupe-issue-repo/SKILL.md
.github/skills/dedupe-issue/SKILL.md
.github/skills/implement-issue/SKILL.md
.github/skills/implement-specs/SKILL.md
.github/skills/product-change-report/SKILL.md
.github/skills/product-docs-sync/SKILL.md
.github/skills/product-wiki/SKILL.md
.github/skills/review-pr-repo/SKILL.md
.github/skills/review-pr/SKILL.md
.github/skills/review-spec-repo/SKILL.md
.github/skills/review-spec/SKILL.md
.github/skills/security-review-pr/SKILL.md
.github/skills/security-review-spec/SKILL.md
.github/skills/triage-issue-repo/SKILL.md
.github/skills/triage-issue/SKILL.md
.github/skills/update-dedupe/SKILL.md
.github/skills/update-pr-review/SKILL.md
.github/skills/update-triage/SKILL.md

元信息

文件数
0
版本
d3fef11
Hash
ff6afe4d
收录时间
2026-07-24 11:35

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-12 08:44
浙ICP备14020137号-1 $访客地图$