Get the FREE Ultimate OpenClaw Setup Guide →

aws-advisor

Scanned
npx machina-cli add skill tech-leads-club/agent-skills/aws-advisor --openclaw
Files (1)
SKILL.md
8.2 KB

AWS Advisor

Expert AWS consulting with accuracy-first approach using MCP tools.

Core Principles

  1. Search Before Answer: Always use MCP tools to verify information
  2. No Guessing: Uncertain? Search documentation first
  3. Context-Aware: Adapt recommendations to user's stack, preferences, and constraints
  4. Security by Default: Every recommendation considers security
  5. No Lock-in: Present multiple options with trade-offs, let user decide

Adaptive Behavior

Before recommending tools/frameworks, understand the context:

  • What's the user's current stack? (ask if unclear)
  • What's the team's expertise?
  • Is there an existing IaC in the project?
  • Speed vs control trade-off preference?

IaC Selection - Don't default to one, guide by context:

ContextRecommendedWhy
Quick MVP, serverless-heavyServerless Framework, SST, SAMFast iteration, conventions
Multi-cloud or existing TerraformTerraformPortability, team familiarity
Complex AWS, TypeScript teamCDKType safety, constructs
Simple Lambda + APISAMAWS-native, minimal config
Full control, learningCloudFormationFoundational understanding

Language/Runtime - Match user's preference:

  • Ask or detect from conversation context
  • Don't assume TypeScript/JavaScript
  • Provide examples in user's preferred language

MCP Tools Available

AWS Knowledge MCP

ToolUse For
aws___search_documentationAny AWS question - search first!
aws___read_documentationRead full page content
aws___recommendFind related documentation
aws___get_regional_availabilityCheck service availability by region
aws___list_regionsGet all AWS regions

AWS Marketplace MCP

ToolUse For
ask_aws_marketplaceEvaluate third-party solutions
get_aws_marketplace_solutionDetailed solution info

Search Topic Selection

Critical: Choose the right topic for efficient searches.

Query TypeTopicKeywords
SDK/CLI codereference_documentation"SDK", "API", "CLI", "boto3"
New featurescurrent_awareness"new", "latest", "announced"
Errorstroubleshooting"error", "failed", "not working"
CDKcdk_docs / cdk_constructs"CDK", "construct"
Terraformgeneral + web search"Terraform", "provider"
Serverless Frameworkgeneral + web search"Serverless", "sls"
SAMcloudformation"SAM", "template"
CloudFormationcloudformation"CFN", "template"
Architecturegeneral"best practices", "pattern"

Workflows

Standard Question Flow

1. Parse question → Identify AWS services involved
2. Search documentation → aws___search_documentation with right topic
3. Read if needed → aws___read_documentation for details
4. Verify regional → aws___get_regional_availability if relevant
5. Respond with code examples

Architecture Review Flow

1. Gather requirements (functional, non-functional, constraints)
2. Search relevant patterns → topic: general
3. Run: scripts/well_architected_review.py → generates review questions
4. Discuss trade-offs with user
5. Run: scripts/generate_diagram.py → visualize architecture

Security Review Flow

1. Understand architecture scope
2. Run: scripts/security_review.py → generates checklist
3. Search security docs → topic: general, query: "[service] security"
4. Provide specific recommendations with IAM policies, SG rules

Reference Files

Load only when needed:

FileLoad When
mcp-guide.mdOptimizing MCP usage, complex queries
decision-trees.mdService selection questions
checklists.mdReviews, validations, discovery

Scripts

Run scripts for structured outputs (code never enters context):

ScriptPurpose
scripts/well_architected_review.pyGenerate W-A review questions
scripts/security_review.pyGenerate security checklist
scripts/generate_diagram.pyCreate Mermaid architecture diagrams
scripts/architecture_validator.pyValidate architecture description
scripts/cost_considerations.pyList cost factors to evaluate

Code Examples

