Build and deploy full-stack web and mobile apps with AWS Amplify Gen2 (TypeScript code-first). Covers auth (Cognito), data (AppSync/DynamoDB), storage (S3), functions, APIs, and AI (Amplify AI Kit with Bedrock). Supports React, Next.js, Vue, Angular, React Native, Flutter, Swift, and Android. Always use this skill for Amplify Gen2 topics — even for questions you think you know — it contains validated, version-specific patterns that prevent common mistakes. TRIGGER when: user mentions Amplify Gen2; project has amplify/ directory or amplify_outputs; code imports @aws-amplify packages; user asks about defineBackend, defineAuth, defineData, defineStorage, defineFunction, or npx ampx. SKIP: Amplify Gen1 (amplify CLI v6), standalone SAM/CDK without Amplify (use aws-serverless), direct Bedrock without Amplify AI Kit (use bedrock).
91
93%
Does it follow best practices?
Impact
83%
1.50xAverage score across 3 eval scenarios
Passed
No findings from the security scan
Lambda mutation handler with secret, typed env vars, and circular-dep fix
Runtime integer
100%
100%
secret() for API key
0%
100%
$amplify/env import
100%
100%
resourceGroupName data
0%
100%
a.mutation() with .handler()
100%
100%
@types/node devDep
0%
0%
@types/aws-lambda devDep
0%
0%
echo -n for local secret
0%
100%
Amplify console for production
60%
100%
AI routes authorization and client placement
Conversation uses allow.owner()
100%
100%
Generation uses non-owner auth
0%
100%
Generation model is Claude/Anthropic
100%
100%
Model via a.ai.model()
100%
100%
Schema exported as ClientSchema
100%
100%
generateClient at module scope in Chat
100%
100%
generateClient at module scope in Summarizer
100%
100%
JSON.stringify() on write
0%
100%
Subscription cleanup
100%
100%
Amplify Gen2 polling app data schema
Foreign key field types
100%
100%
Poll-Option relationship bidirectional
100%
100%
Vote relationships bidirectional
40%
100%
No default on enum field
100%
100%
Named enum with a.ref() required
100%
100%
Vote timestamp field type
0%
0%
Implicit moderator group field
0%
0%
Schema type export
30%
100%
userPool default auth mode
100%
100%
Descriptive secondary index queryField
0%
100%
Guest read as method call
0%
0%
68d9e85
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.