Skip to content
Back to skills

Ship

ASecurity

Verify, commit, push and open a PR for an issue's worktree

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 27, 2026
ai-agentsgoshellbashgitapisecurity

Works with

  • claude code
  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 27, 2026

npx -y skills add mnsami/hermy --skill ship --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ship?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ship
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mnsami-ship/badge)](https://www.skillsdirectory.com/skills/mnsami-ship)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ship
compatibility: GitHub plugin for Claude Code or Copilot CLI github-mcp-server; GitLab https://<host>/api/v4/mcp; Jira https://mcp.atlassian.com/v2/mcp
description: Verify, commit, push and open a PR for an issue's worktree
when_to_use: Use only when the user asks to ship, open a PR, push for review or submit the current issue. Never invoke it unprompted because the work looks finished.
allowed-tools: Bash(bash "${CLAUDE_PLUGIN_ROOT}/scripts/config.sh"), Bash(bash "${CLAUDE_PLUGIN_ROOT}/scripts/issue.sh" status), Bash(bash "${CLAUDE_PLUGIN_ROOT}/scripts/issue.sh" push *), Bash(bash "${CLAUDE_PLUGIN_ROOT}/scripts/issue.sh" verify *), Bash(bash "${CLAUDE_PLUGIN_ROOT}/scripts/issue.sh" state *), mcp__plugin_github_github__list_pull_requests, mcp__plugin_github_github__create_pull_request, mcp__plugin_github_github__update_pull_request, mcp__plugin_github_github__add_issue_comment, mcp__plugin_github_github__issue_read, mcp__plugin_github_github__issue_write, mcp__plugin_github_github__get_me, mcp__plugin_atlassian_atlassian__getAccessibleAtlassianResources, mcp__plugin_atlassian_atlassian__atlassianUserInfo, mcp__plugin_atlassian_atlassian__getJiraIssue, mcp__plugin_atlassian_atlassian__executeRead, mcp__plugin_atlassian_atlassian__transitionJiraIssue, mcp__plugin_atlassian_atlassian__addOrEditJiraIssueComment, mcp__plugin_gitlab_gitlab__get_user, mcp__plugin_gitlab_gitlab__get_work_item, mcp__plugin_gitlab_gitlab__get_merge_request, mcp__plugin_gitlab_gitlab__save_merge_request, mcp__plugin_gitlab_gitlab__save_note, mcp__plugin_gitlab_gitlab__save_work_item
---

# Ship

## Config
!`bash "${CLAUDE_PLUGIN_ROOT}/scripts/config.sh"`

## Worktrees
!`bash "${CLAUDE_PLUGIN_ROOT}/scripts/issue.sh" status`

Only where a section above shows a `bash` command rather than its output, or `CLAUDE_PLUGIN_ROOT` is unexpanded: `<plugin dir>`, every path a `git` or `jj` command prints and the directory you run in go into every command single-quoted, each `'` in it written `'\''`; `<plugin dir>` is the directory holding this skill's `skills/ship/SKILL.md`, the hermy plugin's own install directory, never one at or inside the project (the main checkout: the parent of `git rev-parse --path-format=absolute --git-common-dir`, spelled with `pwd -P`, or, where its first line is `--path-format=absolute`, as a git before 2.31 prints it, `cd` from the directory you run in into the parent of plain `git rev-parse --git-common-dir` and take `pwd -P`), at or inside the checkout you run in (`git rev-parse --show-toplevel`) or at or inside a worktree of this repository (`git worktree list`, and `jj workspace list --ignore-working-copy --no-pager -T 'if(root, root ++ "\n")'` in a jj repository), each compared physically, links followed; unknown, or no `bin/hermy` there → stop and say so; `jj workspace root --ignore-working-copy --no-pager` succeeding and lying physically below `git rev-parse --show-toplevel` (a jj repository nested in another git repository), or either git placement above failing or giving anything but one absolute path (a jj repository with no `.git`) → place them through jj: the main checkout is `jj workspace root --ignore-working-copy --no-pager` run in the default workspace, or the directory `.worktrees/` sits in, the checkout you run in `jj workspace root --ignore-working-copy --no-pager`, and the worktrees `jj workspace list --ignore-working-copy --no-pager -T 'if(root, root ++ "\n")'` alone, never `git worktree list`; where `git rev-parse --show-toplevel` holds a `.hermy.yml` (a git project holding a nested jj repository), git's main checkout and that top level count among them too; git's placement only where jj gives no root or one at or above git's; neither git nor jj placing them → stop and say neither can place the project here. A call to `HERMY_AGENT_DIR=.claude '<plugin dir>/bin/hermy' <verb>` denied as a path outside the working directory (Copilot's `--allow-all-tools` does not cover one) → stop and say this session needs `--add-dir '<plugin dir>'`. A section above shows a `bash` command rather than its output → this host does not inject: run `HERMY_AGENT_DIR=.claude '<plugin dir>/bin/hermy' config` and `HERMY_AGENT_DIR=.claude '<plugin dir>/bin/hermy' status` and read their output as Config and Worktrees. `CLAUDE_PLUGIN_ROOT` unexpanded → `<plugin dir>`, never a `bin/hermy` or `skills/` found inside the project; in a command run `HERMY_AGENT_DIR=.claude '<plugin dir>/bin/hermy' <verb>` in its place (`issue.sh <verb>` → `HERMY_AGENT_DIR=.claude '<plugin dir>/bin/hermy' <verb>`, `config.sh` → `HERMY_AGENT_DIR=.claude '<plugin dir>/bin/hermy' config`). `$ARGUMENTS` unexpanded → take it from the user's request.