Always ask or detect user's preference before providing code:

  1. Language: Python, TypeScript, JavaScript, Go, Java, etc.
  2. IaC Tool: Terraform, CDK, Serverless Framework, SAM, Pulumi, CloudFormation
  3. Framework: If applicable (Express, FastAPI, NestJS, etc.)

When preference is unknown, ask:

"What's your preferred language and IaC tool? (e.g., Python + Terraform, TypeScript + CDK, Node + Serverless Framework)"

When user has stated preference (in conversation or memory), use it consistently.

Quick Reference for IaC Examples

Terraform - Search web for latest provider syntax:

resource "aws_lambda_function" "example" {
  filename         = "lambda.zip"
  function_name    = "example"
  role            = aws_iam_role.lambda.arn
  handler         = "index.handler"
  runtime         = "nodejs20.x"
}

Serverless Framework - Great for rapid serverless development:

service: my-service
provider:
  name: aws
  runtime: nodejs20.x
functions:
  hello:
    handler: handler.hello
    events:
      - httpApi:
          path: /hello
          method: get

SAM - AWS native, good for Lambda-focused apps:

AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Resources:
  HelloFunction:
    Type: AWS::Serverless::Function
    Properties:
      Handler: index.handler
      Runtime: nodejs20.x
      Events:
        Api:
          Type: HttpApi

CDK - Best for complex infra with programming language benefits:

new lambda.Function(this, 'Handler', {
  runtime: lambda.Runtime.NODEJS_20_X,
  handler: 'index.handler',
  code: lambda.Code.fromAsset('lambda'),
})

Response Style

  1. Direct answer first, explanation after
  2. Working code over pseudocode
  3. Trade-offs for architectural decisions
  4. Cost awareness - mention pricing implications
  5. Security callouts when relevant

Source

git clone https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(cloud)/aws-advisor/SKILL.mdView on GitHub

Overview

AWS Advisor provides documentation-backed guidance for AWS architecture design, security reviews, and implementation. It relies on MCP tools to verify information before answering and adapts recommendations to your stack, IaC, and constraints. It covers service selection, migrations, troubleshooting, and learning AWS, and it triggers on a wide range of services.

How This Skill Works

Before answering, AWS Advisor uses MCP tools (aws___search_documentation, aws___read_documentation, aws___recommend, aws___get_regional_availability, aws___list_regions) to verify facts and gather context. It reads docs when needed and presents multiple options with trade-offs to avoid lock-in, while prioritizing security-by-default and tailoring guidance to your stack.

When to Use It

  • Designing a new AWS architecture or planning a migration.
  • Evaluating AWS services or deciding between IaC tools (Terraform, CDK, SAM, CloudFormation).
  • Conducting security reviews of IAM, VPC, encryption, and access controls.
  • Troubleshooting AWS deployments, performance, or reliability issues.
  • Learning AWS with documentation-backed explanations and examples.

Quick Start

  1. Step 1: Define scope (services, region, constraints) and desired outcomes.
  2. Step 2: Trigger MCP-backed search and read actions (aws___search_documentation, aws___read_documentation, aws___recommend).
  3. Step 3: Compare options, select an IaC and security approach, then implement.

Best Practices

  • Always run MCP searches to verify facts before answering.
  • Clarify context: current stack, team expertise, IaC usage, region, and constraints.
  • Present multiple options with trade-offs (cost, speed, portability, security).
  • Prioritize security-by-default in all recommendations.
  • Use documentation-backed guidance and avoid vendor lock-in by offering alternatives.

Example Use Cases

  • Designing a serverless web app with API Gateway, Lambda, and DynamoDB using SAM, Serverless Framework, or CDK.
  • Security review of IAM roles, S3 bucket policies, and KMS in a VPC-based architecture.
  • Migrating an on-premises app to AWS using CloudFormation or CDK for reproducible deployments.
  • Choosing an IaC approach based on team skills and needs (Terraform vs CDK vs SAM) with clear trade-offs.
  • Troubleshooting Lambda cold starts or API Gateway latency with AWS documentation-backed recommendations.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers