From claude-apd
MANDATORY after every successful APD pipeline commit. Use as soon as the pipeline reports commit done — verifies tests from a clean state, shows the pipeline report, presents four options (push, push+PR, keep local, discard), executes the user's choice. Triggers on "after commit", "push", "PR", "pull request", "deploy", "next", "pipeline done", "shipped", commit hash present in pipeline state.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-apd:apd-finishThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
```
NO PUSH WITHOUT USER DECISION FIRST
The pipeline produced a commit. Now the user decides what happens with it. Never auto-push, never assume.
Use when:
Skip when:
apd-debug, not finishdigraph finish {
VERIFY [label="1. Verify\ntests pass"];
OPTIONS [label="2. Present options"];
PUSH [label="Push to remote"];
PR [label="Push + Create PR"];
KEEP [label="Keep local"];
DISCARD [label="Discard (confirm)"];
VERIFY -> OPTIONS;
OPTIONS -> PUSH [label="1"];
OPTIONS -> PR [label="2"];
OPTIONS -> KEEP [label="3"];
OPTIONS -> DISCARD [label="4"];
}
git log --oneline -1
bash "$(git rev-parse --show-toplevel)/.claude/scripts/verify-all.sh"
If tests fail → fix before proceeding.
bash "$(git rev-parse --show-toplevel)/.claude/bin/apd" report
Show the formatted pipeline recap so the user sees what was done before deciding.
Pipeline complete. What would you like to do?
1. Push to remote (current branch)
2. Push and create a Pull Request
3. Keep local (I'll handle it)
4. Discard this work
APD_ORCHESTRATOR_COMMIT=1 git push -u origin <branch>
APD_ORCHESTRATOR_COMMIT=1 git push -u origin <branch>
gh pr create --title "<feature>" --body "$(cat <<'EOF'
## Summary
<what changed>
## APD Pipeline
- Spec: approved
- Builder: <agents used>
- Reviewer: code-reviewer (opus/max) — verdict: PASS
- Verifier: all tests pass
- Pipeline duration: <time>
## Test Plan
- [ ] <verification steps>
EOF
)"
Report branch name and status. Done.
Require typed confirmation: "Type 'discard' to confirm."
git checkout main
git branch -D <branch>
| Thought | Reality |
|---|---|
| "User probably wants me to push" | Never assume. Ask. |
| "I'll push and create PR in one go" | User might want to review locally first. |
| "Skip verification, we just ran tests" | Verify again. Something might have changed. |
| "Force push to fix the branch" | Never force push. guard-git blocks it anyway. |
Example 1 — Clean pipeline, user picks Push.
Input: apd pipeline status shows commit done. verify-all.sh returns green. User has not yet decided.
Output:
Pipeline complete. What would you like to do?
1. Push to remote (current branch)
2. Push and create a Pull Request
3. Keep local (I'll handle it)
4. Discard this work
> 1
APD_ORCHESTRATOR_COMMIT=1 git push -u origin feature/order-refund
→ https://github.com/org/repo/tree/feature/order-refund
Example 2 — Verifier red blocks the finish menu.
Input: Pipeline reports commit done, but rerunning verify-all.sh from clean shows two failing integration tests (OrderRefundSpec.refundFailsTwice, WebhookSpec.signatureMismatch).
Output: Do NOT present the four options. Hand off to apd-debug:
Verifier red after commit:
- test/integration/OrderRefundSpec.refundFailsTwice
- test/integration/WebhookSpec.signatureMismatch
Switching to apd-debug — Phase 1: trace data flow on the two failures.
Example 3 — User picks PR, body carries the pipeline summary.
Input: User picks option 2 after a clean pipeline (6 R-criteria, 11m 32s, adversarial 5/3/2).
Output: PR opened with this body:
## Summary
Add idempotent POST /orders/:id/refund with audit log.
## APD Pipeline
- Spec: approved
- Builder: backend-api (sonnet/xhigh)
- Reviewer: code-reviewer (opus/max) — verdict: PASS
- Adversarial: 5/3/2 (total/accepted/dismissed)
- Verifier: all tests pass
- Duration: 11m 32s
## Test Plan
- [ ] POST /refund twice with same Idempotency-Key → second is a no-op
- [ ] webhook fires exactly once on the first call
Return the PR URL to the user; do not auto-start a new pipeline.
You're done when:
discard literally before any branch was removedapd-debug (do NOT present finish options on red tests)Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub zstevovich/claude-apd --plugin claude-apd