/dpf-platform:dpf-pr-with-dcofrom dpf-platform
Opens a DCO-signed pull request for DPF repos. Verifies build gate, branch guard, DCO sign-off, and overlap sweep before pushing. Use when implementation is complete and ready to merge.
Ships in dpf-platform. 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.
None: SKILL.md is the whole skill.
DPF's PR contract is strict and non-negotiable: every change lands via PR, every commit is DCO-signed, branches are based on origin/main, PRs open only when ready to merge (not as parking places), PRs are regular ready-for-review PRs, never GitHub draft PRs, and the overlap sweep happens before push so sibling sessions don't ship the same fix twice. This skill walks the canonical PR opening flow with all DPF gates applied.
dpf-systematic-debugging Phase 4, where a structural pass is not verification).git commit --amend --no-edit -s (or for older commits, git rebase --signoff) BEFORE running this skill.| Source | Path | What to extract |
|---|---|---|
| PR contract | AGENTS.md §4 | Full canonical rules: branch naming, DCO, squash-and-delete, branch-guard |
| Build gate | AGENTS.md §5 | The 4 checks that must pass before claiming "ready to merge" |
| Recent main | git log origin/main --oneline -20 | What the base is so the PR description references real prior context |
| Open PRs | gh pr list --state open --limit 50 | Overlap check per feedback_pr_overlap_check_before_pushing |
| Pre-commit hooks | .githooks/pre-commit | What runs locally vs in CI (gitleaks + typecheck local; full build CI) |
kernel/principles/all-changes-land-via-pr — even maintainer changes.kernel/principles/dco-sign-off-required — every commit needs Signed-off-by:.kernel/principles/always-push-after-committing — local-only commits are invisible to CI.kernel/principles/branch-guard-before-implementation — abort if on main or detached HEAD.kernel/principles/one-concern-per-pr — refuse to bundle unrelated changes.Branch guard. Confirm you're NOT on main and NOT detached:
git status --short --branch
git branch --show-current
If main or (HEAD detached at ...) — STOP. Either branch off origin/main first or move work to the right branch. Never push fix work to main.
Overlap sweep. Per feedback_continuous_overlap_check (re-sweep before every push, not just session start):
gh pr list --state open --limit 50 --json number,title,headRefName
git log origin/main --since="3 days ago" --oneline
If you find a sibling PR fixing the same surface, STOP and coordinate. Two PRs landing the same fix is a waste at best and a merge-conflict spiral at worst.
Verify build gate. Per AGENTS.md §5:
cd apps/web && pnpm exec vitest run # affected tests
cd apps/web && pnpm typecheck # typecheck
cd apps/web && pnpm next build # if epic-completion or UI surface
For UX changes: drive the change against the running app (/run or /verify skill) and capture dynamic-analysis evidence.
Before requesting the shared sandbox, run the cheap deterministic checks:
pnpm gate:context
pnpm run pregate:preflight
Resolve the prospective constraints and host-side guard failures first. Do not spend a scarce sandbox lease discovering a missing PR trailer, plan receipt, derived artifact, or source-policy violation.
3b. Freeze the local review target. Create the DCO-signed commit that contains the complete concern, confirm the worktree is clean, and compute the exact base tree, head tree, and committed-diff digest. Do not review an uncommitted or moving tree.
3c. Local-CI sandbox gate (default-on pre-push, BI-C74F4DE9). For runtime-code branches, run pnpm run pregate before the push — the chained pre-push hook refuses an ungated push otherwise. Carry the evidence into the PR body as a trailer so pnpm pr:health reads the branch as merge-ready even when checked from another machine:
Local-CI-Evidence: <evidence-record-id> (<branch>@<sha>)
If the gate was consciously skipped (docs-adjacent config, verified-clean revert), attest explicitly instead: Local-CI-Override: <reason>. A runtime-code PR with neither is a pr:health blocker.
3d. Independently review the exact committed change. Follow the semantic review publication procedure. Call review_semantic_change after its gate evidence exists; record any returned receipt and validate the current tree. For a large diff, pass artifactSource: { baseSha, headSha } instead of pasting artifact; the server reads the exact diff itself. That procedure distinguishes an enforced refusal, a shadow observation, a code finding and unavailable reviewer infrastructure. Reuse existing scoped operator authorization for bounded recovery; do not request it again solely because the phase changed. Client assessments retain their provenance and never become fabricated native receipts.
DCO check. Every commit on your branch must have Signed-off-by::
git log origin/main..HEAD --pretty=format:'%h %s%n%(trailers:only,unfold)' | grep -B1 Signed-off-by || echo "MISSING DCO"
If MISSING DCO, fix with git commit --amend --no-edit -s (HEAD only) or git rebase --signoff origin/main (whole branch). Do NOT push without sign-off — DCO bot will block merge.
Concurrent-session safety. Stage with explicit paths (per feedback_git_commit_only_for_concurrent_sessions):
git add <path1> <path2> # not `git add -A` or `git add .`
Even if you're sole-owner of the worktree, this is belt-and-suspenders against accidental cross-thread file sweeps.
Push.
git push # tracks origin/<branch>
-u origin <branch> only on the first push.
Prepare and mechanically validate the PR body. Write the final Markdown body to a temporary file using the client's native filesystem tool, including exact verification evidence and any required trailers. After the final push, run:
pnpm pr:ready -- --pr-body-file <path-to-pr-body.md>
This command derives its local checks from the same policy profiles as CI, validates Git/DCO/push state and PR trailers, and leads with the gate-context checklist for the exact diff. If it reports PR readiness: NOT READY, fix every blocker and rerun it. Do not create the PR yet.
Open the regular PR only after pr:ready reports READY. Do not use --draft; a DPF PR is the ready-for-review / ready-to-merge signal. Reuse the exact body file that passed readiness:
gh pr create --title "<convention>: <imperative summary>" --body-file <path-to-pr-body.md>
docs:, fix:, feat:, chore:, spec:). Under ~72 chars.gh pr view --json isDraft
Expected: isDraft is false. If it is true and the branch gates are green, run gh pr ready <number> immediately; if the gates are not green, close the PR and keep the branch.Read merge readiness by exit code, not prose. pnpm pr:health <number> prints the verdict word first and exits with it:
| Exit | Verdict | What to do |
|---|---|---|
| 0 | READY / MERGED | Nothing; the queue merges a READY PR. |
| 75 | WAITING | Checks are still running (ETA when known). Not a failure and not a blocker — wait. |
| 1 | FAILED | Fix the check the line names. |
| 2 | BLOCKED-ACTION | The named actor must act (conflict, review thread, draft, local-CI evidence, closed PR). |
| 3 | UNREADABLE | Usage error or GitHub unreadable; retry. |
To wait for a verdict in ONE call, run pnpm pr:health <number> --wait [--timeout <minutes>]; it polls internally and exits with the terminal verdict (75 again only if the timeout passes with checks still running).
Report the PR URL. With the BI id (if applicable) and the build-gate evidence summary so the operator can ratify without re-running checks. A WAITING PR is "open, CI running" — never report it as blocked.
**Pull request opened.**
- PR: <URL>
- Branch: <prefix>/<slug> (<N> commits ahead origin/main, all DCO-signed)
- Linked BI(s): <BI-XXXXXXXX>, ...
- Build gate: vitest <pass>, typecheck <pass>, next build <pass | n/a>, UX <evidence summary | n/a>
- Overlap sweep: <no overlap | named PR ids handled how>
- Ready for: <merge | review | gated on X>
main directly. Branch protection enforces this on the remote, but a force push from a misconfigured local could bypass — don't try.-s. git commit --no-verify skips the local typecheck hook, but the DCO trailer is the bot's hard gate — there's no way to skip and merge.--draft, do not use a connector setting that creates drafts, and verify isDraft=false after creation.git add -A / git add . in a worktree where concurrent sessions exist. Use explicit paths.Three commits landed on PR #1119 from this worktree, all following this skill's flow:
b930f46b (memo draft): branched off origin/main, signed, explicit git add docs/superpowers/drafts/2026-05-24-...md, pre-commit gitleaks scan passed, pushed, PR opened with overlap sweep showing zero conflict.27729864 (audit report): same flow, explicit-path stage, signed, pushed to the same branch.560a84d8 (semantic-fallback fix): same flow, plus full vitest suite run (946/952 — 2 unrelated cold-start flakes), typecheck clean, pre-commit hook re-ran scoped typecheck which passed.All three commits carry Signed-off-by: Mark Bodman <[email protected]> and Co-Authored-By: Claude Opus 4.7 <[email protected]> trailers. DCO bot accepted all three on push.
docs/superpowers/_templates/pr-explainer.template.html and link it from the description. See html-artifacts-guide.md. Additive only; Markdown PR bodies remain the default.dpf-worktree-per-sessiondpf-finishing-a-development-branch (integration-shape decisions)all-changes-land-via-pr, dco-sign-off-required, branch-guard-before-implementationWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub opendigitalproductfactory/opendigitalproductfactory --plugin dpf-platform88 skills in this plugin
/asset-inventory-reconciliationReconcile recorded against observed assets.Other plugins' skills for the same job