Skip to main content
在 Manus 中运行任何 Skill
一键导入

git-discipline

星标6
分支0
更新时间2026年7月15日 12:25

Run BEFORE any git write (commit, push, merge) and before a stale checkout or branch read: exists? landed? — in this multi-agent repo the filesystem answers for someone else's branch, not yours, so `git show origin/main:<path>` is the only honest answer to "does X exist / did Y land". (Trigger note: this index derives keywords from the FIRST 12 non-stopword tokens of this description — `_triggers_from_text(limit=12)` — so the read-side terms above MUST stay in this opening sentence; when they weren't, this skill could only fire on writes while the trap fires on a READ, and it took three victims in one hour.) The full write surface still applies: commit, push, branch, switch, rebase, merge, open/close/merge a PR, re-trigger CI, "unblock #NNN", or diagnose a failing CI check, a "superseded/divergent" branch, or a "CI seems stuck" / green-but-won't-merge PR (decode mergeable_state FIRST — see §3a), a DIRTY/CONFLICTING mergeable_state stuck on a stale GitHub cache even when merge-base --is-ancestor + merge-tree p

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly