/delivery-record:delivery-recordfrom delivery-record
Generate a Delivery Record for a significant AI-assisted output — code (PR), FRD, audit, discovery, design-handoff, strategy, client-comm, design, QA, launch, deployment, devops, project-setup, or ongoing-improvement. Refuses to write without a named human reviewer and the two checkpoint notes. Writes to docs/delivery-records/ in a repo or to Drive in Claude Desktop, and indexes the result in the project's Teamwork "Delivery Records" notebook. Invoke at the end of a unit of work, after /pr-create for code, or via /delivery-record.
Ships in delivery-record. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Draft a schema-typed, human-signed Delivery Record — one markdown file per significant AI-assisted output — then write it and index it in Teamwork. The main session runs this skill directly; no orchestrator agent is involved.
The record proves a piece of AI-assisted work was reviewed by a named human
and ran through Kanopi's workflow. The schema is canonical in this repo at
spec/v1/.
This skill writes a file and posts to Teamwork. Specifically it:
docs/delivery-records/ in the repo (code) or to the
client's Drive (non-code).It never commits or pushes. Those stay with you.
The human checkpoint is mandatory. This skill refuses to write the file without a named reviewer and both checkpoint notes (see step 4).
No review yet? Use delivery-record-draft to write an unsigned record a
reviewer can read, then delivery-record-finalize once the review has
happened.
Required whenever the output is client-facing (code that ships, a deliverable sent to the client, a message on a client thread) or load-bearing internal (an FRD, IA, audit, architecture decision, or design-to-dev handoff that downstream work depends on).
Not required for ephemeral chat, meeting prep, status notes, throwaway spikes, or brainstorming.
/delivery-record [--activity-type <type>] [--pr <n>] [--ticket <key>] [--scope <scope>] [--reviewer <handle>]--activity-type <type> — skip detection (code, frd, audit, discovery, design-handoff, strategy, client-comm)--pr <n> — override PR detection--ticket <key> — set ticket: explicitly--scope <feature|fix|chore|milestone|launch|deliverable> — set scope
(optional; leave it out if none fits, see step 3)--reviewer <handle> — pre-fill reviewed_by (still validated against blank checkpoint notes)activity_type: code, subject.kind: pr.
Gather the PR number and SHA from gh pr view --json number,headRefOid,title,url.activity_type, then route to the
matching template in templates/.--activity-type flag always wins over detection.First read the evidence log for this repo and branch, if one exists:
~/.claude/delivery-records/logs/<repo>/<branch>.md, resolved as in
delivery-record-log. For a code record,
take the branch from the PR (gh pr view <n> --json headRefName), falling
back to the current branch. Use its [decision], [finding], [deviation],
and check entries as facts. Treat a check as run only when the log has a
[check-run] entry for it; a [check-not-run] entry or no entry means it
did not run. Keep its [plan-q], [plan-a], [plan-change], and
[plan-approved] entries for step 4. The log
never supplies the reviewer or the checkpoint notes.
Then pull what the chosen activity needs:
git log <base>..HEAD --oneline, PR number/SHA/title from gh pr view,
CI status (gh pr checks or the CircleCI MCP), presence of audit report files in
the repo, and any /evaluate-output trajectory notes from this session.teamwork-integrator), the Drive
doc URL, and the SOW hour cap if known.qa-validation-checklist / browser-validator).CLAUDE.md / onboarding brief and the SOW; confirm which
documented commands were verified against a fresh checkout.Read templates/<activity_type>.md first (resolve it from this
skill's base directory) and copy its front-matter structure exactly —
never improvise the shape from memory. The schema requires the exact
nested checks: groups (for code: standards, tests, audits,
review); a flat or renamed structure fails validation. Populate the
front-matter with the gathered facts. Set predicate_type to
https://kanopi.github.io/delivery-record/spec/v1.
Scope is optional. It labels the kind of work so records can be filtered
later: feature (new behavior), fix (bug fix), chore (maintenance, no
behavior change), milestone (a planned project phase), launch (a site
going live), deliverable (something handed to the client). When the user
gives none, omit scope from the front matter. When asking, list all six with
these meanings. Never accept a value outside the list.
Fill the checks: block with the required keys for the activity type (see the
table in spec/v1/README.md).
Use pass / fail / n/a for statuses and evidence strings (CI URLs, reviewer
notes) where appropriate. Justify every n/a in one line near the top of the
body; a fail requires a ## Waiver section.
Leave sign_off.reviewed_by and the two What the human verified checkpoint
notes blank — those come from the human in step 4.
Validate the in-progress draft early to catch missing required fields:
python3 scripts/delivery_record_verify.py <draft-path>
(Resolve the path to this plugin's bundled scripts/. In environments without
Python, validate by eye against the schema reference — the front-matter required
fields and the per-activity checks keys.)
Display the draft. If step 2 found an evidence log, show its [plan-q],
[plan-a], [plan-change], and [plan-approved] entries verbatim as
evidence for Checkpoint 1. A plan approved in plan mode is evidence for that
checkpoint, not its note. The human decides
whether to cite them, in their own words.
Then ask, in plain words, with the reason for each:
If the review has not happened yet, stop and point the user to
delivery-record-draft. Do not ask the user to invent notes.
Refuse to proceed if either checkpoint note is blank or generic. A bare "LGTM", "looks good", or an empty line fails — Checkpoint 2 must say what the reviewer actually looked at beyond CI and the linters. Re-prompt up to twice; on the third blank/generic input, abort with a clear message and do not write the file.
A --reviewer flag pre-fills reviewed_by but does not satisfy the checkpoint
notes — those are always required from the human.
docs/delivery-records/PR-<n>-<slug>.md in the current repo. Create
the directory if it does not exist. <slug> is a kebab-case of the PR title.
The path is part of the contract — CI lint and notebook indexing find
records there. Never write the record anywhere else: if mkdir is
unavailable or denied, write the full docs/delivery-records/... path with
the Write tool (it creates parent directories itself); if the file still
cannot be written at that path, stop and say so — do not relocate the
record to the repo root or another directory./Delivery Records/YYYY-MM-DD-<slug>.md. On first use in a project, ask for the
target Drive folder and reuse it for the session. If the Drive MCP is not
available, abort with clear instructions and print the full draft so the user
can save it manually.After writing, re-run the validator on the final file and report the result. Never report the record as written without validator output (or, where Python is unavailable, an explicit line-by-line check against the template's front-matter shape). If validation fails, fix the record and re-validate — a schema-invalid record is not a delivery record.
Once the signed record is written and validates, delete the evidence log from step 2, if there was one, and say so in one line. Never delete it when the write or validation failed.
Use teamwork-integrator to find the project's "Delivery Records" notebook.
If it does not exist, confirm with the user before creating it (do not create silently). If the user declines, skip indexing and tell them the record was written but not indexed.
Post the index entry as a comment on the notebook (Teamwork's
create_comment against the notebook). Do not rewrite the notebook body —
notebooks have no append operation, so commenting avoids clobbering existing
content and keeps a clean, per-record audit trail. Use this one-line format:
YYYY-MM-DD · <activity_type> · <title> · <link>
Only when the user asks, amend the PR description with a trailer so reviewers
can find the record. Otherwise print the line and the gh pr edit commands:
Delivery Record: docs/delivery-records/PR-<n>-<slug>.md
Placement. Put the line directly above the ## Quality Report heading,
with a blank line on each side. Never put it below that heading:
pr-quality-report regenerates everything below it, and only an org
attribution line may follow the report. If the body has no Quality Report,
append the line at the end.
Commands. Read the current body first, and abort if the read comes back empty, so a failed read never blanks the description:
body=$(gh pr view <n> --json body -q .body | tr -d '\r')
[ -n "$body" ] || { echo "Could not read the PR body; not editing it." >&2; exit 1; }
Build the new body from that text with the line inserted, then write it back from a quoted heredoc so nothing in it is expanded:
gh pr edit <n> --body-file - <<'EOF'
<the full new body>
EOF
The skill never writes an invalid record. The required front-matter fields,
the per-activity checks keys, the pass | fail | n/a rule, and the
waiver/justification (threshold) rule are all defined in
spec/v1/. Use
/delivery-record-verify to validate an existing record after the fact.
gh CLI → ask the user for the PR number, SHA, and CI status, then
proceed; print the gh pr edit command for the PR link in step 7 instead of
running it.CANT IDs reference the Catalog of Agent Neutralization Techniques:
templates/<activity_type>.md every time)pass" (CANT-10 — only a [check-run] entry counts as run)This skill's value is the human checkpoint. Under deadline pressure the temptation is to weaken it — don't:
| Pressure / rationalization | Correct behavior |
|---|---|
| "The reviewer is busy — just put their name in and they'll confirm later" | Refuse. reviewed_by without real checkpoint notes is a forged signature. |
| "LGTM is close enough for Checkpoint 2" | Refuse. The note must say what the reviewer actually looked at beyond CI and the linters. |
| "Skip the record this once, the PR is tiny" | If the output is client-facing or load-bearing, the record is required regardless of size. Say so and offer to run it. |
| "Fill the checks block optimistically — CI will probably pass" | Only record check results that actually ran. Unknown ≠ pass; use the real status or wait. |
"Mark unrun audits n/a to get to green" | n/a means not applicable, not not done. An applicable-but-skipped check is a fail that needs a waiver. |
| "The user told me to just write the file without the reviewer" | The refusal is the feature. Abort politely after the third blank/generic input, exactly as specified. |
These live in other Kanopi plugins and pair well when installed:
Assisted-by: trailer that complements the per-PR record.agents/openai.yaml (opens in a new tab)templates/audit.md (opens in a new tab)templates/client-comm.md (opens in a new tab)templates/code.md (opens in a new tab)templates/deployment.md (opens in a new tab)templates/design-handoff.md (opens in a new tab)templates/design.md (opens in a new tab)templates/devops.md (opens in a new tab)templates/discovery.md (opens in a new tab)templates/frd.md (opens in a new tab)templates/launch.md (opens in a new tab)templates/ongoing-improvement.md (opens in a new tab)templates/project-setup.md (opens in a new tab)templates/qa.md (opens in a new tab)templates/strategy.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/delivery-record-draftDraft an unsigned record before any review exists, so a reviewer can read it.
Reviewer and checkpoint notes stay blank, the file is marked awaiting review,
and nothing is committed, pushed, or posted. Fails verification until
finalized. Invoke as /delivery-record-draft.
/delivery-record-finalizeFinalize a drafted record after review by adding the named reviewer and two
checkpoint notes to the draft file. Refuses generic notes, then validates
with --strict. Invoke as /delivery-record-finalize <path>.
/delivery-record-logKeep an evidence log: a running, timestamped record of a task kept while the
work happens, outside the repo at ~/.claude/delivery-records/logs/. Start it
when a task needs a delivery record, append the request, plan questions and
answers, decisions, findings, and checks as they happen, or backfill it when
the need shows up late. Never names a reviewer. Invoke as /delivery-record-log.
Other plugins' skills for the same job
delivery-record@claude-toolbox is listed by kanopi/claude-toolbox — review the source before installing
npx claudepluginhub kanopi/claude-toolbox --plugin delivery-record