Agent skill
ops-deploy
Deploy Expo frontend (EAS Update/Build) or serverless backend (Serverless Framework) to dev, staging, or production environments.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/ops-deploy
SKILL.md
Ops: Deploy
Deploy the application to remote environments.
Argument: $ARGUMENTS — environment (dev, staging, production) and optional target (frontend, backend, both; default: both)
Path Convention
- Frontend: Current project directory (
.) - Backend:
${BACKEND_DIR:-../backend-v2}— setBACKEND_DIRin.claude/settings.local.jsonif your backend is elsewhere
Safety
CRITICAL: Production deployments require explicit human confirmation before proceeding. Always ask for confirmation when $ARGUMENTS contains production.
Discovery
- Read backend
package.jsonto discoverdeploy:*,aws:signin:*scripts - Read frontend
package.jsonto discover available scripts - Read
.env.{environment}files to find GraphQL URLs for post-deploy verification
CI/CD Path (Preferred)
The standard deployment path is via CI/CD — pushing to environment branches triggers auto-deploy. Manual deployment instructions below are for when CI/CD is not suitable.
Frontend Deployment
EAS Update (OTA — over-the-air JavaScript update)
Use for JS-only changes (no native module changes).
-
Verify EAS CLI:
basheas whoamiIf not authenticated:
eas login -
Copy environment file:
bashcp .env.{environment} .env -
Deploy OTA update:
bashSTAGE={env} NODE_OPTIONS="--max-old-space-size=8192" eas update --auto --channel={env} --message="Manual update" -
Verify deployment:
basheas update:list --branch {env} --limit 3
EAS Build (Native binary — only when app.config.ts or native modules change)
-
bash
eas build --platform all --non-interactive --no-wait --profile={profile} -
Check build status:
basheas build:list --limit 5
Backend Deployment
Full Deploy (Serverless Framework)
-
AWS signin (discover script name from backend
package.json):bashcd "${BACKEND_DIR:-../backend-v2}" bun run aws:signin:{env} -
Deploy all functions:
bashcd "${BACKEND_DIR:-../backend-v2}" bun run deploy:{env} -
Verify (use the GraphQL URL from
.env.{environment}):bashcurl -sf {graphql-url} -X POST \ -H "Content-Type: application/json" \ -d '{"query":"{ __typename }"}' \ -w "\nHTTP %{http_code} in %{time_total}s\n"
Single Function Deploy
Discover available function names from backend package.json deploy:function:* scripts:
cd "${BACKEND_DIR:-../backend-v2}"
FUNCTION_NAME={fn} bun run deploy:function:{env}
Post-Deploy Verification
After any deployment:
- Health check the deployed environment (use
ops-verify-healthskill) - Check logs for errors in the first 5 minutes (use
ops-check-logsskill) - Monitor Sentry for new issues (use
ops-monitor-errorsskill) - Run browser UAT smoke test against the deployed environment (use
ops-browser-uatskill)
Report deployment result as a table:
| Target | Environment | Method | Status | Verification |
|---|---|---|---|---|
| Frontend | dev | EAS Update | SUCCESS/FAIL | URL responds |
| Backend | dev | Serverless | SUCCESS/FAIL | GraphQL responds |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?