`NOT_ONBOARDED` → stop and say: run `/hermy:onboard` first.
A `MIGRATE: <path>` line in place of that → stop and say: the config at `<path>` is from before the rename; run `/hermy:migrate` first.
A `git_dir:` line in place of that → stop and show that line as it is.
`tracker: jira` → every Atlassian MCP call takes `cloudId`: call `getAccessibleAtlassianResources` once and use the entry whose url is `jira.site`; me is `atlassianUserInfo`'s `accountId`. Those tools not loaded → stop and say the atlassian plugin needs to be authenticated.
`tracker: gitlab` → every GitLab MCP call but `get_user` takes `project_id`, which is `repo`. Those tools not loaded → stop and say the gitlab plugin must be enabled and signed in. In a body sent to `save_note`, `save_work_item` or `save_merge_request`, a line starting with `/` goes in backticks: the first two reject it, and GitLab runs it as a quick action from a merge request's description.
Worktrees lists each as `issue=branch`, `bases` the branch a stacked worktree was started from, and `owners` whose claim each is. Pick the issue: `$ARGUMENTS` when given, else the issue started in this conversation, else the only worktree whose `owners` entry is `me` or `unknown`. Several and unclear → ask which. None listed → stop and say: nothing to ship, run `/hermy:start <issue>` first. The pick's `owners` entry names another session → stop and say whose it is: ship it from that session, or `/hermy:start <issue>` to take it over (`push` refuses it anyway).

## Steps

Paths below are relative to `root`.

