Skip to content
Back to skills

Deliver

ASecurity

Optionally commit, push, and open or update a PR for a completed make-it-work implement run. Requires a current final package and a separate, explicit delivery approval. Never merges or posts to Jira.

  • 14 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
developmentnodegitbackend

Works with

  • terminal
  • cli

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add insideout-ai/make-it-work --skill deliver --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Deliver?

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

Security grade badge for Deliver
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/insideout-ai-deliver/badge)](https://www.skillsdirectory.com/skills/insideout-ai-deliver)

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: deliver
description: "Optionally commit, push, and open or update a PR for a completed make-it-work implement run. Requires a current final package and a separate, explicit delivery approval. Never merges or posts to Jira."
disable-model-invocation: true
---

# Deliver

For generated files under `make-it-work/`, follow the [artifact naming, Git protection, usage and timing contract](../../docs/artifact-observability.md). Use helper-returned paths; new runs use `miw-` filenames and existing runs retain their saved convention.

Use only when the developer explicitly asks to deliver a completed `implement` run. `implement` may offer this as its final optional next step, but finishing or approving `implement` does **not** authorize delivery. Never start delivery automatically from `implement`, Interactive, or Autopilot; an explicit developer opt-in is required first.

Selecting **Prepare delivery** in `implement` satisfies that explicit opt-in requirement. Continue by reading and following this skill inline in the same session, without requiring a separate `/deliver` command, a Skill-tool invocation, or another preparation-permission question. A recorded opt-in remains effective if preparation continues after an interruption. The selection authorizes preparing and displaying the preview only; commit, push, and PR actions still require **Deliver this exact plan** for the plan shown below. `disable-model-invocation: true` preserves explicit command entry and does not prohibit this authorized inline continuation.

Usage: `/make-it-work:deliver <TICKET>`.

Follow [the workflow-decision audit contract](../implement/references/workflow-decisions.md): record explicit delivery opt-in (unless already recorded by `implement`), scope/readiness adjustments, Stop, exact-plan approval and retry requests in the completed run's Audit log using `dashboard-checkpoint.mjs decision` with `resume: transparent`. Record before the dependent delivery command, referencing the shown plan hash for approval. Preserve implementation completion and its timing; the delivery journal remains authoritative for operations and approval. Silence supplies no decision.

1. Locate the completed `make-it-work/<TICKET>/<TICKET>-state.md` and the artifact root. Read the final package and its Markdown preview. Delivery is available only for package-enabled runs. Do not create a package here or alter its approved content.
   Before preparation, run `node "<base>/../implement/scripts/deliver.mjs" inspect-base --root <artifact-root> --state <state-path>`. This works even when later package validation would refuse delivery. Show each relevant repository's fresh remote-base result, observed source/base SHAs and time. Use the configured base, not a hardcoded `main`; unknown ancestry is a disclosed limitation, never "current". The inspection may download Git objects but leaves files, index, branch refs, remote-tracking refs and FETCH_HEAD unchanged.
   If any included repository is behind and `restart.available` is true, call `AskUserQuestion` with **Publish as reviewed** / **Stop to align and rerun** / **Stop**. Record the actual answer under the workflow-decision contract. Publish as reviewed continues preparation only; it neither bypasses a stale package/review refusal nor supplies exact-plan approval. A saved answer can be reused while the source/base SHA pair is unchanged. If inspection is unknown, disclose it and retain ordinary delivery approval without introducing a new blocking gate.
   **Stop to align and rerun** stops delivery: record the decision and call `decline`, then show the helper's restart invocation, exact repository/worktree/branch/base, previous artifact root and state path. Explain: request alignment of this existing checkout with its configured remote base, then re-invoke Implement and explicitly select a fresh run on that same checkout. Preserve the previous artifacts and reassess spec/plan/prepared tests for reuse; current validation, independent review and a fresh package are required. Alignment is a separately requested operation; this choice does not authorize merge, rebase, stash or branch changes. Do not reopen Complete, create a replacement worktree that lacks the finished code, or imply old approvals cover an aligned tree. **Stop** follows the existing decline route.
   If `restart.available` is false, delivery actions already exist: disclose behind/unknown status and use the saved exact plan's existing partial recovery. Do not offer restart or change scope. An interrupted PR-write attempt also needs provider reconciliation through that recovery.
2. Honor an explicit request for Draft or Ready for review by appending `--pr-status draft|ready` to preparation. Otherwise keep regular creation as the default and preserve existing PR readiness; do not ask a routine readiness question. Run `node "<base>/../implement/scripts/deliver.mjs" prepare --root <artifact-root> --state <state-path>`. The helper verifies that the final package still matches the source tree and evidence; Step-by-step runs must have their package approval. It writes `make-it-work/<TICKET>/<TICKET>-delivery-plan.md` and a JSON plan, returning the plan hash. The helper also discovers existing PRs and binds each repository’s resolved readiness and existing PR identity to the approval hash. An explicit choice conflicting with an existing PR stops preparation and reports its URL; resolve that conflict outside delivery. Before saving a plan, it selects provider checks from each included repository's origin: GitHub CLI availability/authentication and read-only PR access, or Bitbucket credential validation and an authenticated read-only repository request. Each prerequisite command/request has a 30-second timeout. If it fails, stop before requesting approval and show the specific blocker and existing package draft path. Do not work around a stale package by committing manually.
3. Show the **entire** delivery preview to the developer, including each repo, origin, source and base branches, paths, full commit message, and full PR title/description, and each repository’s PR readiness, create/update action and advisory base-freshness result. The base SHA in the preview identifies an observation, not a promise that the base cannot advance. Call `AskUserQuestion` (`multiSelect: false`) with **Deliver this exact plan** / **Adjust PR readiness** / **Adjust delivery scope** / **Stop**. This is a new approval, distinct from final-package approval. Never infer it from an earlier answer. No automatic/default selection, even in an Interactive or Autopilot run.
   - **Adjust PR readiness** → call `AskUserQuestion` (`multiSelect: false`) with **Draft** / **Ready for review**. Record the answer in the Audit log, then prepare again with `--pr-status draft` or `--pr-status ready`, preserving the current full/selected scope and original selection input. Show the entire regenerated preview and new hash, then return to the same approval question. An unanswered readiness question stays pending. Do not infer approval or change an existing PR’s status.
   - **Adjust delivery scope**, or a request such as "commit only the related files" → follow [selected delivery](references/selected-delivery.md), then show the regenerated preview and return to this same choice. Scope selection authorizes preparation only. Retain the full-delivery option and existing exact-plan approval; do not commit manually to bypass the helper.
   - **Stop** → run `node "<base>/../implement/scripts/deliver.mjs" decline --root <artifact-root> --state <state-path>` to record that delivery was declined and refresh its dashboard status. Silence is not a decline or approval.
4. Only after an explicit **Deliver this exact plan** response, call `node "<base>/../implement/scripts/deliver.mjs" run --root <artifact-root> --state <state-path> --hash <shown-plan-hash>`. Report commit hashes and PR URLs from its result. For observation-enabled plans, report per-repository `observations`: the pre-publication and post-PR base freshness (including movement since preparation), CI and mergeability with their timestamps and any reasons for pending/unknown results. Say publication succeeded when receipts establish it; do not imply that pending, missing, failing or unknown checks passed or that conflict-free means all merge requirements are satisfied. Preserve named check outcomes from the saved snapshot when explaining failures. Provider errors in the observation are sanitized; do not reproduce raw responses or credentials. On error, do not retry automatically; show the error and the progress file path. A subsequent explicit user request may rerun the same plan after the blocker is fixed. Use `status` to inspect partial progress.

Preparation checks run again before an initial delivery starts; partial retries retain their existing recovery behavior. Successful read access does not guarantee push permission, hook acceptance or later network availability. Do not install tooling, run hooks as a probe, or bypass policy to resolve a prerequisite failure.

The delivery helper stages only paths in the shown delivery plan, checks the resulting tree, runs commit hooks, pushes to `origin` without force, and creates or updates a PR. If a hook changes the approved tree, it stops before pushing that repo. It records per-repo progress under `make-it-work/` so a retry does not repeat successful work. New plans create drafts when requested, verify provider readiness after creation/update and record the observed status. Existing PR updates preserve readiness. An unapproved matching PR appearing after preparation, a changed/disappeared approved PR, unknown readiness or provider rejection stops delivery without falling back to regular creation. A lost creation response may leave an unrecorded PR: an explicitly requested retry discovers and reuses it only if a PR attempt was recorded and its readiness matches. Recorded receipts remain historical observations. Readiness changes apply to all included repositories and are allowed only before delivery actions start. It supports GitHub (`gh` CLI authenticated separately) and Bitbucket Cloud (`MAKE_IT_WORK_BITBUCKET_TOKEN_JSON` supplied out of band); unsupported remotes stop. Do not ask the developer to paste credentials into chat. It refuses common sensitive file paths and never merges or posts to Jira.

Newly prepared full-delivery plans reconstruct the saved package result. Their preview distinguishes reviewed branch-to-base paths from actual commit changes, including required reversals of earlier branch work. Present those reversals in the same exact-plan approval; they need no extra routine question or test rerun. The source package stays unchanged. Saved older plans keep their exact approved behavior, including partial retries; an unstarted plan can adopt the fix through explicit preparation and approval of a fresh preview. Never regenerate a partially executed plan to migrate it. Selected-file delivery retains its separate scope and assurance rules.

Preserve the final package's review qualifications in the preview, PR description and delivery summary. In particular, earlier branch work marked skimmed or partially reviewed remains qualified after delivery; a matching delivery snapshot or an explicit approval does not establish deeper review. Do not summarize all paths as fully verified when qualifications or pending browser/backend checks remain. Blocked test-map maintenance remains a disclosed limitation; delivery never silently completes it.

Preserve `validation_notes` too, including introduced diagnostics retained with an evidenced nonblocking rationale. Passing other checks, an older similar error, or approval of the package does not turn those diagnostics into unchanged baseline failures.

The helper also checkpoints the existing status HTML from its delivery journal after preparation, approval/start, every commit/push/PR, and terminal success or failure. Implementation stays `Complete`; delivery has its own status, timestamps, activity and per-repo results. A failed delivery may already have committed or pushed some repos: report the actual journal rather than claiming changes remain uncommitted. Dashboard failure saves delivery progress and stops further actions; repair rendering before an explicitly requested retry. Do not hand-edit HTML or create a dashboard for a legacy run that has none.

Already completed deliveries with older version-1 journals are supported: regenerating the dashboard with `dashboard-checkpoint.mjs render --state <state-path>` reads their delivery plan and per-repo results without repeating delivery. An already-open page generated before this integration needs one browser reload after regeneration. New dashboards keep refreshing through the delivery choice, approval and running states, and stop refreshing when delivery is declined, fails, or completes.

The HTML shows delivery actions recorded by make-it-work. Commits, pushes or PRs
completed outside the plugin are not automatically reflected, so its saved
delivery status can remain failed/partial after external delivery succeeds.
Explain this when external completion is known; do not rerun delivery merely to
refresh the HTML, invent journal receipts, or hand-edit the dashboard.

Saved plans without the readiness contract retain their exact preview, approval hash and execution behavior. Do not rewrite a partially executed plan to add readiness support. New readiness fields are separate from the final package’s draft commit/PR prose; final-package approval is unchanged.

## Advisory delivery observations

New plans carry `observation_version: 1`. Preparation binds a deterministic base
snapshot into the preview/hash; timestamps live in the progress journal. Before
publication the helper takes another base snapshot. After recording the verified
PR receipt, it takes one bounded CI/mergeability snapshot and rechecks remote-base
ancestry. Each base inspection and the whole post-PR phase have a 30-second
budget per repository. No waiting for green CI or unbounded polling occurs.
A behind base or an unavailable observation is advisory; existing package,
readiness, tree and publication failures still stop under their existing rules.

GitHub uses the exact PR's head/base identity, mergeability, provider merge state
and check rollup. Bitbucket Cloud uses read-only PR, statuses and mergeability
checks, with bounded pagination and identity checks before and after observation.
Unsupported endpoints, incomplete pagination, changing identities and access or
network failures are unknown; missing/skipped/neutral checks do not prove CI
passed. Mergeability is a provider snapshot, never a guarantee of merge permission.

Observations are saved separately from commit/push/PR receipts. Observation
failure cannot turn publication into failure or cause a second commit/push/PR.
An explicitly requested retry may fill a snapshot missing after interruption;
a recorded snapshot, including unknown, stays historical. `status` and dashboard
rendering read saved data without polling. Do not rerun delivery just to refresh
checks. A completed observed delivery returns its saved result.

Plans without the observation contract retain their original preview, hash and
execution behavior. Show their absent CI/mergeability/freshness observations as
**Not recorded**, not as passing. Read-only `inspect-base` can still explain a
base mismatch. Never migrate a partially executed plan.

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 development →

Comments

Loading comments…

Newsletter

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