git-publish-guard

Community

Enforce explicit remotes for safe git pushes.

Authormuddyrain
Version1.0.0
Installs0

System Documentation

What problem does it solve?

在 Valley MAS 中约束 Git 发布动作,要求 push 时显式指定 remote,默认推送到 origin。

Core Features & Use Cases

  • 避免把分支推错远端,确保发布动作可审计、可复现。
  • 首次推送新分支时优先使用 git push --set-upstream origin <branch>,后续推送优先 git push origin <branch>
  • 如用户明确要求推送到非 origin 的远端,需在最终说明中明确标注所使用的 remote,并在需要时遵循该要求。

Quick Start

在执行 git push 时显式指定 remote,默认使用 origin,然后记录推送的 remote 和分支信息。

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: git-publish-guard
Download link: https://github.com/muddyrain/valley-mas/archive/main.zip#git-publish-guard

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.