Skip to content

[3559 by Claude Opus 5.5] Official plugins: Cloudflare, Vercel and Netlify (deploy from a pull request) - #3655

Merged
propr-dev[bot] merged 3 commits into
3542-epic-plugin-system-xu8from
3559/claude-opus-5-5-official-plugins-cloudfla-20261117-0811-w3q
Nov 17, 2026
Merged

propr-dev[bot] merged 3 commits into
3542-epic-plugin-system-xu8from
3559/claude-opus-5-5-official-plugins-cloudfla-20261117-0811-w3q

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3559

Branch: 3559/claude-opus-5-5-official-plugins-cloudfla-20261117-0811-w3q
Commits: ✅ Changes committed (258a30b)


AI Processing Completed

Execution Details:

Summary:
I shipped the Cloudflare and Vercel plugins. I did not ship Netlify: its MCP server has no way to make a preview deploy, only one that publishes the site live. All the tests and checks I ran pass, but I did not test against a real Cloudflare account or Vercel team, and I did not run the full repository suite.

Cloudflare (packages/plugins/cloudflare/)

  • Servers: both use Cloudflare's API MCP server (https://mcp.cloudflare.com/mcp, tools docs, search, execute, whoami), each with its own API token.
    • The read item, cloudflare, applies automatically. Its token has Read permissions only. execute can call any endpoint, so Cloudflare's token check is what keeps this item read-only.
    • The write item, cloudflare-write, is not applied automatically. Its token adds Cloudflare Pages Edit and nothing else that writes.
  • How a preview is made:
    • A Git-connected Pages project gets a deployment of the pull request's branch.
    • A Worker using Workers Builds already gets a preview on every push, so the agent finds it and reports its URL.
    • Projects without a Git connection are not deployed; the reply says why.
  • Production: Cloudflare only deploys production from the production branch. So even with production allowed, the agent never deploys a pull request branch there.

Vercel (packages/plugins/vercel/)

  • Servers: both use https://mcp.vercel.com, each with its own sign-in. ProPR registers itself with Vercel automatically; I checked Vercel's live sign-in settings.
    • The read item, vercel, applies automatically and has 12 read tools.
    • The write item, vercel-write, is not applied automatically. It has create_deployment (no target means a preview), cancel_deployment and get_deployment.
  • Left out: every tool that creates a project or changes settings, domains or environment variables.
  • Duplicates: if Vercel's Git integration already deployed the pull request's latest commit, the agent reports that deployment instead of making another.

Shared by both plugins:

  • Skill: detects the framework and the configured project, never creates a project, deploys a preview unless production is allowed and asked for, and reports the URL and how to roll back.
  • Commands: /deploy (shared) plus /deploy-cloudflare or /deploy-vercel. Both run on pull requests and need write access.
  • Settings: account or team id, a default project per repository, and "Allow production deploys from commands" (off by default).
  • Automation template: "Deploy preview when review reaches the goal" starts as a dry run.
    • It only reports which pull requests are ready, with the command to run, because ProPR's comment tool for automations rejects slash commands.
    • If its mode is raised it still deploys nothing; a person with write permission runs the command.
  • Fixtures: each plugin has fixtures/tools.json, the vendor's documented tools with read or write access.
  • READMEs: setup, the exact permissions or roles to grant, source links and a manual smoke-test checklist.

Core changes the plugins needed (both documented in docs/docs/features/plugins.md)

  • autoApply on plugin servers: a server can set "autoApply": false so its library item starts not auto-applied. The default is still true, and an administrator's later choice is kept.
  • promptSettings on prompt commands: the task instruction states the named settings' saved values. This is how it says "Allowed target: preview only" when production is off. The comment's argument cannot add or change these lines.
  • Shared instruction builder: one helper builds the instruction for both core and a new test-kit function, testCommandInstruction, so the prompt-level tests check the same code core runs.

Tests

  • New suites: packages/plugins/test/deployPlugins.test.ts (11 tests) and packages/core/test/deployPlugins.test.ts (6 tests). I confirmed the auto-apply test fails if the core change is undone.
  • Existing suites that pass:
    • all 133 plugin-package tests.
    • the shared plugin and command tests.
    • test/checkPlugins.test.mjs and plugins:check ("11 plugins checked").
    • the core plugin command, contribution, store and Notion suites (49 tests).
    • the root intake, write-grant and template-catalog suites (66 tests).
    • the docs manifest test.
  • Typechecks and lint on the changed core and plugin files are clean.
  • The root intake suite needs GIT_CLONES_BASE_PATH and GIT_WORKTREES_BASE_PATH pointed at a writable folder in this container.

Docs: new pages docs/docs/plugins/cloudflare.md and docs/docs/plugins/vercel.md, with sidebar entries and rows in the plugins table.

Why there is no Netlify plugin (also recorded on the Cloudflare docs page)

  • Netlify's official server is @netlify/mcp 1.22.1 on npm, plus a remote server at https://mcp.netlify.com/mcp.
  • Its only deploy operation, deploy-site, builds the site and publishes it live; there is no draft or preview deploy.
  • Netlify's documentation does not list the server's tool names.

The issue asks for follow-up issues for any plugin not shipped. I didn't open one for Netlify, because filing issues is outside what this task should do; it's worth filing if Netlify adds a preview deploy.

No visual preview: nothing in the UI changed beyond two new catalog entries.

Acceptance criteria

  • AC1: met — both plugins pass plugins:check; packages/core/test/deployPlugins.test.ts (connect and enable give the read item auto-applied and the write item not; ordinary runs never get the write item); change in packages/core/src/plugins/pluginContributions.ts; Netlify not shipped, reason recorded in docs/docs/plugins/cloudflare.md
  • AC2: met — packages/core/test/deployPlugins.test.ts (refused with the write switch off and for a commenter without write permission; when allowed, one write grant with the skill and both servers, and the gateway sends the deploy token only under that grant)
  • AC3: met — promptSettings in packages/shared/src/plugins.ts; prompt-level tests in packages/plugins/test/deployPlugins.test.ts (test kit) and packages/core/test/deployPlugins.test.ts (saved settings: "Allowed target: preview only" until the setting is on)
  • AC4: met — packages/core/test/deployPlugins.test.ts (Cloudflare and Vercel both enabled: plain /deploy names /deploy-cloudflare and /deploy-vercel, the specific commands work, and plain /deploy follows the owner setting both ways)
  • AC5: met — validateAutomationTemplate in packages/plugins/test/deployPlugins.test.ts; offered only while enabled in packages/core/test/deployPlugins.test.ts
  • AC6: met — tests use the plugin test kit (testCommandInstruction in packages/plugins/testing/index.ts) and the synthetic MCP fixture (test/fixtures/extensionOAuthFixture.ts, plus a synthetic upstream at the gateway); packages/plugins/{cloudflare,vercel}/README.md (setup, narrowest permissions, smoke-test checklist); docs/docs/plugins/cloudflare.md, docs/docs/plugins/vercel.md

Review digest

Acceptance criteria (6 of 6 met, as stated by the agent)

  • ✅ AC1 (met): Each shipped plugin passes `plugins:check`; installing and connecting it yields the managed read item (auto-applied) and write item (not auto-applied). — both plugins pass `plugins:check`; `packages/core/test/deployPlugins.test.ts` (connect and enable give the read item auto-applied and the write item not; ordinary runs never get the write item); change in `packages/core/src/plugins/pluginContributions.ts`; Netlify not shipped, reason recorded in `d…
  • ✅ AC2 (met): `/deploy` on a pull request queues one follow-up task with the plugin's skill and write server attached only when the command's write switch is on and the commenter has write permission; otherwise it is refused with an explanatory reply. — `packages/core/test/deployPlugins.test.ts` (refused with the write switch off and for a commenter without write permission; when allowed, one write grant with the skill and both servers, and the gateway sends the deploy token only under that grant)
  • ✅ AC3 (met): `/deploy production` is refused unless the setting allows it (test at the prompt-construction level: the task instruction states the allowed target). — `promptSettings` in `packages/shared/src/plugins.ts`; prompt-level tests in `packages/plugins/test/deployPlugins.test.ts` (test kit) and `packages/core/test/deployPlugins.test.ts` (saved settings: "Allowed target: preview only" until the setting is on)
  • ✅ AC4 (met): With two deployment plugins enabled, specific commands work and plain `/deploy` follows the shared-command owner setting. — `packages/core/test/deployPlugins.test.ts` (Cloudflare and Vercel both enabled: plain `/deploy` names `/deploy-cloudflare` and `/deploy-vercel`, the specific commands work, and plain `/deploy` follows the owner setting both ways)
  • ✅ AC5 (met): The automation template validates against the automation contract and is offered only while the plugin is enabled. — `validateAutomationTemplate` in `packages/plugins/test/deployPlugins.test.ts`; offered only while enabled in `packages/core/test/deployPlugins.test.ts`
  • ✅ AC6 (met): Tests use the plugin test kit and the synthetic MCP fixture; README per plugin with setup, the exact permissions or scopes to grant (narrowest that allow preview deploys), and a manual smoke-test checklist; docs pages under `docs/docs/plugins/`. — tests use the plugin test kit (`testCommandInstruction` in `packages/plugins/testing/index.ts`) and the synthetic MCP fixture (`test/fixtures/extensionOAuthFixture.ts`, plus a synthetic upstream at the gateway); `packages/plugins/{cloudflare,vercel}/README.md` (setup, narrowest permissions, smoke-t…

Risk-tiered paths

  • High risk: none
  • Normal risk (12 files)
    • packages/core/src/plugins/pluginCommands.ts (+6/−4)
    • packages/core/src/plugins/pluginContributions.ts (+3/−1)
    • packages/plugins/cloudflare/automation-templates/deploy-preview-ready/template.json (added, +15/−0)
    • packages/plugins/cloudflare/icon.svg (added, +1/−0)
    • packages/plugins/cloudflare/manifest.json (added, +164/−0)
    • packages/plugins/registry.json (+2/−0)
    • packages/plugins/testing/index.ts (+26/−0)
    • packages/plugins/vercel/automation-templates/deploy-preview-ready/template.json (added, +15/−0)
    • packages/plugins/vercel/icon.svg (added, +1/−0)
    • packages/plugins/vercel/manifest.json (added, +172/−0)
    • packages/shared/src/commands.ts (+11/−1)
    • packages/shared/src/plugins.ts (+81/−1)
  • Low risk (15 files)
    • docs/docs/features/plugins.md (+33/−2)
    • docs/docs/plugins/cloudflare.md (added, +121/−0)
    • docs/docs/plugins/vercel.md (added, +98/−0)
    • docs/sidebars.ts (+2/−0)
    • packages/core/test/deployPlugins.test.ts (added, +248/−0)
    • packages/plugins/cloudflare/README.md (added, +142/−0)
    • packages/plugins/cloudflare/automation-templates/deploy-preview-ready/prompt.md (added, +28/−0)
    • packages/plugins/cloudflare/fixtures/tools.json (added, +27/−0)
    • packages/plugins/cloudflare/skills/cloudflare-deploy/SKILL.md (added, +72/−0)
    • packages/plugins/test/deployPlugins.test.ts (added, +157/−0)
    • packages/plugins/test/registry.test.ts (+4/−4)
    • packages/plugins/vercel/README.md (added, +125/−0)
    • packages/plugins/vercel/automation-templates/deploy-preview-ready/prompt.md (added, +28/−0)
    • packages/plugins/vercel/fixtures/tools.json (added, +232/−0)
    • packages/plugins/vercel/skills/vercel-deploy/SKILL.md (added, +58/−0)

Validation evidence

  • No repository validation commands ran.

Diff size: 27 files changed, +1,872/−13 lines

Detailed Logs:

  • Conversation: 196 messages
  • Session: 1d411c06-b76e-40f7-af84-c5ae57da68b9

Log files stored at:

  • conversation: /usr/src/app/logs/executions/issue-3559-2026-11-17T08-33-06-600Z-conversation.json
  • output: /usr/src/app/logs/executions/issue-3559-2026-11-17T08-33-06-600Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: I shipped the Cloudflare and Vercel plugins. I did not ship Netlify: its MCP server has no way to make a preview deploy, only one that publishes the site live. All the tests and checks I ran pass, but...


This PR was created automatically by ProPR after processing issue #3559.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!

…its MCP server has no way to make a preview deploy, only one that publishes the site live. All the tests and checks I ran pass, but I did not test against a real Cloudflare account or Vercel team, and I did not run the full repository suite.

Cloudflare (`packages/plugins/cloudflare/`)
- Servers: both use Cloudflare's API MCP server (`https://mcp.cloudflare.com/mcp`, tools `docs`, `search`, `execute`, `whoami`), each with its own API token.
  - The read item, `cloudflare`, applies automatically. Its token has Read permissions only. `execute` can call any endpoint, so Cloudflare's token check is what keeps this item read-only.
  - The write item, `cloudflare-write`, is not applied automatically. Its token adds Cloudflare Pages Edit and nothing else that writes.
- How a preview is made:
  - A Git-connected Pages project gets a deployment of the pull request's branch.
  - A Worker using Workers Builds already gets a preview on every push, so the agent finds it and reports its URL.
  - Projects without a Git connection are not deployed; the reply says why.
- Production: Cloudflare only deploys production from the production branch. So even with production allowed, the agent never deploys a pull request branch there.

Vercel (`packages/plugins/vercel/`)
- Servers: both use `https://mcp.vercel.com`, each with its own sign-in. ProPR registers itself with Vercel automatically; I checked Vercel's live sign-in settings.
  - The read item, `vercel`, applies automatically and has 12 read tools.
  - The write item, `vercel-write`, is not applied automatically. It has `create_deployment` (no target means a preview), `cancel_deployment` and `get_deployment`.
- Left out: every tool that creates a project or changes settings, domains or environment variables.
- Duplicates: if Vercel's Git integration already deployed the pull request's latest commit, the agent reports that deployment instead of making another.

Shared by both plugins:
- Skill: detects the framework and the configured project, never creates a project, deploys a preview unless production is allowed and asked for, and reports the URL and how to roll back.
- Commands: `/deploy` (shared) plus `/deploy-cloudflare` or `/deploy-vercel`. Both run on pull requests and need write access.
- Settings: account or team id, a default project per repository, and "Allow production deploys from commands" (off by default).
- Automation template: "Deploy preview when review reaches the goal" starts as a dry run.
  - It only reports which pull requests are ready, with the command to run, because ProPR's comment tool for automations rejects slash commands.
  - If its mode is raised it still deploys nothing; a person with write permission runs the command.
- Fixtures: each plugin has `fixtures/tools.json`, the vendor's documented tools with read or write access.
- READMEs: setup, the exact permissions or roles to grant, source links and a manual smoke-test checklist.

