Claude Code skills for deploying applications to the WP Engine Headless platform via the direct upload API. Designed for teams using VCS not natively integrated with WP Engine (Azure Repos, self-hosted GitLab or Bitbucket, etc.).
Packaged as an Agent Skills plugin — works with Claude Code, Cursor, GitHub Copilot, VS Code, Gemini CLI, OpenAI Codex, Roo Code, and any other Agent Skills-compatible tool.
| Skill | Purpose |
|---|---|
wpe-direct |
Authenticate, create apps/environments, and deploy zips via the WP Engine API |
wpe-package |
Wrap a pre-built static/SPA site in an Express server and zip it into the structure WP Engine requires (React, Vue, Svelte — not SSR frameworks) |
wpe-next |
Package and deploy a Next.js app — SSR, App Router, and API routes fully supported |
replit-default-deployment |
When a session is running inside Replit, keeps Autoscale as the default target and gates target resolution before any scaffolding |
Unzip the skills package, then:
-
Register the marketplace — from your shell (not inside Claude Code):
claude plugin marketplace add /path/to/headless-deployment-skill
-
Discover and install — open Claude Code and run:
/pluginThis opens the Discover tab. Find
wpe-headless-deployand install it. All four skills (wpe-direct,wpe-package,wpe-next,replit-default-deployment) are included in the plugin. -
Restart Claude Code. Skills are picked up at session start.
You can also list installed plugins from your shell with
claude plugin list.
If you prefer not to use the plugin system, copy the skill folders directly:
mkdir -p .claude/skills
cp -r /path/to/headless-deployment-skill/skills/wpe-direct .claude/skills/
cp -r /path/to/headless-deployment-skill/skills/wpe-package .claude/skills/
cp -r /path/to/headless-deployment-skill/skills/wpe-next .claude/skills/
cp -r /path/to/headless-deployment-skill/skills/replit-default-deployment .claude/skills/Then restart Claude Code.
You will receive the skills as a zip file. Unzip it to find the skills/
folder containing the four skill directories.
-
In your Repl, go to Settings → Customization → Skills.
-
Click Add → Write a skill.
-
Create each skill by filling in the fields below. For the Instructions field, open the matching
SKILL.mdfile from the zip and copy everything below the---frontmatter block.Name Description wpe-directDeploy an app to WP Engine Headless (Atlas) via direct upload — handles credentials, app and environment setup, packaging, and zip upload. wpe-packagePackage a static or SPA site (React, Vue, Svelte) for WP Engine Headless — wraps the build output in an Express server and creates the zip structure required for upload. wpe-nextPackage and deploy a Next.js app to WP Engine Headless — SSR, App Router, and API routes are fully supported. replit-default-deploymentWhen running inside Replit, keep Replit Autoscale as the default deployment target unless the user explicitly requests another platform or deployment type. -
Set sharing to Required for each skill, then click Create skill.
- Go to Settings → Customization → Instructions.
- Open
CUSTOMIZATION-INSTRUCTIONS.mdfrom the zip and copy the entire code block inside it. - Paste it into the instructions field and save.
- From the zip, drag
replit.mdinto your Repl's project root using the file tree in the sidebar. - From the zip, drag the entire
skills/folder into your Repl. The agent needs the deployment scripts atskills/wpe-direct/scripts/,skills/wpe-next/scripts/, andskills/wpe-package/scripts/.
-
Open the Secrets tab in your Repl (lock icon in the Tools panel).
-
Add the following secrets:
Secret Value WPE_USER_IDYour WP Engine API User ID WPE_API_SECRETYour WP Engine API Secret WPE_APP_NAMEYour WP Engine app name (optional — the agent will ask if missing)
Start a new agent session and ask "Deploy my app to WP Engine". The skills and customization instructions will enforce the compatibility gate and deployment target resolution automatically.
Log in to the WP Engine User Portal → API Access → Generate Credentials. You will see a User ID and API Secret (the secret is shown once — copy it immediately).
When you first ask Claude Code to deploy, it will prompt you for these values and write the .env file for you. You do not need to edit any files manually.
Ask Claude Code: "Deploy my app to WP Engine" — it will handle the rest: checking credentials, creating the app and environment if needed, packaging, and deploying. It will only ask you when a genuine decision is needed (such as choosing a WordPress install when multiple options are available).
wpe-direct status # check credentials, envs, and first wpInstall (run this first)
wpe-direct list # list environments
wpe-direct list-installs # list WordPress installs available as wpInstall
wpe-direct deploy <zip> <env> # deploy a package
wpe-direct create-env <name> <wpInstall> # create an environment
wpe-direct update-env <name> KEY=VALUE # set env vars (run after a deploy — see API limitations)
wpe-direct delete-env <name> --confirm # delete an environment
wpe-direct create-app [appId] [region] # create a new app
wpe-direct delete-app [appId] --confirm # delete an app entirely
wpe-direct full [env] # build + package + deploy
wpe-direct help
Invoke as:
node skills/wpe-direct/scripts/wpe-direct.js <command>
- uses: wpengine/wpe-headless-deploy-skill@<sha>
with:
zip: app.zip
environment: production
env:
WPE_USER_ID: ${{ secrets.WPE_USER_ID }}
WPE_API_SECRET: ${{ secrets.WPE_API_SECRET }}
WPE_ACCOUNT: ${{ secrets.WPE_ACCOUNT }}
WPE_APP_ID: ${{ secrets.WPE_APP_ID }}| Tool | Required by | Notes |
|---|---|---|
node (v18+) |
wpe-direct, your project build | https://nodejs.org — the only install needed |
zip |
wpe-package, wpe-next | Ships with macOS and most Linux distros |
- Base URL:
https://js.wpengineapi.com/v1 - Upload URL:
https://js.wpengineapi.com/fu/v1 - Auth: HTTP Basic Auth
- Reference: developers.wpengine.com/docs/headless-platform/reference/api/endpoints/
- Scripts fail immediately if any required env var is unset.
- No credentials are logged or stored by the scripts.
- Credentials are transmitted over HTTPS only.
- Never commit credentials to version control.