apd-finish

apd-finish is a skill for Claude Code, Codex from zstevovich/claude-apd. It costs 110 tokens per session (2,071 once invoked), scanned A, original, MIT.

A post-commit checklist for APD, a staged development workflow. It verifies the result and asks what to do with the commit next.

In plain words
What is it for?
Use it after a successful APD commit to rerun checks, review the pipeline result, and choose whether to push, open a pull request, keep the commit local, or discard it.
Why use it?
It prevents unverified changes from being pushed and leaves the decision to publish them with the developer.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions subagents; mentions Codex.

Part of the claude-apd plugin — 11 skills, 5 agents, 8 hooks, 1 MCP server shipped together

Good fit Use it after a successful APD commit to rerun checks, review the pipeline result, and choose whether to push, open a pull request, keep the commit local, or discard it.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zstevovich/claude-apd/apd-finish
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add zstevovich/claude-apd --skill apd-finish
Clone the repo
git clone --depth 1 https://github.com/zstevovich/claude-apd

Made for: Claude Code, Codex.

Or install claude-apd, the plugin that ships this one along with the rest of its 11 skills, 5 agents, 8 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for apd-finish

README.md
[![agentmods](https://agentmods.dev/badge/skills/zstevovich/claude-apd/apd-finish/github.svg)](https://agentmods.dev/skills/zstevovich/claude-apd/apd-finish)
Your own site
<a href="https://agentmods.dev/skills/zstevovich/claude-apd/apd-finish"><img src="https://agentmods.dev/badge/skills/zstevovich/claude-apd/apd-finish/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for apd-finish

Your own site · 80×15
<a href="https://agentmods.dev/skills/zstevovich/claude-apd/apd-finish"><img src="https://agentmods.dev/badge/skills/zstevovich/claude-apd/apd-finish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,071 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00110 $0.02071
Opus 5 $0.00055 $0.01035
Sonnet 5 $0.00022 $0.00414
Haiku 4.5 $0.00011 $0.00207

Measured 12d ago against content hash 070a4e2b620e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

apd-finish scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/apd/skills/apd-finish/SKILL.md · 235 lines

How it starts

The opening of the file, as written. The whole thing — 235 lines — stays where its author put it; the contents beside it link to each section on GitHub.

APD Finish (Codex)

Run through this BEFORE push, PR, or moving to the next task.

When to use / When to skip

Use when:

  • A pipeline cycle just produced a successful commit
  • All four pipeline phases are complete; apd:apd_pipeline_state() reports next_step: "commit"
  • The user has not yet made a push/PR/keep/discard decision

Skip when:

  • The pipeline failed before commit — go to apd-debug, not finish
  • The user has already pushed — there is nothing to decide
  • This is a hotfix outside the pipeline — different decision flow, don't apply pipeline summary template

The Iron Law

NO PUSH WITHOUT USER DECISION FIRST

The pipeline produced a commit. The user — not you — decides what happens next. Never auto-push, never assume.

Process

Step 1 — verify

Re-run the project verifier to confirm nothing slipped through:

apd:apd_verify_step()   # runs .codex/bin/verify-all.sh

If it fails, stop — loop back into debug. Do NOT present finish options on red tests.

Step 2 — show what the pipeline did

Pull apd:apd_pipeline_state() and summarize for the user:

  • Task name (from spec)
  • Which steps completed, timing if available
  • Spec criteria count
  • Adversarial outcome (total / accepted / dismissed) if present
  • Reviewed files count

Step 2b — did this run teach the project anything?

If the run ACCEPTED any adversarial finding, ask one question before moving on: does it generalize? A finding is an instance; the class is what is worth keeping. The fix already landed in code — that part is done.

If the same shape can appear in another module, another handler, another task, record it once:

apd pipeline lesson "<the rule, as a class>" "<what it cost>"
apd pipeline show lessons   # what the project already knows

Builders are told to read .apd/lessons.md before they start, so a recorded class becomes education that arrives automatically on every future dispatch. Write the RULE, not the patch — if it only makes sense for one file it belongs in a code comment. Do not record one per finding: past ~20 entries the file gets skimmed rather than read, and then it teaches nothing. Commit it; it is team knowledge, not session state.

Read the full file on GitHub · 235 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 235 lines · 110 tokens per session scan A 070a4e2b620e

Subscribe to this mod's changes

apd-finish is a skill published in the GitHub repository zstevovich/claude-apd (5 stars, last pushed 1mo ago), licensed MIT. It adds 110 tokens to every session and 2,071 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.