Cloud Deployment Routing Workflow
Purpose
Choose the smallest correct cloud deployment path before changing infrastructure, credentials, or production-facing configuration.
The practical decision is whether the agent should use an official provider plugin, a provider MCP server, a provider CLI, a framework-owned deployment workflow, or a Socket-owned provider skill.
When To Use
- Use this skill when the user wants cloud deployment help and has not chosen a provider-owned workflow.
- Use this skill when a project mentions AWS, Cloudflare, Vercel, Fly.io, Azure, GCP, Terraform, Pulumi, CDK, CloudFormation, SAM, containers, serverless, hosting, DNS, secrets, deployment, or production infrastructure.
- Use this skill before adding provider credentials, changing cloud resources, deploying production services, or wiring new MCP server configuration.
- Use this skill when an official provider plugin may already own the requested work.
Source Check
Use repo-local deployment files, checked-out provider config, installed provider CLIs, official provider plugins, and official provider documentation before making claims about current deployment behavior:
Translate any documentation rule into the concrete repository decision it changes.
Routing Workflow
- Inspect the project shape:
- deployment manifests such as
template.yaml, serverless.yml, cloudformation.yml, cdk.json, samconfig.toml, wrangler.toml, vercel.json, fly.toml, Dockerfile, compose.yaml, Terraform, or Pulumi files
- package scripts, Make targets, CI workflows, release docs, and provider-specific README sections
- existing credentials guidance, environment variables, account aliases, regions, profiles, and secret names
- Identify the deployment job:
- provider selection
- local credential setup
- documentation lookup
- infrastructure planning
- preview or diff
- dev/staging deploy
- production deploy
- failure triage
- cost, IAM, observability, or rollback review
- Route AWS work first:
Prefer the official AWS Agent Toolkit for AWS for Codex when the task is general AWS discovery, AWS MCP access, AWS CLI or AWS SAM setup, CDK, CloudFormation, serverless, containers, storage, observability, billing, SDK usage, or deployment.
Install path for Codex users:
codex plugin marketplace add aws/agent-toolkit-for-aws
Then use /plugins in Codex to install aws-core.
Do not duplicate AWS MCP configuration in Socket while aws-core bundles that configuration.
Do not copy AWS Agent Toolkit skills into Socket.
- Route non-AWS work:
- For Azure, prefer Microsoft's Azure Skills plugin for Azure MCP, Foundry MCP,
preparation, validation, deployment, diagnostics, cost, RBAC, and service
guidance. Add its marketplace with
codex plugin marketplace add microsoft/azure-skills, then install azure through /plugins.
- Do not duplicate Azure MCP declarations, Azure CLI or Azure Developer CLI
setup, Azure Skills workflows, or account-specific IaC in Socket.
- Use a first-party provider plugin or MCP server when one exists and is current.
- Use framework-owned Socket skills when the deployment surface is already covered by a stack workflow, such as
server-side-swift:fly-io-deployment-workflow.
- Add or use a Socket-owned provider skill only when no official provider-owned agent surface exists or when Socket needs a small provider-neutral decision layer.
- Confirm mutation boundaries:
- account or organization
- project or app
- region
- profile or identity
- environment such as local, dev, staging, or production
- exact resource mutations
- expected cost or billing effect
- rollback or cleanup path
- Choose validation:
- read-only documentation or discovery query for planning
- provider CLI version and auth check for local setup
- plan, diff, dry-run, validate, package, or synth command before deploy
- smoke test, logs, metrics, and rollback checks after deploy
Recommendations
AWS
Use the official AWS Agent Toolkit for AWS as the default Codex path. It owns AWS MCP setup and the curated AWS skill set, including common deployment, CDK, CloudFormation, serverless, container, storage, observability, billing, and SDK workflows.
Use Socket only for the routing decision, local repo handoff, and any project-specific deployment guardrails that the official AWS plugin does not know.
Azure
Use Microsoft's Azure Skills plugin as the default Codex path. It owns Azure MCP
and Foundry MCP configuration plus the provider workflows for preparation,
validation, deployment, diagnostics, cost, identity, and Azure services.
Use Socket only to select that official surface, preserve repository-specific
deployment boundaries, and hand framework implementation back to the owning stack
plugin. For an F# web app, select Giraffe, Falco, Oxpecker, or another server
shape through dotnet:choose-fsharp-web-framework before asking Azure Skills to
plan or mutate Azure infrastructure.
Framework-Owned Deployments
When a stack plugin already owns a deployment path, use that plugin for stack-specific implementation details. For example, Fly.io deployment for Vapor or Hummingbird services belongs in server-side-swift because that workflow depends on Swift package, Dockerfile, health-check, and runtime conventions.
Future Provider Skills
Add future provider skills as small routing or implementation slices. Good candidates include Cloudflare, Vercel, Fly.io, GCP, Terraform, Pulumi, and CDK when an official provider plugin does not already give Codex a better maintained path.
Output Shape
Return:
Provider: AWS, Cloudflare, Vercel, Fly.io, Azure, GCP, multi-cloud, or undecided.
Primary surface: official provider plugin, MCP server, provider CLI, framework-owned skill, Socket provider skill, or user decision needed.
Credential boundary: account, region, profile, environment, and whether credentials are required for the next step.
Mutation boundary: read-only, plan/diff, staging deploy, production deploy, cleanup, or blocked.
Validation path: exact commands or agent checks to run before and after mutation.
Next handoff: official plugin install, provider docs, stack skill, or provider-specific Socket backlog item.
Guardrails
- Do not invent provider setup steps when an official provider plugin or current provider docs own the path.
- Do not configure or mutate cloud accounts without confirming account, region, profile, environment, and intended resource changes.
- Do not store credentials, tokens, account IDs, secrets, local profiles, or
.env files in git.
- Do not present AWS CLI, AWS SAM CLI, or AWS MCP setup as Socket-owned while AWS Agent Toolkit owns the official Codex path.
- Do not present Azure CLI, Azure Developer CLI, Azure MCP, Foundry MCP, or Azure Skills setup as Socket-owned while Microsoft's Azure Skills plugin owns the official Codex path.
- Do not deploy to production by default. Use planning, validation, and explicit user confirmation before production mutations.
1---2name: cloud-deployment-routing-workflow3description: Choose a cloud deployment path before implementation. Route AWS work to the official AWS Agent Toolkit and Azure work to Microsoft's Azure Skills plugin while keeping credentials, regions, and mutation boundaries explicit.4license: Apache-2.05---67# Cloud Deployment Routing Workflow89## Purpose1011Choose the smallest correct cloud deployment path before changing infrastructure, credentials, or production-facing configuration.1213The practical decision is whether the agent should use an official provider plugin, a provider MCP server, a provider CLI, a framework-owned deployment workflow, or a Socket-owned provider skill.1415## When To Use1617- Use this skill when the user wants cloud deployment help and has not chosen a provider-owned workflow.18- Use this skill when a project mentions AWS, Cloudflare, Vercel, Fly.io, Azure, GCP, Terraform, Pulumi, CDK, CloudFormation, SAM, containers, serverless, hosting, DNS, secrets, deployment, or production infrastructure.19- Use this skill before adding provider credentials, changing cloud resources, deploying production services, or wiring new MCP server configuration.20- Use this skill when an official provider plugin may already own the requested work.2122## Source Check2324Use repo-local deployment files, checked-out provider config, installed provider CLIs, official provider plugins, and official provider documentation before making claims about current deployment behavior:2526- [Agent Toolkit for AWS](https://github.com/aws/agent-toolkit-for-aws)27- [AWS Agent Toolkit plugins](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/plugins.html)28- [AWS MCP Server setup](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/getting-started-aws-mcp-server.html)29- [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/)30- [AWS SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html)31- [Azure Skills](https://github.com/microsoft/azure-skills)32- [Azure MCP Server](https://learn.microsoft.com/azure/developer/azure-mcp-server/)33- [Azure Developer CLI](https://learn.microsoft.com/azure/developer/azure-developer-cli/)3435Translate any documentation rule into the concrete repository decision it changes.3637## Routing Workflow38391. Inspect the project shape:40 - deployment manifests such as `template.yaml`, `serverless.yml`, `cloudformation.yml`, `cdk.json`, `samconfig.toml`, `wrangler.toml`, `vercel.json`, `fly.toml`, `Dockerfile`, `compose.yaml`, Terraform, or Pulumi files41 - package scripts, Make targets, CI workflows, release docs, and provider-specific README sections42 - existing credentials guidance, environment variables, account aliases, regions, profiles, and secret names432. Identify the deployment job:44 - provider selection45 - local credential setup46 - documentation lookup47 - infrastructure planning48 - preview or diff49 - dev/staging deploy50 - production deploy51 - failure triage52 - cost, IAM, observability, or rollback review533. Route AWS work first:54 - Prefer the official AWS Agent Toolkit for AWS for Codex when the task is general AWS discovery, AWS MCP access, AWS CLI or AWS SAM setup, CDK, CloudFormation, serverless, containers, storage, observability, billing, SDK usage, or deployment.55 - Install path for Codex users:5657 ```bash58 codex plugin marketplace add aws/agent-toolkit-for-aws59 ```6061 Then use `/plugins` in Codex to install `aws-core`.62 - Do not duplicate AWS MCP configuration in Socket while `aws-core` bundles that configuration.63 - Do not copy AWS Agent Toolkit skills into Socket.644. Route non-AWS work:65 - For Azure, prefer Microsoft's Azure Skills plugin for Azure MCP, Foundry MCP,66 preparation, validation, deployment, diagnostics, cost, RBAC, and service67 guidance. Add its marketplace with `codex plugin marketplace add68 microsoft/azure-skills`, then install `azure` through `/plugins`.69 - Do not duplicate Azure MCP declarations, Azure CLI or Azure Developer CLI70 setup, Azure Skills workflows, or account-specific IaC in Socket.71 - Use a first-party provider plugin or MCP server when one exists and is current.72 - Use framework-owned Socket skills when the deployment surface is already covered by a stack workflow, such as `server-side-swift:fly-io-deployment-workflow`.73 - Add or use a Socket-owned provider skill only when no official provider-owned agent surface exists or when Socket needs a small provider-neutral decision layer.745. Confirm mutation boundaries:75 - account or organization76 - project or app77 - region78 - profile or identity79 - environment such as local, dev, staging, or production80 - exact resource mutations81 - expected cost or billing effect82 - rollback or cleanup path836. Choose validation:84 - read-only documentation or discovery query for planning85 - provider CLI version and auth check for local setup86 - plan, diff, dry-run, validate, package, or synth command before deploy87 - smoke test, logs, metrics, and rollback checks after deploy8889## Recommendations9091### AWS9293Use the official AWS Agent Toolkit for AWS as the default Codex path. It owns AWS MCP setup and the curated AWS skill set, including common deployment, CDK, CloudFormation, serverless, container, storage, observability, billing, and SDK workflows.9495Use Socket only for the routing decision, local repo handoff, and any project-specific deployment guardrails that the official AWS plugin does not know.9697### Azure9899Use Microsoft's Azure Skills plugin as the default Codex path. It owns Azure MCP100and Foundry MCP configuration plus the provider workflows for preparation,101validation, deployment, diagnostics, cost, identity, and Azure services.102103Use Socket only to select that official surface, preserve repository-specific104deployment boundaries, and hand framework implementation back to the owning stack105plugin. For an F# web app, select Giraffe, Falco, Oxpecker, or another server106shape through `dotnet:choose-fsharp-web-framework` before asking Azure Skills to107plan or mutate Azure infrastructure.108109### Framework-Owned Deployments110111When a stack plugin already owns a deployment path, use that plugin for stack-specific implementation details. For example, Fly.io deployment for Vapor or Hummingbird services belongs in `server-side-swift` because that workflow depends on Swift package, Dockerfile, health-check, and runtime conventions.112113### Future Provider Skills114115Add future provider skills as small routing or implementation slices. Good candidates include Cloudflare, Vercel, Fly.io, GCP, Terraform, Pulumi, and CDK when an official provider plugin does not already give Codex a better maintained path.116117## Output Shape118119Return:1201211. `Provider`: AWS, Cloudflare, Vercel, Fly.io, Azure, GCP, multi-cloud, or undecided.1222. `Primary surface`: official provider plugin, MCP server, provider CLI, framework-owned skill, Socket provider skill, or user decision needed.1233. `Credential boundary`: account, region, profile, environment, and whether credentials are required for the next step.1244. `Mutation boundary`: read-only, plan/diff, staging deploy, production deploy, cleanup, or blocked.1255. `Validation path`: exact commands or agent checks to run before and after mutation.1266. `Next handoff`: official plugin install, provider docs, stack skill, or provider-specific Socket backlog item.127128## Guardrails129130- Do not invent provider setup steps when an official provider plugin or current provider docs own the path.131- Do not configure or mutate cloud accounts without confirming account, region, profile, environment, and intended resource changes.132- Do not store credentials, tokens, account IDs, secrets, local profiles, or `.env` files in git.133- Do not present AWS CLI, AWS SAM CLI, or AWS MCP setup as Socket-owned while AWS Agent Toolkit owns the official Codex path.134- Do not present Azure CLI, Azure Developer CLI, Azure MCP, Foundry MCP, or Azure Skills setup as Socket-owned while Microsoft's Azure Skills plugin owns the official Codex path.135- Do not deploy to production by default. Use planning, validation, and explicit user confirmation before production mutations.