/nx-plugin-for-aws:nx-plugin-for-awsfrom nx-plugin-for-aws
Scaffolds and builds cloud-native applications on AWS using @aws/nx-plugin generators. Creates workspaces, generates projects, and sets up CDK/Terraform infrastructure.
Ships in nx-plugin-for-aws. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The Nx Plugin for AWS (@aws/nx-plugin) is a collection of generators that help you rapidly scaffold and build cloud-native applications on AWS. It provides end-to-end code generation from application code to CDK/Terraform infrastructure, all following AWS best practices.
This power gives AI assistants guided access to the MCP server so they can help you create workspaces, discover generators, and scaffold projects interactively.
Key capabilities:
node --versionuv python install 3.14uv python list --only-installedpnpm --version, yarn --version, bun --version or npm --versionterraform --versioncreate_workspace_command toollist_generators and generator_guideTo create a new workspace and scaffold a React website with a tRPC API:
# Create workspace (pass `.` as the name to create in the current empty directory)
pnpm create @aws/nx-workspace my-app --no-interactive
# Generate a tRPC API
pnpm nx g @aws/nx-plugin:ts#api --no-interactive --name=my-api --framework=trpc
# Generate a React website
pnpm nx g @aws/nx-plugin:ts#website --no-interactive --name=my-website
# Connect the website to the API
pnpm nx g @aws/nx-plugin:connection --no-interactive --sourceProject=my-website --targetProject=my-api
# Generate CDK infrastructure
pnpm nx g @aws/nx-plugin:ts#infra --no-interactive --name=infra
Always prompt the user for what name they want to use when executing generators if a --name is a required argument. DO NOT ASSUME THE NAME.
Use the create_workspace_command tool with your preferred package manager. This generates the full command to create an Nx workspace pre-configured with the AWS plugin.
pnpm create @aws/nx-workspace my-app --no-interactive
If you are already inside an empty directory intended for this project, pass . as the workspace name to create the workspace in the current directory:
pnpm create @aws/nx-workspace . --no-interactive
Be sure to ask the user what their preferred project name is, unless already within an empty directory intended for the project.
Use the list_generators tool to see all available generators and their parameters. This returns the full list with descriptions and example commands.
Use the generator_guide tool with a specific generator name to get in-depth documentation including:
A typical full-stack app involves:
ts#api with --framework=trpc or --framework=smithy, or py#api)ts#website)connection)ts#infra)ts#website#auth)Add capabilities to existing projects:
ts#lambda-function / py#lambda-function — Add Lambda functionsts#mcp-server / py#mcp-server — Add MCP serversts#agent / py#agent — Add AI agentsts#nx-generator — Add custom Nx generators| Generator | Description |
|---|---|
init | Configure an existing Nx workspace to use the @aws/nx-plugin |
agentcore-gateway | Generate an AgentCore Gateway project |
agentcore-harness | Generate an AgentCore Harness project (experimental) |
observability#langfuse | Configure Langfuse trace export for an existing Python Strands agent (experimental) |
connection | Integrates a source project with a target project |
greengrass#component | Add an AWS IoT Greengrass component to an existing Python or TypeScript project (experimental) |
license | Add LICENSE files and configure source code licence headers |
py#api | Create a Python API |
py#lambda-function | Adds a lambda function to a python project |
py#mcp-server | Generate a Python Model Context Protocol (MCP) server for providing context to Large Language Models |
py#project | Generates a Python project |
py#agent | Add an AI Agent to a Python project |
py#agent#guardrails | Add an Amazon Bedrock Guardrail to a Python Agent (experimental) |
smithy#project | Generate a Smithy model project, either defining a service or a library of reusable shapes |
terraform#project | Generates a Terraform project |
ts#docs | Generates a documentation site |
ts#infra | Generates a cdk application |
ts#lambda-function | Generate a TypeScript lambda function |
ts#dcr-proxy | Generate an OAuth Dynamic Client Registration (DCR) proxy construct for Cognito-authenticated MCP servers |
ts#mcp-server | Generate a TypeScript Model Context Protocol (MCP) server for providing context to Large Language Models |
ts#nx-generator | Generator for adding an Nx Generator to an existing TypeScript project |
ts#nx-migration | Generator for adding an Nx Migration to an Nx Plugin, applied by nx migrate when users upgrade |
ts#nx-plugin | Generate an Nx Plugin of your own! Build custom generators automatically made available for AI vibe-coding via MCP |
ts#project | Generates a TypeScript project |
ts#website | Generates a website application |
ts#website#auth | Adds auth to an existing website |
ts#verified-access | Put an AWS Verified Access door in front of a private REST API (experimental) |
ts#agent | Add an AI Agent to a TypeScript project |
ts#agent#guardrails | Add an Amazon Bedrock Guardrail to a TypeScript Agent (experimental) |
ts#api | Create a TypeScript API |
ts#rdb | Create a relational database project |
ts#dynamodb | Create a TypeScript DynamoDB project |
py#dynamodb | Create a Python DynamoDB project |
py#rdb | Create a Python relational database project |
ts#container | Add a containerised service to a TypeScript project, run privately on Amazon ECS (experimental) |
py#container | Add a containerised service to a Python project, run privately on Amazon ECS (experimental) |
--no-interactive flag when running generators programmatically@my-scope/my-project) when referencing projectsnx sync after adding dependencies between TypeScript projectsnx reset to reset the Nx daemon when unexpected issues arise--prefer-install-dependencies=false on each to avoid a slow install after every generator, then install once at the end (or let the final generator install by omitting the flag)nx show projects to verify what was creatednx run-many --target lint --configuration=fix --allpackages/ directoryWhen the user wants a full workspace created in one go, you can chain generators to minimize tool calls:
Workspace creation pass --no-interactive to avoid interactive prompts
pnpm create @aws/nx-workspace my-app --iac=cdk --no-interactive
Chain generators with && in a single Bash call after workspace creation. Pass --prefer-install-dependencies=false on each generator except the last so dependencies install once at the end, for example:
cd my-app && \
pnpm nx g @aws/nx-plugin:ts#api --no-interactive --name=my-app-api --framework=trpc --auth=iam --prefer-install-dependencies=false && \
pnpm nx g @aws/nx-plugin:ts#website --no-interactive --name=my-app-website --ux=shadcn --prefer-install-dependencies=false && \
pnpm nx g @aws/nx-plugin:ts#website#auth --no-interactive --project=@my-app/my-app-website --cognitoDomain=my-app-auth --prefer-install-dependencies=false && \
pnpm nx g @aws/nx-plugin:connection --no-interactive --sourceProject=@my-app/my-app-website --targetProject=@my-app/my-app-api --prefer-install-dependencies=false && \
pnpm nx g @aws/nx-plugin:ts#infra --no-interactive --name=infra && \
pnpm nx sync && \
pnpm lint && \
pnpm build
--prefer-install-dependencies=false asks a generator to defer its dependency install so the batch installs once at the end (the final generator above omits the flag and installs everything).
Use a timeout of 300000ms (5 minutes) for workspace creation (downloads dependencies).
nx sync is required before building — generators modify TypeScript project references.
Problem: MCP server won't start or connect Solution:
node --version && npm --versionnpx -y @aws/nx-plugin-mcpENOENT npx, use the full path: replace npx with the output of which npxProblem: Generator command fails with errors Solution:
@aws/nx-plugin is installed: look for it in package.jsonnx reset to clear the Nx daemon cache--verbose flag for more detailsProblem: Import errors after adding project dependencies Solution:
nx sync to update TypeScript project referencestsconfig.base.json for correct path aliases: prefix (e.g. :my-scope/my-lib)Problem: Python imports not resolving Solution:
nx run <project>:add <dependency> to add dependenciesuv.lock is up to datepyproject.toml for correct dependency declarationsNo additional configuration required — the MCP server works out of the box via npx.
MCP Server: nx-plugin-for-aws
Package: @aws/nx-plugin
Documentation: https://awslabs.github.io/nx-plugin-for-aws
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub awslabs/nx-plugin-for-aws --plugin nx-plugin-for-awsOther plugins' skills for the same job