Core changes the plugins needed (both documented in `docs/docs/features/plugins.md`)
- `autoApply` on plugin servers: a server can set `"autoApply": false` so its library item starts not auto-applied. The default is still `true`, and an administrator's later choice is kept.
- `promptSettings` on prompt commands: the task instruction states the named settings' saved values. This is how it says "Allowed target: preview only" when production is off. The comment's argument cannot add or change these lines.
- Shared instruction builder: one helper builds the instruction for both core and a new test-kit function, `testCommandInstruction`, so the prompt-level tests check the same code core runs.

Tests
- New suites: `packages/plugins/test/deployPlugins.test.ts` (11 tests) and `packages/core/test/deployPlugins.test.ts` (6 tests). I confirmed the auto-apply test fails if the core change is undone.
- Existing suites that pass:
  - all 133 plugin-package tests.
  - the shared plugin and command tests.
  - `test/checkPlugins.test.mjs` and `plugins:check` ("11 plugins checked").
  - the core plugin command, contribution, store and Notion suites (49 tests).
  - the root intake, write-grant and template-catalog suites (66 tests).
  - the docs manifest test.
- Typechecks and lint on the changed core and plugin files are clean.
- The root intake suite needs `GIT_CLONES_BASE_PATH` and `GIT_WORKTREES_BASE_PATH` pointed at a writable folder in this container.

Docs: new pages `docs/docs/plugins/cloudflare.md` and `docs/docs/plugins/vercel.md`, with sidebar entries and rows in the plugins table.

Why there is no Netlify plugin (also recorded on the Cloudflare docs page)
- Netlify's official server is `@netlify/mcp` 1.22.1 on npm, plus a remote server at `https://mcp.netlify.com/mcp`.
- Its only deploy operation, `deploy-site`, builds the site and publishes it live; there is no draft or preview deploy.
- Netlify's documentation does not list the server's tool names.

The issue asks for follow-up issues for any plugin not shipped. I didn't open one for Netlify, because filing issues is outside what this task should do; it's worth filing if Netlify adds a preview deploy.

No visual preview: nothing in the UI changed beyond two new catalog entries.

Acceptance criteria
- AC1: met — both plugins pass `plugins:check`; `packages/core/test/deployPlugins.test.ts` (connect and enable give the read item auto-applied and the write item not; ordinary runs never get the write item); change in `packages/core/src/plugins/pluginContributions.ts`; Netlify not shipped, reason recorded in `docs/docs/plugins/cloudflare.md`
- AC2: met — `packages/core/test/deployPlugins.test.ts` (refused with the write switch off and for a commenter without write permission; when allowed, one write grant with the skill and both servers, and the gateway sends the deploy token only under that grant)
- AC3: met — `promptSettings` in `packages/shared/src/plugins.ts`; prompt-level tests in `packages/plugins/test/deployPlugins.test.ts` (test kit) and `packages/core/test/deployPlugins.test.ts` (saved settings: "Allowed target: preview only" until the setting is on)
- AC4: met — `packages/core/test/deployPlugins.test.ts` (Cloudflare and Vercel both enabled: plain `/deploy` names `/deploy-cloudflare` and `/deploy-vercel`, the specific commands work, and plain `/deploy` follows the owner setting both ways)
- AC5: met — `validateAutomationTemplate` in `packages/plugins/test/deployPlugins.test.ts`; offered only while enabled in `packages/core/test/deployPlugins.test.ts`
- AC6: met — tests use the plugin test kit (`testCommandInstruction` in `packages/plugins/testing/index.ts`) and the synthetic MCP fixture (`test/fixtures/extensionOAuthFixture.ts`, plus a synthetic upstream at the gateway); `packages/plugins/{cloudflare,vercel}/README.md` (setup, narrowest permissions, smoke-test checklist); `docs/docs/plugins/cloudflare.md`, `docs/docs/plugins/vercel.md`
@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix goal=8 max=10
Triggered automatically by the requested execution settings.

@propr-dev propr-dev Bot added the ultrafix label Nov 17, 2026
@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 10)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR adds declarative Cloudflare and Vercel deployment plugins with shared commands, administrator settings, documentation, and integration tests. It needs changes before merge: the deployment instructions mishandle two target-selection cases.

✅ Scoped write authorization — Commands use the existing permission check and single-use grants covering only their declared write servers.

✅ Preserved administrator choices — Server synchronization honors manifest autoApply defaults while retaining subsequent administrator changes.

✅ Shared instruction construction — Core and the plugin test kit use the same settings-aware instruction builder.

