Skip to content
Back to skills

Yad Ship

ASecurity

Commit the staged task and open its PR/MR in one step. Never merges. Use when the user says "ship this task", "commit and open the PR", or "commit and raise the MR".

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 14, 2026
ai-agentsgoshellbashgit

Works with

  • cursor
  • cli

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned November 25, 2026

npx -y skills add abdelrahmannasr/yadflow --skill yad-ship --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Yad Ship?

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

Security grade badge for Yad Ship
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/abdelrahmannasr-yad-ship/badge)](https://www.skillsdirectory.com/skills/abdelrahmannasr-yad-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: yad-ship
description: 'Commit the staged task and open its PR/MR in one step. Never merges. Use when the user says "ship this task", "commit and open the PR", or "commit and raise the MR".'
---

# SDLC — Commit + Open PR/MR (Build helper)

<!-- generated: yad-cli — from cli/skill-yad-cli.mjs by scripts/skill-yad-cli.mjs; do not edit by hand -->

**This skill needs the `yad` command.** Before its first `yad …` command, run `command -v yad` (in PowerShell, `(Get-Command yad -ErrorAction SilentlyContinue).Source`). When it prints nothing, the yadflow CLI is not installed on this machine: stop there, and tell the person:

- Install it with `npm install -g yadflow@latest`, or run each command as `npx -y yadflow@4 …` in place of `yad …`.
- It is needed because the CLI is what enforces the approvals. Without it, a step could only ask you to wait; it could not check that a person approved.

Go on only when that check prints a path, or when the person chooses `npx -y yadflow@4`. A command this skill already writes as `npx -y yadflow@4 …` runs without the install.

<!-- end: yad-cli -->

**Goal:** Do the two routine Build hand-actions for ONE atomic task in a single step — **commit by
convention, then open the task PR/MR** — so an implemented diff becomes a reviewable PR/MR without two
separate invocations. It is a thin wrapper over `yad-commit` and `yad-open-pr`; it holds no logic of
its own and **never merges**. The engineer review + merge are Step E (`yad-engineer-review`).

## Conventions

- Run **inside the code repo** under `{project-root}/demo-repos/<repo>/` (or `--repo <name>`), on the
  task branch with the atomic change **already staged** (`git add`).
- Inherits every convention of the two steps it wraps:
  - Commit: subject `<type>: <lowercase imperative, no trailing period>`, fixed trailer order
    `Task → Contract-Change → Co-Authored-By` (the footer **off by default** — added only via an explicit
    `--ai`), the ≤3-file atomic guard (`../yad-commit/SKILL.md`).
  - PR/MR: pushed branch, the committed template prefilled, title defaulting to the commit subject,
    the assignee set and no reviewers requested, risk routing (`../yad-open-pr/SKILL.md`).
- **Order matters:** the PR/MR is opened **only if the commit lands**. A failed commit, a tripped
  atomic guard, or `--dry-run` stops the step before anything is pushed.
- **Stage-aware on the Product** (via `yad-open-pr`): on a `review/EP-*` branch `ship` opens the
  Shape **artifact-review** PR (delegating to `yad gate open` — `--title` is ignored); on any
  other Product branch it opens the **code-task** PR from the bundled code-task template. In a code repo
  it is unchanged.

## Inputs

- `type` / `message` — the commit type + subject (required), `--type <t> -m "<subject>"`.
- `ai`              — co-author footer: `claude|copilot|cursor|coderabbit|none` (default `none` = **no
  footer**; the `Co-Authored-By` trailer appears only when this flag names a tool).
- `task`           — Task trailer (optional; derived from the branch when omitted).
- `contractChange` — flag; marks the contract surface touched (commit trailer + a raised approver count on the PR).
- `repo` / `risk` / `platform` / `title` — PR/MR options (see `yad-open-pr`).
- `base`           — override the PR/MR base. The default is the repo's own default branch, resolved
  by the full chain in **Base branch** (`yad-open-pr`) — the canonical description, including the
  Product rung — never a hardcoded `main`. A non-default base loses the AI first pass; `ship` warns and
  still opens.

## On Activation

### Step 1 — Confirm the staged atomic change
Confirm you are on the task branch (not the default branch) and the atomic change is staged within its
file boundary. Preview the commit with `--dry-run` if unsure.

### Step 2 — Commit + open in one step
Run from the repo root:
```
yad ship --type <type> -m "<subject>" [--ai <id>] [--task <id>] [--contract-change] \
         [--repo <name>] [--risk <level>] [--title "<subject>"]
```
The CLI runs `yad commit` and, only if it succeeds, `yad open-pr` — committing the change, pushing the
branch, and opening the PR/MR with the template prefilled and the assignee set. No reviewers are
requested: it prints `no reviewers were requested — ask them on the PR itself`.

### Step 3 — Route + stop (no merge)
The open step prints how many approvers the PR asks for — the body's level and the base branch's risk
map, the larger step winning (E66). When it asks for more than one, `bash checks/risk-route.sh "<pr body>"`
lists the touched domains to ask; ask reviewers on the PR/MR itself. It also prints a reviewer
**suggestion** (E68): who has committed in the touched folders in the last 30 days, and what CODEOWNERS
lists — a hint about who may know the code, never a request and never a list of owners. Report the commit + the PR/MR URL. The PR now
runs the check gates (Step C); the engineer review and merge are Step E (`yad-engineer-review`).

## Hard rules

- **One staged atomic task = one commit = one PR/MR.** Never bundle; never open from the default branch.
- **The PR targets the repo's default branch** unless `--base` says otherwise; never assume `main`.
- **No AI footer by default.** The wrapped commit writes a `Co-Authored-By` trailer ONLY when `--ai <id>`
  is explicitly passed; never add it on the AI's own initiative.
- **No PR without a landed commit.** A failed/`--dry-run` commit stops the step before pushing.
- **High risk raises the approver count** — the same count as the gate.
- **Shipping here never merges.** The human owns the merge in `yad-engineer-review`.

## Reference
- The two steps this wraps: `../yad-commit/SKILL.md` and `../yad-open-pr/SKILL.md`.
- The gates the PR must pass: `../yad-checks/references/check-gates.md`.
- The engineer review + merge that follow: `../yad-engineer-review/SKILL.md`.

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.