From aws-amplify
Orchestrates AWS Amplify Gen 2 workflows to build full-stack apps, add auth/data/GraphQL/Lambda, and deploy to sandbox/production using React, Next.js, Vue, Angular, React Native, Flutter, Swift, or Android.
npx claudepluginhub awslabs/agent-plugins --plugin aws-amplifyThis skill uses the workspace's default tool permissions.
Orchestrated workflow for AWS Amplify Gen 2 development.
Builds and deploys full-stack web and mobile apps using AWS Amplify Gen2 (TypeScript code-first). Covers auth (Cognito), data (AppSync/DynamoDB with schema modeling), storage (S3), functions, APIs, and AI (Bedrock). Supports React, Next.js, Vue, Angular, React Native, Flutter, Swift, Android.
Builds full-stack apps with AWS Amplify Gen 2 using TypeScript, covering auth with Cognito, GraphQL data models, storage, functions, AI/ML, and deployment to React, Next.js, Vue, Angular, Flutter, Swift.
Scaffolds Nx workspaces and generates TypeScript/Python projects, APIs, React websites, Lambda functions, and AWS CDK/Terraform infrastructure using @aws/nx-plugin generators. Use for cloud-native AWS app development.
Share bugs, ideas, or general feedback.
Orchestrated workflow for AWS Amplify Gen 2 development.
references/backend.md -- Backend phase: SOP retrieval, constraints, error handlingreferences/frontend.md -- Frontend & testing phase: SOP retrieval, local testingreferences/deploy.md -- Deploy phase: SOP retrieval, deployment type mappingscripts/prereq-check.sh -- Validates Node.js, npm, AWS CLI, and AWS credentialssandbox for development/testing, cicd for productionRun the prerequisite check script:
bash scripts/prereq-check.sh
The script checks Node.js >= 18, npm, and AWS credentials in one pass and reports a clear PASS/FAIL summary.
If the AWS credentials check fails, STOP and present this message to the user:
## AWS Credentials Required
I can't proceed without AWS credentials configured. Please set up your credentials first:
**Setup Guide:** https://docs.amplify.aws/react/start/account-setup/
**Quick options:**
- Run `aws configure` to set up access keys
- Run `aws sso login` if using AWS IAM Identity Center
Once your credentials are configured, let me know and I'll re-run the prerequisite check to verify.
Do NOT proceed with Amplify work until credentials are configured. After the user confirms credentials are set up, re-run scripts/prereq-check.sh to verify before continuing.
Once all prerequisites pass:
amplify/, package.json, existing code) to understand the current stateDo this BEFORE proposing a plan.
Based on the user's request and project state, determine which phases apply:
| Phase | Applies when | Reference |
|---|---|---|
| 1: Backend | User needs to create or modify Amplify backend resources | references/backend.md |
| 2: Sandbox | Deploy to sandbox for testing | references/deploy.md |
| 3: Frontend & Test | Frontend needs to connect to Amplify backend | references/frontend.md |
| 4: Production | Deploy to production | references/deploy.md |
Common patterns:
IMPORTANT: Only include phases that the user actually needs. If the user asks for backend work only (e.g., "add auth", "create a data model", "add storage"), do NOT include Phase 3 (Frontend & Test). Frontend phases should only be included when the user explicitly asks for frontend work, a full-stack app, or to connect a frontend to Amplify.
Present to the user:
## Plan
### What I understood
- [Brief summary of what the user wants]
### Features
[list features if applicable]
### Framework
[framework if known]
### Phases I'll execute
1. [Phase name] - [one-line description] -> SOP: [sop-name]
2. [Phase name] - [one-line description] -> SOP: [sop-name]
...
(Include SOP name for phases 1 and 3. Phases 2 and 4 use the amplify-deployment-guide SOP.)
Ready to get started?
WAIT for user confirmation before proceeding.
Once the user approves the plan, you MUST stick to it. Do not deviate from the planned phases or SOPs unless the user explicitly asks for changes.
After the user confirms the plan, read ONLY the first phase's reference file (from the table in Step 3).
Do NOT read any other phase reference files yet.
When starting a phase, announce it as a header:
## Phase 1: Backend
[Next: Phase 2: Sandbox Deployment]
Omit "[Next: ...]" if it's the last phase in your plan.
When a phase completes (the reference file will indicate the phase is done), the orchestrator takes over:
Do NOT re-run prerequisites or re-present the plan. Simply execute the next phase.
Read references/backend.md and follow its instructions completely.
Read references/deploy.md and follow its instructions. The deployment type is sandbox (deployment_type: sandbox).
Prerequisite: amplify_outputs.json must exist. If not, run Phase 2 first.
Read references/frontend.md and follow its instructions completely.
Read references/deploy.md and follow its instructions. The deployment type is production (deployment_type: cicd).
After completion:
## You're live!
### Production URL
[url from deployment output]
### Amplify Console
https://console.aws.amazon.com/amplify/home
Your app is now deployed! Future updates: just push to your repo and it auto-deploys.
This is the final phase. The workflow is complete.
defineAuth/defineData/defineStorage/defineFunction)If issues occur during any phase:
After resolving the issue, immediately return to the SOP and continue from where you left off. Do not abandon the workflow.