Skip to main content
ClaudeWave
Skill4.6k repo starsupdated yesterday

aws-advisor

The aws-advisor Claude Code skill provides expert AWS consulting by searching AWS documentation and marketplace resources before answering questions about architecture design, security review, and implementation guidance. Use it when users ask about AWS services, infrastructure-as-code frameworks, migrations, troubleshooting, or learning AWS concepts, but not for non-AWS cloud providers or general infrastructure questions lacking AWS context.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/tech-leads-club/agent-skills /tmp/aws-advisor && cp -r /tmp/aws-advisor/packages/skills-catalog/skills/(cloud)/aws-advisor ~/.claude/skills/aws-advisor
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# 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:

| Context                           | Recommended                    | Why                           |
| --------------------------------- | ------------------------------ | ----------------------------- |
| Quick MVP, serverless-heavy       | Serverless Framework, SST, SAM | Fast iteration, conventions   |
| Multi-cloud or existing Terraform | Terraform                      | Portability, team familiarity |
| Complex AWS, TypeScript team      | CDK                            | Type safety, constructs       |
| Simple Lambda + API               | SAM                            | AWS-native, minimal config    |
| Full control, learning            | CloudFormation                 | Foundational 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

| Tool                              | Use For                              |
| --------------------------------- | ------------------------------------ |
| `aws___search_documentation`      | Any AWS question - search first!     |
| `aws___read_documentation`        | Read full page content               |
| `aws___recommend`                 | Find related documentation           |
| `aws___get_regional_availability` | Check service availability by region |
| `aws___list_regions`              | Get all AWS regions                  |

### AWS Marketplace MCP

| Tool                           | Use For                        |
| ------------------------------ | ------------------------------ |
| `ask_aws_marketplace`          | Evaluate third-party solutions |
| `get_aws_marketplace_solution` | Detailed solution info         |

## Search Topic Selection

**Critical**: Choose the right topic for efficient searches.

| Query Type           | Topic                         | Keywords                         |
| -------------------- | ----------------------------- | -------------------------------- |
| SDK/CLI code         | `reference_documentation`     | "SDK", "API", "CLI", "boto3"     |
| New features         | `current_awareness`           | "new", "latest", "announced"     |
| Errors               | `troubleshooting`             | "error", "failed", "not working" |
| CDK                  | `cdk_docs` / `cdk_constructs` | "CDK", "construct"               |
| Terraform            | `general` + web search        | "Terraform", "provider"          |
| Serverless Framework | `general` + web search        | "Serverless", "sls"              |
| SAM                  | `cloudformation`              | "SAM", "template"                |
| CloudFormation       | `cloudformation`              | "CFN", "template"                |
| Architecture         | `general`                     | "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:

| File                                              | Load When                             |
| ------------------------------------------------- | ------------------------------------- |
| [mcp-guide.md](references/mcp-guide.md)           | Optimizing MCP usage, complex queries |
| [decision-trees.md](references/decision-trees.md) | Service selection questions           |
| [checklists.md](references/checklists.md)         | Reviews, validations, discovery       |

## Scripts

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

| Script                               | Purpose                              |
| ------------------------------------ | ------------------------------------ |
| `scripts/well_architected_review.py` | Generate W-A review questions        |
| `scripts/security_review.py`         | Generate security checklist          |
| `scripts/generate_diagram.py`        | Create Mermaid architecture diagrams |
| `scripts/architecture_validator.py`  | Validate architecture description    |
| `scripts/cost_considerations.py`     | List 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, F
component-common-domain-detectionSkill

Finds duplicate business logic spread across multiple components and suggests consolidation. Use when asking "where is this logic duplicated?", "find common code between services", "what can be consolidated?", "detect shared domain logic", or analyzing component overlap before refactoring. Do NOT use for code-level duplication detection (use linters) or dependency analysis (use coupling-analysis).

component-flattening-analysisSkill

Detects misplaced classes and fixes component hierarchy problems — finds code that should belong inside a component but sits at the root level. Use when asking "clean up component structure", "find orphaned classes", "fix module hierarchy", "flatten nested components", or analyzing why namespaces have misplaced code. Do NOT use for dependency analysis (use coupling-analysis) or domain grouping (use domain-identification-grouping).

component-identification-sizingSkill

Maps architectural components in a codebase and measures their size to identify what should be extracted first. Use when asking "how big is each module?", "what components do I have?", "which service is too large?", "analyze codebase structure", "size my monolith", or planning where to start decomposing. Do NOT use for runtime performance sizing or infrastructure capacity planning.

coupling-analysisSkill

Analyzes coupling between modules using the three-dimensional model (strength, distance, volatility) from "Balancing Coupling in Software Design". Use when asking "are these modules too coupled?", "show me dependencies", "analyze integration quality", "which modules should I decouple?", "coupling report", or evaluating architectural health. Do NOT use for domain boundary analysis (use domain-analysis) or component sizing (use component-identification-sizing).

decomposition-planning-roadmapSkill

Creates step-by-step decomposition plans and migration roadmaps for breaking apart monolithic applications. Use when asking "what order should I extract services?", "plan my migration", "create a decomposition roadmap", "prioritize what to split", "monolith to microservices strategy", or tracking decomposition progress. Do NOT use for domain analysis (use domain-analysis) or component sizing (use component-identification-sizing).

domain-analysisSkill

Maps business domains and suggests service boundaries in any codebase using DDD Strategic Design. Use when asking "what are the domains in this codebase?", "where should I draw service boundaries?", "identify bounded contexts", "classify subdomains", "DDD analysis", or analyzing domain cohesion. Do NOT use for grouping existing components into domains (use domain-identification-grouping) or dependency analysis (use coupling-analysis).

domain-identification-groupingSkill

Groups existing components into logical business domains to plan service-based architecture. Use when asking "which components belong together?", "group these into services", "organize by domain", "component-to-domain mapping", or planning service extraction from an existing codebase. Do NOT use for identifying new domains from scratch (use domain-analysis) or analyzing coupling (use coupling-analysis).

frontend-blueprintSkill

AI frontend specialist and design consultant that guides users through a structured discovery process before generating any code. Collects visual references, design tokens, typography, icons, layout preferences, and brand guidelines to ensure the final output matches the user's vision with high fidelity. Use when the user asks to build, design, create, or improve any frontend interface — websites, landing pages, dashboards, components, apps, emails, forms, modals, or any UI element. Also triggers on "build me a UI", "design a page", "create a component", "improve this layout", "make this look better", "frontend", "interface", "redesign", or when the user provides mockups, screenshots, or design references. Do NOT use for backend logic, API design, database schemas, or non-visual code tasks.