merge-protocol
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "merge-protocol" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b5fe30f1f25384aaa085aaf66d5db9e7d25e34cc42ad78751e425035b20a0193. Verify the upstream source and version against https://github.com/NoobyGains/godmode before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Use this after implementation is complete and tests pass when a decision on merging code is required—provide structured integration paths such as local merge, open a pull request, defer, or abandon for selection.
Introduction source: third_party · NoobyGains · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Use when implementation on a branch is finished and reviewed and the work needs to land, be proposed as a pull request, be parked for later, or be thrown away.
- Audience
- Required:** `godmode:delegated-execution` or `godmode:inline-execution` finished and the final review is clean. `godmode:parallel-execution` or `godmode:team-orchestration` integrated their results. The user says "merge it", "ship it", "open a PR", "drop this branch". Skip:** Work is unfinished or the final review has open Critical or Important findings: go back to the executing skill. A deploy or release: that is the project's own release process, after the merge.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: merge-protocol
description: "Use when implementation on a branch is finished and reviewed and the work needs to land, be proposed as a pull request, be parked for later, or be thrown away."Merge Protocol
The last step of a run decides what happens to the branch: merge it locally, open a pull request, keep it as it is, or abandon it. Each path is easy to get slightly wrong (merging into the wrong base, deleting a worktree that held the only copy of a file, force-pushing over someone's commits), and most of those mistakes are expensive to undo.
Core principle: prove the suite is green on the exact tree you are about to land, let the user choose the path, execute it exactly, and tear down only what this run created. Integration is the user's decision; your job is to make each option safe.
The Prime Directive
NO LANDING ON A RED SUITE, NO ABANDONING WITHOUT THE TYPED WORD
No exceptions. No workarounds. No shortcuts.
When to Use
Required:
godmode:delegated-executionorgodmode:inline-executionfinished and the final review is clean.godmode:parallel-executionorgodmode:team-orchestrationintegrated their results.- The user says "merge it", "ship it", "open a PR", "drop this branch".
Skip:
- Work is unfinished or the final review has open Critical or Important findings: go back to the executing skill.
- A deploy or release: that is the project's own release process, after the merge.
The Protocol
1. Validate the suite
Run the project's full test command in the worktree, plus its other machine checks if it has them (lint, type check, build). Read the output.
- Red: stop. Report the failures with their output. The menu comes after a green suite.
- Green: record the command and counts.
Also check git status --porcelain. Uncommitted changes are either committed now (they belong to the work) or reported to the user (they do not).
2. Capture the environment
git_dir=$(cd "$(git rev-parse --git-dir)" && pwd -P)
git_common=$(cd "$(git rev-parse --git-common-dir)" && pwd -P)
worktree_path=$(git rev-parse --show-toplevel) # capture now; later steps change directory
branch=$(git branch --show-current)
| State | Paths offered | Teardown |
|---|---|---|
Normal checkout (git_dir equals git_common) |
all four | none needed |
| Linked worktree on a named branch | all four | only if this run created it |
| Linked worktree, detached HEAD | PR (push as a new branch), keep, abandon | the host manages it; leave it |
3. Identify the trunk
The trunk is the branch this work forked from: named in the plan, the ledger, the branch's upstream, or git merge-base. If it is not certain, ask one question: "This branch split from <best guess>, correct?" Merging into the wrong base is expensive to undo.
4. Present the paths
Present exactly this, with the real names filled in:
The work on <branch> is complete. Suite: <command> -> <counts>.
1. Merge into <trunk> locally
2. Push <branch> and open a pull request against <trunk>
3. Keep the branch as it is for later
4. Abandon the work (deletes the branch and its commits)
Which path?
Wait for the answer. If the run made rulings or left deferred minors, list them above the menu so the user decides with them in view.
5. Execute the chosen path
Path 1: Merge locally
main_root=$(git -C "$git_common/.." rev-parse --show-toplevel)
cd "$main_root"
git switch "$trunk"
git pull --ff-only # if the trunk has a remote; stop if it cannot fast-forward
git merge --no-ff "$branch"
<full test command>
If the merged result is red, stop. The merge is local and nothing is pushed: leave the branch and worktree in place, report, and investigate. If green: tear down (step 6), then git branch -d "$branch". Do not push the trunk unless the user asked for that too.
Path 2: Pull request
git push -u origin "$branch"
# detached HEAD: git push origin HEAD:refs/heads/<new-branch>
Open the pull request against the trunk with the forge's command-line tool if one is installed, or the creation link the push prints. Follow the repository's pull-request template. The body says what changed, how it was verified (commands and counts), the rulings made, and the deferred minors. Report the URL. Keep the worktree: review feedback gets fixed there.
Path 3: Keep as it is
Report: Keeping <branch>. Worktree at <path>. Resume with the ledger at <ledger path>. Change nothing.
Path 4: Abandon
Show exactly what will be lost and require the typed word:
This permanently deletes:
- branch <branch>
- commits: <git log --oneline trunk..branch>
- worktree at <path>, including uncommitted files: <list or "none">
Type "abandon" to confirm.
Only the exact word authorises it. "Yes", "sure" or "get rid of it" do not; ask again. On confirmation: change to the main root, tear down (step 6), then git branch -D "$branch". If the branch was pushed, ask separately before deleting the remote branch.
6. Tear down
Runs after path 1 and confirmed abandonment only.
- Normal checkout: nothing to remove.
- Worktree under
.worktrees/orworktrees/that this run created:git worktree remove "$worktree_path", thengit worktree prune. - Harness-managed worktree: leave it to the harness; use its exit action if it has one.
- Removal refused because of modified or untracked files: those files exist nowhere else. Never force it on your own. Show
git -C "$worktree_path" status --porcelain -ualland offer: commit them to the branch, move them to the main checkout, or delete them. Act on the user's choice.
Delete the run's plan workspace (.godmode/runs/<plan-slug>/) after the rulings have been reported.
7. Report
Path: <1-4> Branch: <name> Trunk: <name>
Suite: <command> -> <counts> (on the merged tree for path 1)
Result: <merge commit | PR URL | kept at path | deleted>
Teardown: <what was removed, what was left and why>
Cognitive Traps
| Rationalisation | Truth |
|---|---|
| "Tests passed earlier in the session" | A green run proves only the tree it ran on. Run it on this one. |
| "They obviously want it merged" | Integration is the user's call. Present the paths and wait. |
| "The trunk is obviously main" | Confirm the fork point. Wrong-base merges are costly to unwind. |
| "'Get rid of it' is confirmation enough" | Only the typed word authorises deletion. |
| "Removal refused, force it to finish cleanup" | Refusal means files exist only there. Forcing destroys them. Ask. |
| "Push rejected, force-push fixes it" | The remote moved. Investigate; force-push only when the user explicitly asks. |
| "The PR is open, the worktree is clutter" | Review fixes happen in that worktree. Keep it until the work lands. |
Guardrails
Never:
- Present the paths before a green suite on the current tree.
- Merge into a trunk you have not confirmed.
- Abandon without the exact typed word.
- Force-push, force-delete or force-remove on your own initiative.
- Remove a worktree this run did not create.
- Push the trunk unless the user asked.
Always:
- Capture the worktree path before changing directory.
- Run the suite again on the merged result for path 1.
- Put verification evidence, rulings and deferred minors in the PR body.
- Report exactly what was removed and what was left.
Connections
godmode:delegated-execution,godmode:inline-execution: hand off here after their final review.godmode:completion-gate: the evidence rule behind "suite green".godmode:cross-model-review: run before this skill when the user wants a second model family to review first.godmode:workspace-isolation: created the worktree this skill tears down.godmode:review-response: handling pull-request feedback after path 2.
Version history
-
v2.1.2
GitHub ↗
Original release notes
### Changed - The repository root holds only what a harness looks for there. The version list moved from `.version-bump.json` to `scripts/version-files.json`; the OpenCode entry point is `.opencode/plugins/godmode.js` directly (`package.json` `main` and `exports`), so the root `index.js` shim is gone. ### Removed - Gemini CLI support (`gemini-extension.json`, `GEMINI.md`, the Gemini tool reference). Google retired Gemini CLI for individual users on 18 June 2026 and moved extensions to Antigravity plugins; GodMode's Antigravity plugin is that route. The manifest had never been verified on a live install.
-
v2.1.1
GitHub ↗
Original release notes
The one-round Codex review of the 2.1.0 diff (`docs/verification/codex-review-2.1.0.md`) found two validator bugs and five wording problems; all are fixed here. ### Fixed - Validator: the 20,000-byte skill cap and the 8,000-byte protocol position are measured in UTF-8 bytes, not UTF-16 characters, and a skill without a `## The Protocol` section now fails instead of slipping past the position check. - `intent-discovery`: the one-question-per-message guardrail names the builder-check round as its single exception, and the flow graph sends a small change straight to approval, as step 9 says. - `tests/acceptance/claude-code-stop-check.sh`: a refusal that quotes the forbidden sentence at the end of the message no longer counts as making the claim. - Changelog and reference wording: an Interfaces block is required only when another task consumes or produces the names; the reviewer agent's tool list is `Read, Grep, Glob, Bash` with writes forbidden by its prose, not "read-only". See the 2.1.0 notes for the features this patch completes.
-
v2.1.0
GitHub ↗
Original release notes
Seven months of Claude Code changes and a pass over nine peer projects, read from their source (research in `docs/research/2026-10-25-claude-code-and-peers-2-1.md`). The theme: rules that must hold every time move from prose into mechanisms the harness enforces, and plans and designs lean on what superpowers 7.0.1 learned the hard way. ### Added - `completion-gate` arms a one-shot stop check on Claude Code: a prompt-type `Stop` hook declared in the skill's frontmatter (`once: true`) re-reads the final message and sends an unsupported done/fixed/passing claim back for evidence, then removes itself. Verified end to end on Claude Code 2.1.310 (`tests/acceptance/claude-code-stop-check.sh`, `docs/verification/claude-code-stop-check-2026-10-25.md`). Other harnesses ignore the field. - `bin/godmode`: a plan-workspace helper (`workspace`, `brief`, `review-package`, `ledger`, `status`) on the shell PATH where the harness adds a plugin's `bin/` (Claude Code, Antigravity); `delegated-execution` and `inline-execution` prefer it and keep the plain-shell commands as the fallback. Tested by `tests/test-bin.sh`. - `task-planning`: every task carries an Interfaces block (what it consumes from earlier tasks, what later tasks rely on, exact signatures); the plan header gains a Review Focus section (the five input classes the design implies but no task tests); the self-review checks both. - `intent-discovery`: a builder-check prompt as a reference file, dispatched for projects only; the first message echoes a detailed request back with what the project survey found and asks the one open question; the offer to skip the questions appears only when the skill started on its own. - `test-first`: for a bug fix the reproducing test is its own commit before the fix, so the red evidence survives in history. - `fault-diagnosis` hands a verified non-obvious root cause to `knowledge-capture`. - Validator: a 20,000-byte cap per skill and a rule that `## The Protocol` sits within the first 8,000 bytes, because Claude Code re-attaches only the first 5,000 tokens of each invoked skill after compaction; `writing-skills` records both. - Plugin manifest fields `displayName`, `documentationUrl` and `supportUrl`; marketplace `tags`. ### Changed - `task-planning` writes decisions, not transcripts: a test step carries the test as code with the design's values; a code step carries the exact signature, file and pinned values, and the builder writes the body unless the signature and tests do not determine it. A plan several times longer than its design is flagged by the self-review. - `code-review`: a finding that cannot quote the line it is about is at most Minor, and reviewer agreement does not raise a severity. The shipped `code-reviewer` agent is read-only by its tool list. - Codex manifest (`.codex-plugin/plugin.json`) keeps its metadata under `extensions.com.openai` as the Codex plugin docs specify, names `doctor` as the onboarding skill, and drops the empty `hooks` key (plugins with lifecycle hooks are not eligible for the public directory). Reinstall verified on Codex CLI 0.163. - `model-routing`: a scoped re-review runs on a mid-tier model at low effort, not the cheapest tier. - Acceptance scripts pre-allow the Skill tool: a skill that declares hooks asks for permission in the default permission mode, which a headless run auto-denies. Interactive users answer the prompt once. ### Fixed - `tests/test-bin.sh` no longer fails under `pipefail` when `grep -q` closes the pipe early. Install or update: `/plugin install godmode --marketplace NoobyGains/godmode` (Claude Code), `agy plugin install https://github.com/NoobyGains/godmode` (Antigravity), `codex plugin marketplace add NoobyGains/godmode` then `codex plugin add godmode@godmode` (Codex).
-
v2.0.0
GitHub ↗
Original release notes
Seven months after 1.0, a ground-up rebuild. - The session-start hook that makes skills trigger never actually ran in 1.0 (single-quoted plugin root plus a missing executable bit). It does now, on every OS, with tests on Linux, macOS and Windows. - 33 skills (was 36), rewritten so the bodies describe actions and a per-harness reference maps them to real tools. Three new ones: `grounding` (verify facts that can change against current sources, never memory), `model-routing` (cheapest capable model per seat, named on every dispatch) and `cross-model-review` (a second model family reviews before landing). `delegated-execution` gained a ledger that survives context loss, rulings instead of stalls, and a bounded fix loop. - Native manifests for Claude Code, Antigravity, Codex, Cursor, Gemini CLI and OpenCode from one repository. Verified live on Claude Code 2.1.310, Antigravity CLI 1.4.7 and Codex CLI 0.163. - A validator and CI that fail on the mistakes that broke 1.0, a `doctor` skill, and a `claude plugin eval` suite with published with/without numbers (mean 0.83 vs 0.63). - New brand, README and animated demos. Install ``` # Claude Code /plugin install godmode --marketplace NoobyGains/godmode # Antigravity agy plugin install https://github.com/NoobyGains/godmode # Codex codex plugin marketplace add NoobyGains/godmode codex plugin add godmode@godmode ``` Full notes in CHANGELOG.md. Thanks to @ivnad95, @g7trader and @AdversaLLC for diagnosing the 1.0 hook bug, and to @urbabby for the orchestrator idea.
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 直接解决代码合并这一明确核心任务痛点
- 提供结构化集成路径,显著提升开发流程效率
- 覆盖本地合并、拉取请求、延期或放弃四种完整场景
Highlights
- 触发词精准完整,覆盖多种变体
- 边界清晰,明确区分Required和Skip场景
Highlights
- Phase/步骤清晰,有出口条件
- 含端到端示例,frontmatter完整
- 文档结构良好,易于理解和执行
Highlights
- 工具来源明确,参数正确
- 覆盖主要异常,不可逆操作有确认机制
- 严格的防护措施和认知陷阱提醒
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.