git-push

GitHub

在用户要求推送代码时,安全地将已提交的更改发布到正确的远程分支。检查工作区状态、上游及未推送提交,拒绝敏感分支推送,处理脏数据与冲突,确保操作安全合规。

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

Trigger Scenarios

用户请求推送或发布当前分支 存在已提交但未推送的更改

Install

npx skills add Terry-Mao/AICodingFlow --skill git-push -g -y
More Options

Non-standard path

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

Use without installing

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.

Version History

  • d3fef11 Current 2026-09-03 03:51

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

  • e53c5ac 2026-07-24 11:35

Same Skill Collection

.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-existing-code/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

Metadata

Files
0
Version
93c4bdd
Hash
ff6afe4d
Indexed
2026-07-24 11:35

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 04:48
浙ICP备14020137号-1