Skip to content
Back to skills

Ship Ticket

ASecurity

Ship one <TRACKER> ticket end to end: check its claim, build the whole fix on every platform it touches, then run the tests once, one /code-review, one hand test, and open a pull request to <BASE-BRANCH> with at most two review-bot rounds. Use for /ship-ticket, a named ticket, or the next one. Never merges. Not for releases or designs (use ship-design).

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 24, 2026
ai-agentsgocode-reviewgitsecurity

Works with

  • terminal

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add mohammed-salah-zidane/claude-code-harness-kit --skill ship-ticket --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ship Ticket?

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

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

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-ticket
description: "Ship one <TRACKER> ticket end to end: check its claim, build the whole fix on every platform it touches, then run the tests once, one /code-review, one hand test, and open a pull request to <BASE-BRANCH> with at most two review-bot rounds. Use for /ship-ticket, a named ticket, or the next one. Never merges. Not for releases or designs (use ship-design)."
argument-hint: "<TICKET-KEY> | next [--plan] [--go] [--resume]"
---

# Ship a ticket

One ticket goes in; one proven pull request per repository it changes comes out, each able to stand alone. Everything found on the way is fixed inside this ticket. Running this skill is the go to branch, commit, push and open pull requests for this ticket, never to merge, force-push or touch another session's files.

## Where things live

The skill is installed once, in `~/.claude/skills/ship-ticket/` (this file, `references/templates.md`, `scripts/`), and serves every project. Each project keeps its own folder, `.claude/ship-ticket/`:

- `profile.md`: the values below.
- `traps.md`, `self-check.md`, `timings.md`: that project's lessons and timings.
- `runs/<TICKET-KEY>/`: the log, output and screenshots of one ticket (keep `runs/` out of git).

On the first run in a project, create the folder: propose every profile value from the repository (the remote's default branch, the build and test commands in the README or the Makefile, the tracker named in the commit history), ask the owner to confirm them in one message, and copy `references/traps.md` and `references/self-check.md` there as starting points. A project that needs more than the profile can say (its own gates, devices, release rules) writes those in its CLAUDE.md, which outranks this skill.

## The project profile (`.claude/ship-ticket/profile.md`)

- `<TRACKER>`: Jira, Linear or GitHub Issues, with access, assignee and state names.
- `<TICKET-KEY>`: the key format, such as `ABC-123`.
- `<BASE-BRANCH>`: the branch pull requests target.
- `<PLATFORMS>`: the apps that ship together, and their repositories.
- `<BUILD-COMMAND>`: the debug build per platform.
- `<TEST-COMMAND>`: module tests, full suite, lint and guard scripts, per platform.
- `<EVIDENCE-FOLDER>`: the untracked folder per ticket for log, output and screenshots; `.claude/ship-ticket/runs/<TICKET-KEY>/` unless the project names another.
- `<LANGUAGES>`: the languages the product ships in.
- `<USAGE-DATA>`: where usage is counted (analytics, crashes, support).
- `<REVIEW-BOT>`: the automated pull-request reviewer, or "none".
- `<SIZE-MODELS>`: the model at home on sizes s, m and l.

## The flow

Check the ticket, build all of it, then run each check once, in this order:

1. Verdict from reading the code (phase 3). No test runs before phase 6.
2. Build the whole change on every platform, tests written with the code, nothing run (phase 5). The hand-test case list is written here too.
3. Tests once: new, module and full suites, static checks (phase 6). The suites run in the background.
4. One `/code-review` at `high` of the whole diff, started while the suites run, and its fixes (phase 7).
5. One hand test, after the review: one `tester` per platform, all at the same time (phase 8).
6. The pull request, then the review bot, two rounds at most (phase 9).

**Use the waits.** Each check still runs once, on the same code; nothing sits idle:

- When one platform's code is complete, compile it in the background while you write the next.
- When everything compiles and the new tests pass, start the full suites in the background, then call the review in the same step: it reads code and runs nothing.
- Edit nothing in a tree while its build or suite still runs. Fix the suites' failures and the review's findings in one pass, and run their test classes once, together.
- While those run, install the builds and get the devices ready, so the testers start the moment the fixes are green.
- Request the review bot the moment the pull request opens.

**Re-checking a fix.** A fix made at step 3, 4, 5 or 6 gets the one check that proves it, never the whole set again:

| The fix | Its one check |
|---|---|
| Made at step 3 or 4 (a red test, a review finding) | Its tests, and its scenario added to the hand test's case list |
| Made at step 5 or 6 (after the hand test) | Its scenario on the device if a person can see it; otherwise the test classes that cover it |

No fix is code-reviewed again, whatever it touches: the hand test checks the fixes in place of another review. So every review fix needs a hand-test case that reaches it; for a fix no person can reach, write in the case list which tests cover it. Log each re-check: the fix, the check chosen, the result. Merging, on the owner's word, adds one full suite on the merged tree.

**Re-checks without repeats.** A scenario that passed on code that did not change is never run again:

- Finish, then fix. A tester finishes its whole list; the failures of every platform are fixed in one pass, built once, and installed once over the installed app, so sign-in and data stay.
- A logic mistake seen on a device first gets a unit test that reproduces it; the device then confirms it once.
- The re-check run holds the failed cases and the cases whose "Touches" column names something the fix changed. Nothing else.
- Send it to the same tester (`SendMessage`) while it is fresh; a new tester gets the earlier result table.
- A second re-check round on a platform gets a line in the log saying what the first missed.
- The review bot's fixes that a person can see are checked on the device once, together, after its last round; a round-1 fix does not get a build, an install and a tester run of its own.

## Rules

1. After a compaction only the start of this file is still in context, so read it again from the phase you are on.
2. Keep a log at `<EVIDENCE-FOLDER>/log.md` (layout in `references/templates.md`). After each phase, tick it with the time, add one line of evidence and rewrite "Next step". On resume, read "Next step" and the phase list, not the whole log. Keep it short: long output goes to files beside it.
3. Claim only what you ran in this session and read the result of; otherwise write "not run" and why. The hand test is the exception: it always runs.
4. Work inline by default. The hand test goes to `tester` agents, one per platform, all at the same time. A ticket that changes two platforms may give the second one to one `builder` (phase 5). For a ticket with three or more separable parts, propose a `/graph` run to the owner.
5. No new tickets. A bug, a red test, dead code or a stale comment met on the way is fixed in this ticket and listed in the pull request. A product question goes to the owner.
6. Advisor: on the plan, when a fix has failed twice, and before opening the pull request. A lead below the ticket's size adds one call when the build is complete, before the suites.
7. Comment on the ticket at start, verdict and plan, pull request opened, and stop.
8. When a stop condition fires (the list follows these rules), stop and report.
9. Add what a run teaches to the project's `traps.md`, one heading per lesson, in the same session. A class of mistake that a review or a hand test caught, and a check while writing would have caught, gets one line in the project's `self-check.md`. A script a later ticket would use again goes into `scripts/`, because the evidence folder is deleted at clean-up.
10. Spend few steps. Send independent reads and searches together in one step: every step re-reads the whole conversation.
11. Never wait for a person while other work remains. Write the question in the log, carry on with every part that does not depend on the answer, and ask once, at the end of the phase: every open question in one message, each with the answer you recommend. This never passes a stop condition, a plan-mode go or a copy approval. Find what needs a person before it blocks an agent: a locked device, a store account, a quota. A question whose answer changes what a person sees is asked at the plan, with your recommended answer built; answers that arrive after the pull request are built together, in one follow-up round with one device re-check.
12. Measure the run. At the end run `scripts/ship-metrics.py <TICKET-KEY>` (its first lines say how) and put its first three lines under "Timing" in the log and in the project's `timings.md`. Every agent brief names the ticket key in its first lines, so the script counts the run for the ticket.

## Stop conditions

Stop, log the reason, comment on the ticket and tell the user when:

- a phase 1 gate fails, the verdict ends the run, or plan mode has no go;
- the fix needs a product decision, unapproved copy or a missing design;
- it would take something from a paying user, change behaviour beyond the ticket, or alter a stored shape outside the plan;
- phase 6 is still red after two rounds of fixes, or the hand test fails with no clear fix;
- a command is destructive or touches `<BASE-BRANCH>`, a release branch or another session's files;
- the scope is unclear.

## 1. Ticket and gates

Do: take the given key, or with `next` the first open ticket in the board's own order. Read it with its labels, links and comments; comments win. Stop on a decision-needed label, an open blocker, someone else's work, or an epic. Size it, set its mode, create the log, move it to In Progress, assign it and post "Work started".
Proof: key, size and mode.
Why: a blocked, undecided or taken ticket wastes a run.

## 2. Context

Do: fetch `<BASE-BRANCH>` and read there `CLAUDE.md` and the matching rules files, the code you will change with its callers and tests, the same behaviour on the other platforms in `<PLATFORMS>`, and the headings of the project's `traps.md`, then the notes for this area.
Proof: the files read.
Why: the rules outrank the ticket, and the platform that already behaves correctly is the contract.

## 3. Verdict, before any change

Check the ticket's claim first. Answer these in the log, for every platform:

1. Can a real person reach it? Trace the steps from launch to the broken line and what guards them; "on a new device" has to match how a new device starts.
2. Does something already prevent it? List every caller and every writer of the data first.
3. Does the ask fit the product's rules, the other platforms and itself?
4. How many users does it touch? Count the path's events in `<USAGE-DATA>` only when the verdict or the priority depends on it, never personal data. Otherwise estimate from how often the path runs, and say so.

Reject only with proof: an unreachable path, a test or code that disproves the claim, or a broken rule. Never ship a ticket only because it exists.

| Verdict | Then |
|---|---|
| Confirmed | Continue |
| Code moved | Note where, continue |
| Partly true or rarer | Comment, correct text and priority, continue with what holds |
| Already fixed | Comment, In Review for the owner, stop |
| Rejected | Comment the traced path, Rejected, stop |
| Needs a decision | Comment the options, label decision-needed, To Do, stop |

Proof: the traced path with `file:line`. A bug's test is written in phase 5 and must assert the behaviour the ticket describes, so that it would fail on today's code.
Why: tickets written from reading code are often wrong, and fixing a bug nobody hits still costs a review and a risk.

## 4. Plan

Do: write the commits in order, the tests, each platform's change, the shared values touched (copy, stored fields, analytics names, ids, numbers), each acceptance criterion with its test and hand-test scenario, and what is out of scope. In plan mode, post the plan and stop; on "go" or `--go`, build exactly that. A ticket with several independent parts: ask the owner whether it ships as one pull request or one part per run. Cut `<TICKET-KEY>-<slug>` from the remote `<BASE-BRANCH>` with no upstream in each repository the plan touches, in a worktree if another session owns the checkout.
Proof: the plan, the branches, and in plan mode the go.
Why: the review and the owner hold the diff against the plan, and a rejected ticket leaves no branch.

## 5. Implement, all of it

Do: build the whole change on every platform the ticket touches, inside the rules files, before running anything. Write each test with the code it covers: the bug's test first. Run no tests while implementing; build only when you cannot continue without knowing the code compiles. One build costs no time: when one platform's code is complete, compile it in the background while you write the next. A second platform that is more than a small copy can go to one `builder`: build the platform that holds the contract yourself and commit it, hand the other one over with a written contract (your commits to read first, the shared values, a closed file list in the other repository), then read its whole diff, compile it and commit it yourself. Before phase 6, write the hand-test case list (`references/templates.md`) and read the project's `self-check.md` against your own diff. Fix what you meet in its own commit (rule 5). Commit small, one concern each, with the key, staging files by name.
Proof: the commits.
Why: test runs after every step are where long tickets lose their days.

## 6. Tests, once

Do: when all the code is written, run once on each platform touched: the new tests first as a fast fail, then the full suite (it includes the module tests) and static checks (`<TEST-COMMAND>`), output to files. Show that a failure you did not cause is old (the same test on `<BASE-BRANCH>`), then fix it in this ticket when it is within reach. A fixed failure is re-checked by its test class, not by another full run. Start the suites in the background and go straight to phase 7; do not wait for them.
Proof: each command and its counts.
Why: a count you read is evidence; "tests pass" from memory is not.

## 7. Review, once

Do: as soon as the suites are started, run `/code-review` at `high` once on the whole diff, each repository, and nothing else: no wrapper, no second pass. One pass checks bugs, business logic, the product's key paths, the project's rules and architecture, maintainability and scale, and reports each finding once. Fix each real finding, in one pass with the suites' failures, or take it to the owner. Re-check each fix once, by the table in "The flow". Neither the diff nor a fix is reviewed again.
Proof: the findings, the fixes and their re-checks.
Why: one fresh-context review finds what the author missed; a second one on the same code finds the same things again.

## 8. Hand test, once

Do: the case list was written in phase 5; add the cases of the review's fixes. It holds each acceptance criterion, the broken state, the fix and the recovery, and the real save path, grouped by the state they start from, with the label to tap and the text that proves each step. Get the devices ready yourself before any tester starts: a `<BUILD-COMMAND>` build installed per platform touched, the app launched once, and `scripts/device.py <target> ready` printing ok. Check the case list against the app before any tester starts: the first label of every case is on a screen, or in the view code for a screen further in. Anything only a person can do (a locked device, an account) is asked now, in one message. Then give the cases to `tester` agents, one per platform, started in the same step, each with its own devices, evidence folder and brief, a 40-minute budget, and `scripts/device.py` as the way to drive the device. No build runs while they test; a case that measures launch or timing runs alone, after the others; a case that needs two devices goes to one tester after the others have finished. Use the simulators and emulators that exist; create one only when none can run a scenario, and record it in the log so the clean-up removes it. Each scenario runs once. The base language and another from `<LANGUAGES>` (right-to-left if any), light and dark, on the screens whose layout changed; a logic scenario runs once. Build hard states (seed data, edit storage, a debug-only switch, airplane mode) rather than skip them; ask the owner for what only the owner holds. A failed scenario is fixed, then run again by "Re-checks without repeats".
Proof: a result and screenshots per scenario in `<EVIDENCE-FOLDER>`.
Why: unit tests prove the unit; only the real flow shows what a person gets.

## 9. Pull request, review bot and tracker

Do: when "Ready to open" holds, open it without asking again: a clean tree, only this ticket's commits, the body from the template, linked to its sibling pull requests. Unless `<REVIEW-BOT>` is none, run at most two rounds: request a review and wait in one blocking command for one on the head commit; fix each real comment in its own commit on every platform it holds for, re-checking each fix once; reply on every thread with the commit or proof that nothing needs to change, and resolve it; request round 2 once, fix it the same way, and request no third. A bot that could not review counts as not verified. Then post "Pull request opened", move the ticket to In Review, comment on any existing ticket this pull request also resolves, and tell the user what changed and what was and was not verified. Record the run's timing (rule 12).
Proof: the links, each round in the body, the comment and the new state.
Why: the owner reads the pull request and the ticket first, so both tell the truth about every check.

## Sizes and modes

Size s names the exact lines in three files or fewer; m is an ordinary bug across four to ten files; l is sync, concurrency, money or a guessed cause. When two fit, take the bigger: a wrong pull request costs more than a strong model. The size says how hard the ticket is, not who may start: any model continues, and a lead below the size in `<SIZE-MODELS>` adds one advisor call when the build is complete. Prefer the strongest model as lead for size l when it is available: a mistake it would not have made costs a hand-test round to find. Raise the size when phase 3 finds more. The mode is plan with `--plan` or for a stored shape, payments, deleted data, new copy, or refactor or security work; owner when only the owner can act, which is not shipped; otherwise auto. Start each ticket in a fresh session, or clear the conversation between tickets. Check `/context` before a long batch: what a session starts with is carried on every step, and it differs between the terminal and an editor panel.

In a `next` batch, a ticket that waits for the owner does not hold the batch. When every part that does not depend on the answer is done, everything is committed on the ticket branch and the tree is clean, comment "Paused" with the open questions and take the next ticket. A plan-mode ticket waiting for its go counts the same. At most two tickets may wait this way; a ticket named by its key never moves on by itself.

## What done means

Ready to open: phases 1 to 8 passed in order on the pushed code, with evidence; each acceptance criterion has a test and a scenario, or the owner's written decision; the platforms agree, or the body says why one needs nothing; the diff holds this ticket's change and the fixes found on the way, nothing else; new strings exist in all `<LANGUAGES>`; the body claims nothing unseen.

Done: the bot rounds are finished, the owner said to merge, the merged tree passed the full suite once, the merge is pinned to the tested commit, and the merge closed the ticket: the owner's word to merge is the word to close.

Clean-up, right after the merge and not before (the review and the bot fixes use these), once any script worth keeping has moved from the evidence folder into `scripts/`: remove the ticket's worktrees and their build folders, the merged branch (local and remote), the devices the log says it created (never a shared one), and its evidence folder with its screenshots, recordings and builds. Keep the log. A run ends In Review or Done, never in between.

Files in this skill

  • SKILL.md11.8 KB
  • references/templates.md8.5 KB
  • references/traps.md1.1 KB

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.