Автоматический чеклист готовности задачи к PR

★ 6.9 · code-review-automation

Проверка готовности задачи к сдаче is a Claude Code skill that runs a Definition of Done checklist for the current wp-rocket branch and returns a structured JSON report with PASS/WARN/FAIL status and evidence for each of six criteria. Reach for it when you need more than green tests before merging: when a developer wants to catch missing unit tests or undocumented hooks before opening a PR, when the orchestrator needs an independent second opinion after implementation handoff, or when the team wants to enforce a hard "no follow-up test tickets" policy. The skill operates in two modes: Layer 1 runs inside backend-agent or frontend-agent as a self-correction step — all FAILs must be resolved before handoff, so the agent can only hand off with PASS or WARN; Layer 2 is an independent orchestrator gate run after the PR is open, can return FAIL, and produces a layer1_delta field listing issues L1 missed. Six checks cover: manual testing confirmation in the PR description, automated test existence and results (unit via composer test-unit and scoped integration via phpunit), public API documentation updates (WordPress hooks, REST routes, WP-CLI commands, option keys), changelog entry, diff scope against declared file_scope, and a final smoke-test. Invocation parameters: layer ("1" or "2"), optional file_scope array, base_branch (defaults to develop), and pr_url (required for Layer 2).