Skip to content
Back to skills

Preparing Delivery

ASecurity

Use when the implementation of one work item is done and the words that deliver it must be written: the commit message, the pull request description and the inline comments where a decision shaped non-obvious code. Reads the work file, the implementation notes, the worktree diff, the verdict, the plan and the cited decisions, marks acceptance criteria met, accepted or missing only when the verdict's tree hash equals the worktree's current hash, and saves the files under the deliveries directo...

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentsgogit

Security analysis

A100/100

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

Scanned November 30, 2026

npx -y skills add xonovex/platform --skill preparing-delivery --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Preparing Delivery?

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

Security grade badge for Preparing Delivery
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/xonovex-preparing-delivery/badge)](https://www.skillsdirectory.com/skills/xonovex-preparing-delivery)

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: preparing-delivery
description: "Use when the implementation of one work item is done and the words that deliver it must be written: the commit message, the pull request description and the inline comments where a decision shaped non-obvious code. Reads the work file, the implementation notes, the worktree diff, the verdict, the plan and the cited decisions, marks acceptance criteria met, accepted or missing only when the verdict's tree hash equals the worktree's current hash, and saves the files under the deliveries directory of the work item without applying anything. Triggers on 'write the commit message', 'describe this change for review', 'prepare the pull request', 'add comments for the reviewer', even when the user doesn't say 'delivery'. Not for committing, pushing or opening the pull request, validating the work, or implementing it."
---

# Prepare a Delivery

Purpose: turn a finished work item into the text a reviewer and the history need, with the claims bound to what was actually checked. The output is files in the change's plan directory. The skill applies nothing: the commit goes to the version-control skill of the work repository, such as **using-git**, when one is installed, and a push, a pull request and inline comments go to **using-github** or **using-gitlab**, each only when the user asks.

**Load first:** the **recording-handoff** skill, and run its entry step before anything below.

## Essentials

- One work item per run. Files go to `deliveries/<work-id>/`: `commit-messages/<slug>-<suffix>.md` always, one for each commit, `pull-request.md` only in pull-request mode, `comments/<suffix>.md` optionally in that mode.
- A criterion is marked met, accepted or missing only when the verdict's tree hash equals the worktree's current tree hash, taken by the same method. A failed or blocked criterion that a settled, verified decision in force accepts is marked accepted with that decision's concept ID, never missing. Otherwise the criteria appear unmarked, with a line saying no verdict matches. The implementer's own checks are labelled `self-check` and never called validated.
- The report gives the commit step only when the worktree's tree hash equals the tree hash the verdict records, taken by the same method. A `none` method never matches.
- The words follow **authoring-pull-requests** for the description, and the project's commit convention, else the conventional commit rules of **using-git** when it is installed, for the message.
- A comment is written only where a decision shaped code the reader cannot understand from the code. It never restates the code and never says the code is correct. Each carries a stable `marker`, so a rerun updates it.
- The pull request description stays under about 3,500 characters.
- Every file is scanned for secrets and for anything the plan marks sensitive before the run reports done.
- Never commit, stage, push or open anything. Never start another step.

## Procedure

1. **Run the entry step** from **recording-handoff**. The delivery files go into the plan directory's repository, so confirm that branch. When the plan directory and the work repository are the same repository, confirm once for the main checkout. The work repository is only read and needs no confirmation. The preconditions: the work file, its implementation notes (they name the worktree and the branch), and the project's `delivery` setting. A missing one is reported and the run stops; a missing `delivery` setting is a blocker. A run that stops without changing anything writes no log entry. Never run **implementing-work-item** or **validating-work-item** to fill the gap.
2. **Load the skills that apply** from the skills map that the settings reference of **recording-handoff** defines, for the phase **preparing-delivery**: the `skills_to_consult` of the plan and the work item, a custom workflow skill the project provides, the **preparing-delivery** entry of the project's `skills` map, and the default skills of the phase when the project's map does not name it. The commit convention comes from the project's instructions, else from the version-control skill of the work repository, such as **using-git**, when one is installed, and the description conventions from **authoring-pull-requests**.
3. **Read the inputs.** The work file (criteria, decisions, repository), the plan, each decision the work item cites, every decision whose `accepts` names the work item, the implementation notes (branch, worktree, `decision_notes`, `checks`) and the verdict file if one exists. Read the delivery mode from [references/delivery-modes.md](references/delivery-modes.md).
4. **Fix the tree.** Take the current tree hash of the worktree and the base diff it stands for, by the operations of the version-control reference of **recording-handoff**. An empty diff is reported and the run stops. Without version control, read the files of the directory the notes name; no verdict can then match. See [references/verdict-matching.md](references/verdict-matching.md).
5. **Match the verdict.** Compare the verdict's `worktree_hash` with the current hash, only when both have the same method, and set `verdict` and `verdict_matches`. Marks come only from a matching verdict.
6. **Write the files** from the templates: [assets/templates/commit-message.md](assets/templates/commit-message.md) for each commit, then, in pull-request mode, [assets/templates/pull-request.md](assets/templates/pull-request.md) and, for each decision that shaped non-obvious code, [assets/templates/inline-comment.md](assets/templates/inline-comment.md). Announce each write in one line. On a rerun, replace in place and match comments by `marker`. See [references/delivery-files.md](references/delivery-files.md) and [references/pull-request-and-comments.md](references/pull-request-and-comments.md).
7. **Scan and check.** Scan all written content and the diff for secrets and for what the plan marks sensitive, count the description's characters, then validate the bundle with the **recording-handoff** script. See [references/content-scan.md](references/content-scan.md).
8. **Record and report.** Write one `Workflow Log Entry` (`skill: preparing-delivery`; `action: Creation` when the run created a delivery file, `Update` when it only changed existing ones; the delivery files in `touched`, never the log entry itself), regenerate the indexes and the log, and report the files, the tree hash, whether the verdict matched, and the scan result. Hand off as [references/handoff.md](references/handoff.md) shows: the commit step for the version-control skill only when the hashes are equal, and the files that **using-github** or **using-gitlab** take as the text of the pull request and of each inline comment. Offer a fresh **validating-work-item** run when no verdict matches. Never start any of them.

## When not to use

- Committing: the version-control skill of the work repository, such as **using-git**. Pushing, opening the pull request or merge request, or commenting on the host: **using-github** or **using-gitlab**, when the user asks.
- Judging whether the work meets its criteria: **validating-work-item** writes the verdict this skill reads.
- Writing the code or the notes that feed this skill: **implementing-work-item**.
- A change with no work item file: write the message with the version-control skill, such as **using-git**, and the description with **authoring-pull-requests**.

## Gotchas

- Taking the content hash with a command that reads the real staging state. The hash is then not the worktree's; the version-control skill names the trap of its own command.
- Comparing hashes of two methods, or calling a verdict stale when a method is `none`. The freshness is then not checkable, and no criterion is marked.
- Marking criteria from a verdict that checked earlier content. Compare hashes as strings and mark nothing when they differ.
- Giving the commit step when the verdict's hash differs from the worktree's. The commit would carry content no verdict checked.
- Showing the implementer's checks as validated. They are `self-check`, in the description and in the notes.
- Copying the criteria into the commit message, or the commit's reasoning into the description. The message keeps the lasting reasoning, the description keeps the review view.
- Inventing the reason behind a decision. Quote the decision's own claim and cite its ID.
- Comments that narrate the code or vouch for it. Only the reason that the code cannot show belongs in a comment.
- Two comment files with one `marker`, or a changed marker on a rerun. Both duplicate the comment on the host.
- Ordering the commits by a number in a name or a key, or by file times. The order is the `follows` chain, each commit but the last names its `paths`, and the last commits the rest, so it holds the checked tree.
- Writing `pull-request.md` in trunk or branch mode, or dropping decision notes in those modes. The decisions go into the commit message body instead.
- A description that grows past the limit. Shorten the detail, never the criteria.
- Printing a secret to point at it. Report the path and line only.
- A plan link that is a file URL or a bare repository URL. Follow the plan link rule in [references/delivery-files.md](references/delivery-files.md).
- Inventing a time, a version or a file suffix. The clock, the plugin's manifest and the alphabet `a-z` and `2-7` supply them.

## Done when

- `commit-messages/` holds one message for each commit in one `follows` chain, each with a subject line, the decision IDs and the plan link, and the mode's other files exist only where the mode calls for them.
- `verdict_matches` agrees with a fresh hash comparison, and no criterion carries a mark unless it is true.
- The description is under about 3,500 characters, and every comment file has a `marker`, a `path`, a `line` and a `side`.
- The scan found nothing, or the run reported the finding and did not report done.
- The report holds the commit step only when the hashes are equal and of the same method, and names the files the host skill takes.
- Every timestamp comes from `date -u +%Y-%m-%dT%H:%M:%SZ`, and `generated.by` carries the version of the plugin that ships this skill, read from the plugin's manifest; the full rule is in the frontmatter reference of **recording-handoff**.
- The bundle validates with no error and no schema-not-found warning for the three types, and the log entry exists.

## Progressive Disclosure

- Read [references/delivery-files.md](references/delivery-files.md) - Load when writing a commit message, the order of several commits, the description or a comment, or when checking the limits and the rerun rules.
- Read [references/pull-request-and-comments.md](references/pull-request-and-comments.md) - Load when writing the pull request description or an inline comment: its keys, sections, marks and sources.
- Read [references/delivery-modes.md](references/delivery-modes.md) - Load when reading the `delivery` setting or deciding which files the mode calls for.
- Read [references/verdict-matching.md](references/verdict-matching.md) - Load when computing the tree hash, comparing it with a verdict of the same method, working without version control, or labelling a self-check.
- Read [references/content-scan.md](references/content-scan.md) - Load when scanning the written content and the diff for secrets and sensitive terms.
- Read [references/handoff.md](references/handoff.md) - Load when writing the report: the commit step, its tree hash condition, and the files the host skill takes.
- Read [assets/templates/commit-message.md](assets/templates/commit-message.md) - Load when writing the commit message.
- Read [assets/templates/pull-request.md](assets/templates/pull-request.md) - Load when writing the pull request description.
- Read [assets/templates/inline-comment.md](assets/templates/inline-comment.md) - Load when writing an inline comment.
- Read [assets/schemas/](assets/schemas/) - Load when the validator reports a schema finding on a delivery file.

Files in this skill

  • SKILL.md11.8 KB
  • assets/schemas/commit-message.schema.json635 B
  • assets/schemas/inline-comment.schema.json952 B
  • assets/schemas/pull-request.schema.json1 KB
  • assets/templates/commit-message.md3.1 KB
  • assets/templates/inline-comment.md2.1 KB
  • assets/templates/pull-request.md3.7 KB
  • eval-output.json28.8 KB
  • eval-trigger.json5.9 KB
  • evals/files/a-comment-carries-a-marker/AGENTS.md64 B
  • evals/files/a-comment-carries-a-marker/plans/shop-retry/decisions/retry-backoff-m3ab.md564 B
  • evals/files/a-comment-carries-a-marker/plans/shop-retry/decisions/retry-source-4kq7.md569 B
  • evals/files/a-comment-carries-a-marker/plans/shop-retry/implementation/retry-from-settings-7k2f/notes.md631 B
  • evals/files/a-comment-carries-a-marker/plans/shop-retry/log/2026-10-20-recording-handoff-a2b3.md282 B
  • evals/files/a-comment-carries-a-marker/plans/shop-retry/log/2026-11-26-recording-handoff-46bf.md706 B
  • evals/files/a-comment-carries-a-marker/plans/shop-retry/log/2026-11-26-recording-handoff-r7in.md746 B
  • evals/files/a-comment-carries-a-marker/plans/shop-retry/plan.md459 B
  • evals/files/a-comment-carries-a-marker/plans/shop-retry/verdicts/retry-from-settings-7k2f.md517 B
  • evals/files/a-comment-carries-a-marker/plans/shop-retry/work/retry-from-settings-7k2f.md602 B
  • evals/files/a-comment-carries-a-marker/work.diff179 B

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.