$npx -y skills add DNYoussef/context-cascade --skill aws-specialist/*============================================================================*/ /* AWS-SPECIALIST SKILL :: VERILINGUA x VERIX EDITION */ /*============================================================================*/
| 1 | /*============================================================================*/ |
| 2 | /* AWS-SPECIALIST SKILL :: VERILINGUA x VERIX EDITION */ |
| 3 | /*============================================================================*/ |
| 4 | |
| 5 | --- |
| 6 | name: aws-specialist |
| 7 | version: 1.0.0 |
| 8 | description: | |
| 9 | [assert|neutral] AWS cloud specialist for infrastructure as code with CloudFormation/CDK, serverless with Lambda, container orchestration with ECS/Fargate, database management with RDS, storage with S3/CloudFront CDN, [ground:given] [conf:0.95] [state:confirmed] |
| 10 | category: Cloud Platforms |
| 11 | tags: |
| 12 | - general |
| 13 | author: system |
| 14 | cognitive_frame: |
| 15 | primary: aspectual |
| 16 | goal_analysis: |
| 17 | first_order: "Execute aws-specialist workflow" |
| 18 | second_order: "Ensure quality and consistency" |
| 19 | third_order: "Enable systematic Cloud Platforms processes" |
| 20 | --- |
| 21 | |
| 22 | /*----------------------------------------------------------------------------*/ |
| 23 | /* S0 META-IDENTITY */ |
| 24 | /*----------------------------------------------------------------------------*/ |
| 25 | |
| 26 | [define|neutral] SKILL := { |
| 27 | name: "aws-specialist", |
| 28 | category: "Cloud Platforms", |
| 29 | version: "1.0.0", |
| 30 | layer: L1 |
| 31 | } [ground:given] [conf:1.0] [state:confirmed] |
| 32 | |
| 33 | /*----------------------------------------------------------------------------*/ |
| 34 | /* S1 COGNITIVE FRAME */ |
| 35 | /*----------------------------------------------------------------------------*/ |
| 36 | |
| 37 | [define|neutral] COGNITIVE_FRAME := { |
| 38 | frame: "Aspectual", |
| 39 | source: "Russian", |
| 40 | force: "Complete or ongoing?" |
| 41 | } [ground:cognitive-science] [conf:0.92] [state:confirmed] |
| 42 | |
| 43 | ## Kanitsal Cerceve (Evidential Frame Activation) |
| 44 | Kaynak dogrulama modu etkin. |
| 45 | |
| 46 | /*----------------------------------------------------------------------------*/ |
| 47 | /* S2 TRIGGER CONDITIONS */ |
| 48 | /*----------------------------------------------------------------------------*/ |
| 49 | |
| 50 | [define|neutral] TRIGGER_POSITIVE := { |
| 51 | keywords: ["aws-specialist", "Cloud Platforms", "workflow"], |
| 52 | context: "user needs aws-specialist capability" |
| 53 | } [ground:given] [conf:1.0] [state:confirmed] |
| 54 | |
| 55 | /*----------------------------------------------------------------------------*/ |
| 56 | /* S3 CORE CONTENT */ |
| 57 | /*----------------------------------------------------------------------------*/ |
| 58 | |
| 59 | # AWS Specialist |
| 60 | |
| 61 | ## Kanitsal Cerceve (Evidential Frame Activation) |
| 62 | Kaynak dogrulama modu etkin. |
| 63 | |
| 64 | |
| 65 | |
| 66 | Expert AWS cloud infrastructure design, deployment, and optimization for production-grade applications. |
| 67 | |
| 68 | ## Purpose |
| 69 | |
| 70 | Comprehensive AWS expertise across IaC (CloudFormation, CDK), serverless (Lambda), containers (ECS/Fargate), databases (RDS, DynamoDB), storage (S3), CDN (CloudFront), and DevOps automation. Ensures AWS architectures are secure, cost-effective, and scalable. |
| 71 | |
| 72 | ## When to Use |
| 73 | |
| 74 | - Deploying applications to AWS |
| 75 | - Creating infrastructure as code templates |
| 76 | - Setting up serverless architectures |
| 77 | - Configuring auto-scaling and load balancing |
| 78 | - Implementing multi-region deployments |
| 79 | - Optimizing AWS costs (FinOps) |
| 80 | - Securing AWS resources with IAM |
| 81 | |
| 82 | ## Prerequisites |
| 83 | |
| 84 | **Required**: AWS account, AWS CLI installed, basic understanding of cloud concepts |
| 85 | |
| 86 | **Agent Assignments**: `cicd-engineer`, `system-architect`, `security-manager`, `perf-analyzer` |
| 87 | |
| 88 | ## Core Workflows |
| 89 | |
| 90 | ### Workflow 1: AWS CDK Infrastructure as Code |
| 91 | |
| 92 | **Step 1: Initialize CDK Project** |
| 93 | |
| 94 | ```bash |
| 95 | mkdir my-infra && cd my-infra |
| 96 | npx cdk init app --language typescript |
| 97 | npm install @aws-cdk/aws-lambda @aws-cdk/aws-apigateway @aws-cdk/aws-dynamodb |
| 98 | ``` |
| 99 | |
| 100 | **Step 2: Define Lambda + API Gateway Stack** |
| 101 | |
| 102 | ```typescript |
| 103 | // lib/api-stack.ts |
| 104 | import * as cdk from 'aws-cdk-lib'; |
| 105 | import * as lambda from 'aws-cdk-lib/aws-lambda'; |
| 106 | import * as apigateway from 'aws-cdk-lib/aws-apigateway'; |
| 107 | import * as dynamodb from 'aws-cdk-lib/aws-dynamodb'; |
| 108 | |
| 109 | export class ApiStack extends cdk.Stack { |
| 110 | constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { |
| 111 | super(scope, id, props); |
| 112 | |
| 113 | // DynamoDB table |
| 114 | const table = new dynamodb.Table(this, 'ItemsTable', { |
| 115 | partitionKey: { name: 'id', type: dynamodb.AttributeType.STRING }, |
| 116 | billingMode: dynamodb.BillingMode.PAY_PER_REQUEST, |
| 117 | removalPolicy: cdk.RemovalPolicy.DESTROY, // ONLY for dev |
| 118 | }); |
| 119 | |
| 120 | // Lambda function |
| 121 | const handler = new lambda.Function(this, 'ItemsHandler', { |
| 122 | runtime: lambda.Runtime.NODEJS_18_X, |
| 123 | code: lambda.Code.fromAsset('lambda'), |
| 124 | handler: 'index.handler', |
| 125 | environment: { |
| 126 | TABLE_NAME: table.tableName, |
| 127 | }, |
| 128 | }); |
| 129 | |
| 130 | table.grantReadWriteData(handler); |
| 131 | |
| 132 | // API Gateway |
| 133 | const api = new apigateway.RestApi(this, 'ItemsApi', { |
| 134 | restApiName: 'Items Service', |
| 135 | }); |
| 136 | |
| 137 | const items = api.root.addResource('items'); |
| 138 | items.addMethod('GET', new apigateway.LambdaIntegration(handler)); |
| 139 | items.addMethod('POST', new apigateway.LambdaIntegration(handler |