This review used the supplied diff and context only; no commands or tests were run. The authoritative checks show no failures and five pending checks.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F1: 🔴 Check the Pages production branch before deploying

  • Category: correctness

  • Required behavior: A default /deploy must create only a preview and must not deploy production while production deployment is disallowed.

  • Evidence: packages/plugins/cloudflare/skills/cloudflare-deploy/SKILL.md:38-42, also the deployment instructions in packages/plugins/cloudflare/manifest.json.

    1. A Git-connected Pages project uses main as its production branch, and an open pull request has main as its head branch and another branch as its base. Production deployment remains disabled in the plugin.
    2. The skill instructs the agent to call the Pages create-deployment endpoint with the pull request’s head branch, without checking that branch against the project’s production branch.
    3. That request deploys main to production under the behavior explicitly documented by this PR, despite the command being a default preview request.

    The write grant authorizes the Pages deployment token, whose Pages Edit permission does not distinguish previews from production. The general preview-only instruction conflicts with the specific claim that deploying any pull request head branch creates a preview; the existing tests check instruction text rather than this branch-selection case.

    static trace: The supplied skill and documentation establish both the unconditional branch selection and Cloudflare’s production-branch behavior. No external deployment was executed.

  • Minimum fix: Read the Pages project’s production branch before creating a deployment and refuse when the requested head branch matches it. Update both command prompts and the skill consistently, and cover this case in the instruction-level tests.

F2: 🔴 Match deployment reuse to the requested target

  • Category: correctness

  • Required behavior: When production is enabled and explicitly requested, the Vercel command must perform or identify a production deployment rather than substitute a preview.

  • Evidence: packages/plugins/vercel/skills/vercel-deploy/SKILL.md:31-35, and both command prompt fields in packages/plugins/vercel/manifest.json.

    1. Vercel’s Git integration has already created a READY preview for the pull request’s head commit.
    2. An authorized maintainer runs /deploy-vercel production with production allowed and a deploying account permitted to deploy production.
    3. Step 3 directs the agent to report the existing preview and create no duplicate. Both command prompts likewise instruct reuse whenever the Git connection already deployed the head commit, without conditioning reuse on the requested target.
    4. The command therefore returns the preview instead of performing the requested production deployment.

    The later production-target instruction does not resolve this early reuse instruction. Existing tests verify the production-setting sentence but do not examine reuse when the existing deployment has a different target.

    static trace: This follows directly from the new skill’s ordered steps and the matching unconditional reuse instructions in both commands.

  • Minimum fix: Resolve the requested, permitted target before searching for reusable deployments. Reuse only a deployment matching both the head commit and that target; update the skill and both command prompts, and cover production requests with an existing preview.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Record real-account smoke-test results

The synthetic tests provide useful evidence for command routing, credentials, and grants, but do not exercise vendor deployment behavior. Running the supplied smoke-test checklists would strengthen release confidence, particularly around OAuth roles and deployment inputs. This is additional integration evidence, not a separate verified code blocker.

Score

The authorization integration and shared instruction builder are sound in the supplied context, but two deployment-target defects require localized corrections. Current checks report no failures, with five still pending.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 5s
  • Tokens: 83,587 (82,372 in / 1,215 out)
  • Cost: $0.78

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F1 F2 S1

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 564601b

Addressed 1 AI review comment (IDs: 6943174207)

Addressed findings F1, F2

Summary of Changes

I fixed both findings in the skills, in both command prompts of each plugin, and in the docs and READMEs. These are instruction changes only. I did not run either plugin against a real Cloudflare account or Vercel team.

F1 – Cloudflare checks the Pages production branch first

  • Skill (cloudflare-deploy/SKILL.md): for a Git-connected Pages project, the agent now reads the project's production_branch through the read-only cloudflare server before it creates a deployment.
    • If the pull request's head branch is the production branch, nothing is deployed. The same goes if the production branch can't be read.
    • This holds whatever target was asked for, because a deployment of that branch would be production.
  • Prompts (/deploy and /deploy-cloudflare in cloudflare/manifest.json): they say the same thing. I also removed the line saying a Pages project "builds the pull request's branch as a preview", which was wrong when the head branch is the production branch.
  • Workers Builds has the same problem, so I fixed it too. That path only reports a build and deploys nothing, but it could report a production-branch build as a preview. The skill now reads the Worker's production branch from its Workers Builds trigger first, and both prompts say never to report a production-branch build as a preview.

F2 – Vercel reuses a deployment only if its target matches

  • Skill (vercel-deploy/SKILL.md): the order is now: decide the target (step 3), then reuse (step 4), then create (step 5).
    • Step 3 sets the target to production only when the setting allows it and the argument asks for it. Otherwise it is preview, and a production request that isn't allowed is refused.
    • Step 4 reuses a deployment only if it is of the head commit and has that same target. A deployment with no target counts as a preview.
    • So an existing preview, such as the one Vercel's Git integration makes, never answers a production request, and a production deployment never answers a preview request.
  • Prompts (/deploy and /deploy-vercel in vercel/manifest.json): the "reuse whenever the Git connection already deployed the head commit" sentence is replaced with the same decide-then-reuse rule.

Docs: docs/docs/plugins/cloudflare.md, docs/docs/plugins/vercel.md and both plugin READMEs now describe the new behaviour.

Tests: I added two tests to packages/plugins/test/deployPlugins.test.ts, which check the instruction text the commands produce, built with the plugin test kit:

  • Cloudflare: the skill reads the production branch before calling the create-deployment endpoint and refuses when the head branch matches it. Both commands carry the check, with production on and off.
  • Vercel: in the skill and in both commands, the target is decided before reuse, and an existing preview never answers a production request. This is checked with production allowed and production as the argument.