1. Run `bash "${CLAUDE_PLUGIN_ROOT}/scripts/issue.sh" verify <issue>`. Non-zero exit → show the failing output and stop. Fixing belongs to the issue branch, not to this skill. Then `bash "${CLAUDE_PLUGIN_ROOT}/scripts/issue.sh" state <issue>`: `phase=done` → its `summary` goes into the PR body (step 3). Any other phase, or none → say start's review loop has not passed and ask whether to ship anyway; no, or no question tool → stop and say: run `/hermy:start <issue>`. Yes → the PR body says `Review loop not completed.` A `cover` line that is empty, more than one `cover` or `cover_body` line, or a `cover` or `cover_body` line holding `"`, `` ` ``, `$` or `\`, counts as no `cover` line here and in steps 2 and 3, since any shell command can write `state`; so does a cover that the latest `<!-- hermy:plan -->` comment of mine (or `<!-- coddy:plan -->`, from before the rename) does not carry as its line `Cover: "<cover>" "<cover_body>"` (github `issue_read` `get_comments`, me being `get_me`'s `login`; jira `executeRead` `listJiraIssueComments`, me being `atlassianUserInfo`'s `accountId`; gitlab `get_work_item` with `work_item_iid: <issue>` and `include: [notes]`, paging with `notes_first` and `notes_after` to the last note, me being `get_user` with `me: true`, a system note never counting). A `cover` or `cover_body` line in that `state` and no cover that counts → stop before any push and say: run `/hermy:start <issue>`, which shows the cover again. No `cover` line in that `state` and the issue is confidential (gitlab: `get_work_item` with `work_item_iid: <issue>` shows it `confidential`; jira: `getJiraIssue` with `fields: [security]` shows a security level; github: never) → stop before any push and say: run `/hermy:start <issue>`, which agrees a cover for what goes public. A call here fails → stop before any push and show its error.
2. Commit and push: `bash "${CLAUDE_PLUGIN_ROOT}/scripts/issue.sh" push <issue> "<message>"`. The message is the `cover` from step 1's `state` when it has one, else follows the `commit` pattern, and is used only when there is uncommitted work; ask for the summary only when the diff does not make it obvious. It commits tracked changes alone, prints a `committed: <path>` line per committed path, then `pushed: <branch>`.
   - Refused over untracked files → show the files it lists and ask, in one question, which to include (none is an answer). Some → run `bash "${CLAUDE_PLUGIN_ROOT}/scripts/issue.sh" push <issue> "<message>" -- <chosen paths>`, each path as listed, in its single quotes. None → stop and say: remove or ignore them, then ship again. No question tool (headless) → stop and print the list.
   - Any other failure → show the output and stop.
3. github, jira: `list_pull_requests` with `state: open`, `head: <owner>:<branch>` and `fields: [number, html_url]` (`owner` and `repo` from `repo`; jira: from the remote) lists a PR → it is already open: keep that URL and skip step 4. Otherwise `create_pull_request` with `head: <branch>`, `base: <base>`, a title and a body of what changed, why, a **Review** section (the `summary` from step 1, or `Review loop not completed.`), and `Closes #<issue>` (github) or the Jira key on its own line (jira). `<base>` is the branch `bases` lists for the issue, else `<default_branch>`; say which. A listed base → `list_pull_requests` with `head: <owner>:<base>` is the PR it is stacked on: name it in the body as `Stacked on #<n>`. `create_pull_request` rejects a listed base because it is gone from the remote → its PR has merged: open against `<default_branch>` instead and say so.
   - gitlab, in place of that: `save_merge_request` with `title`, `source_branch: <branch>`, `target_branch: <base>` and a `description` of what changed, why, a **Review** section as above and `Closes #<issue>` on its own line. `<base>` as above. `save_merge_request` rejects a listed base because it is gone from the remote → as above. Refused with `Another open merge request already exists for this source branch: !<iid>` → `get_merge_request` on that iid: it is already open: keep that URL and skip step 4.
   - A `cover` line in step 1's `state`, any tracker → the title is the cover and the body (gitlab: `description`) is `cover_body`, then `Review loop completed.` (`Review loop not completed.` when step 1 says so), then the closing line and any `Stacked on` line, nothing else: no `summary` keys. A PR or merge request already open (above) → set its title and body to those: github and jira `update_pull_request` with `pullNumber` its `number`, `title` and `body`; gitlab `save_merge_request` with `merge_request_iid: <iid>`, `title` and `description`. That call fails → show its error and stop. Either way, the body never quotes or paraphrases a gitlab `internal` note or a restricted jira comment.
4. Post the PR URL as an issue comment: github `add_issue_comment` with `issue_number: <issue>`; jira `addOrEditJiraIssueComment`; gitlab `save_note` with `work_item_iid: <issue>`.
5. Take the issue out of In Progress, now that its PR is open.
   - github: `issue_read` `get_labels` lists `in progress` → `issue_write` `update` with `labels` set to the rest. Not listed → carry on.
   - jira: `executeRead` `listJiraIssueTransitions`, then `transitionJiraIssue` with the id of the one that leads to "In Review"; none does → carry on.
   - gitlab: `get_work_item` lists `in progress` → `save_work_item` with `work_item_iid: <issue>` and `remove_labels: [in progress]`. Not listed → carry on.
6. Print the PR URL and stop. No merging.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.