Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

rp-execution-policy

БесплатноЗапускает вложенные скриптыНе проверен

Applies cross-stage execution safety policy and writes the aggregate migration completion artifact after all delivery-specific terminal evidence validates.

wixот wix★ 40 звёзд на GitHub

Об этом скилле

rp-execution-policy

Use this resource for the execution approval gate and aggregate finalization.

For awaiting_execution_approval, present the generated execution plan, wait for the required user acceptance in normal mode, and persist it in orchestration/approvals.json. In explicit user-requested 1-click mode (automationMode=one_click, source=user), the router skips this gate only after every gated output validated, and the route script records the execution approval as the agent when it enters setup or import. Never ask for it or run auto-approve yourself, whatever setup/setup-blockers.json says. Then route again. A non-user-authored one_click value is normal interactive mode and must wait for user acceptance.

Disclosing what was read from a credential-bearing source surface

If the run read payment-gateway configuration from the source, the plan presented at the approval gate must say so: that gateway configuration was read, which gateways were found, how many are enabled, how many credential fields are configured, and that no credential value was retained. The source adapter produces that line — for WordPress, describeGatewaySummary() in rp-source-wordpress/lib/gateway-summary.mjs.

A run that reports "N gateways, M enabled, K credential fields present, 0 values retained" is auditable. One that read the same thing silently is not, and the user approving the plan has no way to tell the two apart. Never put a credential value, prefix, length or hash into the plan report itself.

Reporting the payments section of the plan

If the run imports payment records, refunds or invoice documents, build that section of the plan with lib/payments-report.js rather than by hand. It enforces three things a hand-written summary has got wrong before, and it BLOCKS the approval gate rather than printing a caveat:

  • The payment outcomes must sum to the discovered source-order population. A report whose numbers do not add up is hiding orders. The builder returns approvable: false with the shortfall named.
  • Zero is a result. Every outcome and every count is emitted even at zero, so "0 refunds found" is reviewable at a glance. An implausible number is cheapest to catch here.
  • Candidate coverage is not writable coverage. Orders carrying a reference-shaped value and orders whose reference can be defensibly attributed are separate lines. Collapsing them overstates fidelity.

The denominator must come from the run's own reconciled reads (from: 'run-reconciled-read'), not from a prior survey. Where a survey counted differently, both numbers are shown and the discrepancy must be reconciled before the pilot.

The provider inventory carries identifier, display name and enabled state only — a credential-shaped field on a provider blocks the gate. The phrase "you will lose your history" is prohibited: it is false for payment records, which are provider-independent.

Run:

node skills/wix-replatform/scripts/migration-completion.js <projectDir>

This command validates backend completion accounting and, for website delivery, the frontend completion receipt. It writes completion/migration-completion.json atomically.

It also refuses, on both delivery modes, unless the run produced its post-execution handoff and its execution log. A management run produces no website and used to require no handoff at all, which is how a backend-only migration could finalize with no account of itself anywhere in the project. The typed refusal reasons are:

Reason Meaning
missing_execution_log no execution-log.md; route back to the import step that owes the chronology
missing_post_execution_handoff no execution/review/migration-handoff.json; generate it from the final outcome record
completion_report_missing_last_write the completion report records no lastWriteAt, so nothing can prove the handoff postdates the import
post_execution_handoff_predates_last_write the handoff was generated before the run's last write — it describes the plan, not the run

The last two compare against the completion report's own recorded last-write timestamp, never a file mtime: an mtime is refreshed by a copy and proves nothing. If validation fails, do not manufacture completion; route again to the module that owns the missing or stale artifact.

Entity-QA attestation gate

The same finalizer also refuses without a fresh, complete execution/qa/entity-qa-attestation.json that matches the current execution/completion-report.json digest and covers every mapped entity/subtype with matching counts (rp-execute-import/SKILL.md's "Entity-by-entity QA" section), including each mapped entity's archive.<entity> source-archive row when the report carries one. The refusal carries entityQa: { qaStatus, entities, recheck }:

qaStatus Meaning Action
missing no attestation file, it doesn't parse as JSON, its sch
Полный SKILL.md на GitHub

Установить rp-execution-policy в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

lib/coupon-currency-plan-report.jslib/payments-report.js

FAQ

Что делает скилл rp-execution-policy?

Applies cross-stage execution safety policy and writes the aggregate migration completion artifact after all delivery-specific terminal evidence validates.

Как установить скилл rp-execution-policy?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл rp-execution-policy запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить rp-execution-policy с