These pass:

  • all 135 plugin-package tests.
  • packages/core/test/deployPlugins.test.ts (6 tests).
  • test/checkPlugins.test.mjs (24 tests).
  • plugins:check ("11 plugins checked").
  • ESLint on the changed test file.

I did not run the new tests against the old text to watch them fail. I expect they would, since they look for wording that didn't exist before, such as production_branch.

There's nothing visual to preview.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • packages/plugins/cloudflare/manifest.json (+2/−2)
    • packages/plugins/vercel/manifest.json (+2/−2)
  • Low risk (7 files)
    • docs/docs/plugins/cloudflare.md (+2/−2)
    • docs/docs/plugins/vercel.md (+2/−2)
    • packages/plugins/cloudflare/README.md (+4/−1)
    • packages/plugins/cloudflare/skills/cloudflare-deploy/SKILL.md (+16/−7)
    • packages/plugins/test/deployPlugins.test.ts (+42/−0)
    • packages/plugins/vercel/README.md (+1/−1)
    • packages/plugins/vercel/skills/vercel-deploy/SKILL.md (+24/−17)

Validation evidence

  • No repository validation commands ran.

Diff size: 9 files changed, +95/−34 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 5m 38s
  • Tokens: 870,074 (861,722 in / 8,352 out)
  • Cost: $0.64

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…s of each plugin, and in the docs and READMEs. These are instruction changes only. I did not run either plugin against a real Cloudflare account or Vercel team.

I fixed both findings in the skills, in both command prompts of each plugin, and in the docs and READMEs. These are instruction changes only. I did not run either plugin against a real Cloudflare account or Vercel team.

**F1 – Cloudflare checks the Pages production branch first**
- **Skill** (`cloudflare-deploy/SKILL.md`): for a Git-connected Pages project, the agent now reads the project's `production_branch` through the read-only `cloudflare` server before it creates a deployment.
  - If the pull request's head branch is the production branch, nothing is deployed. The same goes if the production branch can't be read.
  - This holds whatever target was asked for, because a deployment of that branch would be production.
- **Prompts** (`/deploy` and `/deploy-cloudflare` in `cloudflare/manifest.json`): they say the same thing. I also removed the line saying a Pages project "builds the pull request's branch as a preview", which was wrong when the head branch is the production branch.
- **Workers Builds** has the same problem, so I fixed it too. That path only reports a build and deploys nothing, but it could report a production-branch build as a preview. The skill now reads the Worker's production branch from its Workers Builds trigger first, and both prompts say never to report a production-branch build as a preview.

**F2 – Vercel reuses a deployment only if its target matches**
- **Skill** (`vercel-deploy/SKILL.md`): the order is now: decide the target (step 3), then reuse (step 4), then create (step 5).
  - Step 3 sets the target to production only when the setting allows it and the argument asks for it. Otherwise it is preview, and a production request that isn't allowed is refused.
  - Step 4 reuses a deployment only if it is of the head commit and has that same target. A deployment with no target counts as a preview.
  - So an existing preview, such as the one Vercel's Git integration makes, never answers a production request, and a production deployment never answers a preview request.
- **Prompts** (`/deploy` and `/deploy-vercel` in `vercel/manifest.json`): the "reuse whenever the Git connection already deployed the head commit" sentence is replaced with the same decide-then-reuse rule.

**Docs:** `docs/docs/plugins/cloudflare.md`, `docs/docs/plugins/vercel.md` and both plugin READMEs now describe the new behaviour.

**Tests:** I added two tests to `packages/plugins/test/deployPlugins.test.ts`, which check the instruction text the commands produce, built with the plugin test kit:
- **Cloudflare:** the skill reads the production branch before calling the create-deployment endpoint and refuses when the head branch matches it. Both commands carry the check, with production on and off.
- **Vercel:** in the skill and in both commands, the target is decided before reuse, and an existing preview never answers a production request. This is checked with production allowed and `production` as the argument.

These pass:
- all 135 plugin-package tests.
- `packages/core/test/deployPlugins.test.ts` (6 tests).
- `test/checkPlugins.test.mjs` (24 tests).
- `plugins:check` ("11 plugins checked").
- ESLint on the changed test file.

I did not run the new tests against the old text to watch them fail. I expect they would, since they look for wording that didn't exist before, such as `production_branch`.

There's nothing visual to preview.

PR: #3655
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

This PR adds declarative Cloudflare and Vercel deployment plugins with separate credentials, command authorization, deployment instructions, and documentation. It needs a localized correctness fix before merge: the Cloudflare Pages workflow does not establish that the branch it deploys contains the requested pull request commit.

✅ Explicit write authorization — Command resolution checks the administrator’s write switch and repository permission before granting access to the named write servers.

✅ Shared instruction construction — Core and the plugin test kit use the same helper to include saved administrator settings in command instructions.

✅ Useful integration coverage — Added tests cover installation, automatic application, credential selection, command ownership, and template availability. The supplied current-head status reports 24 passed checks and no failed or pending checks.

This review uses the supplied diff and surrounding context; no commands or tests were run.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F3: 🔴 Verify the Cloudflare deployment source

  • Category: correctness

  • Required behavior: The new command explicitly requests deployment of the pull request’s head commit; a successful preview must correspond to that commit.

  • Evidence: packages/plugins/cloudflare/skills/cloudflare-deploy/SKILL.md:39–51 — Pages deployment creation selects only the branch name.

    1. A maintainer runs /deploy-cloudflare on a fork pull request whose head branch is feature at commit A. The configured Pages project is Git-connected to the base repository, which also has a non-production feature branch at different commit B.
    2. The skill checks that the project exists and that feature is not its production branch. Both checks pass.
    3. It instructs the agent to create a deployment using branch: feature, without checking that the connected repository is the pull request’s head repository or that its branch resolves to A.
    4. Under the branch-build behavior explicitly described by this skill, Pages builds B from its connected repository. The workflow then polls build status and reports the deployment, without requiring verification against A.

    The result is a successful preview of different code from the requested pull request. Project existence and production-branch checks do not establish source identity. The new tests assert production-branch instructions but do not cover differing repositories or commits.

    static trace: Based on the supplied command prompt and the skill’s stated branch-selection behavior; no live Cloudflare deployment was executed.

  • Minimum fix: Require source-repository and commit verification before deployment. Use an exact-commit deployment mechanism where supported; otherwise refuse when the connected source cannot be established as the requested head commit, including unsupported fork PRs. Verify the returned deployment commit before reporting success, and add a regression covering identical branch names with different commits.

Suggestions

These are optional follow-ups and are not sent to /fix.

S2: 🟢 Validate deployment tool inputs

The fixtures record tool names and access classifications, while the tests largely verify manifest and instruction text. Adding captured input schemas and representative deployment requests would help detect provider-contract mismatches. This is additional integration confidence, rather than a separate demonstrated blocker.

S3: 🟢 Clarify Cloudflare production settings

The Cloudflare setting’s help says enabling it permits production deployment, but the command and skill always refuse deployment of the PR branch to production. Aligning that help with the documented limitation would make configuration clearer; the existing refusal instructions already preserve the safer behavior.

Score

The authorization integration and passing checks are strong, but deploying the wrong source commit is a material correctness issue requiring correction before merge.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 33s
  • Tokens: 86,771 (85,819 in / 952 out)
  • Cost: $0.78

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F3 S2 S3

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit def75c6

Addressed 1 AI review comment (IDs: 6943952045)

Addressed finding F3

Summary of Changes

I fixed F3: /deploy-cloudflare now checks where a Pages deploy will build from before creating it, and checks which commit Cloudflare actually built before calling it this pull request's preview. Like the earlier fixes, these are instruction changes only. Nothing was run against a real Cloudflare account.

What changed

  • Before deploying (Pages): Pages' "create deployment" endpoint takes only a branch name, not a commit. So the skill now has the agent find the pull request's head repository and head commit, then read the repository the project is connected to (source.config.owner / repo_name). It deploys nothing, and says why, when:

    • the head commit can't be found,
    • the connected repository can't be read, or
    • the connected repository isn't the pull request's head repository.

    That last case refuses every pull request from a fork, which covers your scenario: a same-named feature branch in the base repository at different code.

  • After deploying (Pages): the agent reads the deployment's recorded commit (deployment_trigger.metadata.commit_hash). If it's missing or isn't the head commit (for example, the branch moved after the check), the agent doesn't report it as this pull request's preview. It says which commit was built and that the command can be run again. The report's "commit deployed" is now the commit Cloudflare recorded, which must be the head commit.

  • Workers Builds: this had the same weak spot, so the skill now accepts only a build of exactly the head commit, never another build that just has the same branch name.

  • Command prompts: both /deploy and /deploy-cloudflare in manifest.json state the same rules. The Cloudflare docs page and README match, and the README's smoke-test checklist has a new fork pull request step.

One gap can't be closed: Pages has no way to deploy an exact commit from a Git-connected project, so the branch can still move between the check and the build. The after-deploy commit check catches that case and won't call the result a success.

Tests: I added a regression to packages/plugins/test/deployPlugins.test.ts. It covers the fork case and the after-deploy commit check in the skill and in both commands' instructions, with production allowed and not allowed. I also confirmed it fails against the previous skill text, and updated one existing test that matched the old line wrapping. All 136 plugin-package tests pass and plugins:check reports 11 plugins checked.

Something I didn't change: the Vercel skill already deploys by exact commit, so it doesn't have this problem. But its "the repository" in gitSource doesn't say whether that means the head repository or the base repository, which matters for fork pull requests. That's outside F3.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • packages/plugins/cloudflare/manifest.json (+2/−2)
  • Low risk (4 files)
    • docs/docs/plugins/cloudflare.md (+2/−2)
    • packages/plugins/cloudflare/README.md (+12/−3)
    • packages/plugins/cloudflare/skills/cloudflare-deploy/SKILL.md (+32/−13)
    • packages/plugins/test/deployPlugins.test.ts (+31/−1)

Validation evidence

  • No repository validation commands ran.

Diff size: 5 files changed, +79/−21 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 6m 16s
  • Tokens: 716,640 (708,164 in / 8,476 out)
  • Cost: $0.61

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…eploy will build from before creating it, and checks which commit Cloudflare actually built before calling it this pull request's preview. Like the earlier fixes, these are instruction changes only. Nothing was run against a real Cloudflare account.

I fixed F3: `/deploy-cloudflare` now checks where a Pages deploy will build from before creating it, and checks which commit Cloudflare actually built before calling it this pull request's preview. Like the earlier fixes, these are instruction changes only. Nothing was run against a real Cloudflare account.

**What changed**
- **Before deploying (Pages):** Pages' "create deployment" endpoint takes only a branch name, not a commit. So the skill now has the agent find the pull request's head repository and head commit, then read the repository the project is connected to (`source.config.owner` / `repo_name`). It deploys nothing, and says why, when:
  - the head commit can't be found,
  - the connected repository can't be read, or
  - the connected repository isn't the pull request's head repository.

  That last case refuses every pull request from a fork, which covers your scenario: a same-named `feature` branch in the base repository at different code.
- **After deploying (Pages):** the agent reads the deployment's recorded commit (`deployment_trigger.metadata.commit_hash`). If it's missing or isn't the head commit (for example, the branch moved after the check), the agent doesn't report it as this pull request's preview. It says which commit was built and that the command can be run again. The report's "commit deployed" is now the commit Cloudflare recorded, which must be the head commit.
- **Workers Builds:** this had the same weak spot, so the skill now accepts only a build of exactly the head commit, never another build that just has the same branch name.
- **Command prompts:** both `/deploy` and `/deploy-cloudflare` in `manifest.json` state the same rules. The Cloudflare docs page and README match, and the README's smoke-test checklist has a new fork pull request step.

One gap can't be closed: Pages has no way to deploy an exact commit from a Git-connected project, so the branch can still move between the check and the build. The after-deploy commit check catches that case and won't call the result a success.

**Tests:** I added a regression to `packages/plugins/test/deployPlugins.test.ts`. It covers the fork case and the after-deploy commit check in the skill and in both commands' instructions, with production allowed and not allowed. I also confirmed it fails against the previous skill text, and updated one existing test that matched the old line wrapping. All 136 plugin-package tests pass and `plugins:check` reports 11 plugins checked.

**Something I didn't change:** the Vercel skill already deploys by exact commit, so it doesn't have this problem. But its "the repository" in `gitSource` doesn't say whether that means the head repository or the base repository, which matters for fork pull requests. That's outside F3.

PR: #3655
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

Ready to merge within the supplied scope. The PR adds declarative deployment plugins with focused core support for server defaults and administrator settings in command instructions.

✅ Scoped write access — Command resolution checks the administrator switch and commenter permission, then grants access to the selected plugin’s write servers.

✅ Shared instruction construction — Core and the plugin test kit use pluginCommandTaskInstruction, reducing divergence between tested prompts and queued instructions.

✅ Deployment safeguards — Cloudflare instructions check production branches, repository identity and deployed commits; Vercel reuse requires both the head commit and requested target.

The authoritative checks report 24 passed, none failed or pending. This review was static; no commands were run or files modified.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S4: 🟢 Exercise vendor deployment contracts

The new fixtures primarily enumerate tool names, while deployment tests assert instruction text and authorization plumbing. Recording representative vendor request schemas and responses would help detect API incompatibilities that these tests cannot catch. This is optional additional coverage; real-account behavior remains unverified by this review.

S5: 🟢 Qualify automatic-apply documentation

The plugin READMEs and user documentation say write servers are “never applied automatically,” while pluginContributions.ts deliberately preserves an administrator’s later autoApply: true choice, which the new integration test verifies. Describe this as the installation default and mention the administrator override. Existing write-authorization checks still apply, so this wording clarification is non-blocking.

Score

The implementation is cohesive, has meaningful authorization and integration coverage, and has no verified merge blocker. Vendor deployment behavior has less direct validation than the core integration.

Score: 8/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 39s
  • Tokens: 85,382 (84,815 in / 567 out)
  • Cost: $0.77

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S4 S5

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 17, 2026
@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ GitHub auto-merge is turned off for this repository, so ProPR merges this PR itself once it is ready (checks passed or no CI configured, and the review goal met).

To let GitHub merge it the moment required checks pass, enable Settings → General → Pull Requests → Allow auto-merge.

@propr-dev
propr-dev Bot merged commit b317dc3 into 3542-epic-plugin-system-xu8 Nov 17, 2026
44 checks passed
@propr-dev
propr-dev Bot deleted the 3559/claude-opus-5-5-official-plugins-cloudfla-20261117-0811-w3q branch November 17, 2026 09:59
@propr-dev propr-dev Bot changed the title 🔨 [3559 by Claude Opus 5.5] Official plugins: Cloudflare, Vercel and Netlify (deploy from a pull request) [3559 by Claude Opus 5.5] Official plugins: Cloudflare, Vercel and Netlify (deploy from a pull request) Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants