google-cloud-waf-performance-optimization
Generates performance-focused guidance for Google Cloud workloads based on the design principles and recommendations in the Performance Optimization pillar of the Google Cloud Well-Architected Framework (WAF). Use this skill to evaluate a workload, identify performance requirements, and provide actionable recommendations for resource allocation, modular design, and elasticity.
What this skill does
# Google Cloud Well-Architected Framework skill for the Performance Optimization pillar
## Overview
The Performance Optimization pillar of the Google Cloud Well-Architected
Framework provides principles and recommendations to help you design, build, and
operate high-performing workloads. It focuses on efficiently allocating
resources, leveraging modular architectures, and using data-driven insights to
continuously monitor and improve performance as your business needs evolve.
## Core principles
The recommendations in the performance optimization pillar of the
Well-Architected Framework are aligned with the following core principles:
- **Plan resource allocation**: Carefully select and configure the compute,
storage, and networking resources that best match the specific requirements
of your workload. Grounding document:
https://docs.cloud.google.com/architecture/framework/performance-optimization/plan-resource-allocation
- **Take advantage of elasticity**: Utilize automated scaling and serverless
technologies to dynamically adjust resource capacity in response to
real-time demand fluctuations. Grounding document:
https://docs.cloud.google.com/architecture/framework/performance-optimization/elasticity
- **Promote modular design**: Architect systems using independent, loosely
coupled components to enhance scalability and allow individual parts to be
optimized without affecting the entire system. Grounding document:
https://docs.cloud.google.com/architecture/framework/performance-optimization/promote-modular-design
- **Continuously monitor and improve performance**: Implement robust
observability to identify bottlenecks and use performance data to drive
iterative enhancements throughout the software development lifecycle.
Grounding document:
https://docs.cloud.google.com/architecture/framework/performance-optimization/continuously-monitor-and-improve-performance
## Relevant Google Cloud products
The following are _examples_ of Google Cloud products and features that are
relevant to performance optimization:
- **Compute and scaling**
- **Compute Engine (MIGs)**: Managed instance groups that support
autoscaling and load balancing for VM-based workloads.
- **Google Kubernetes Engine (GKE)**: Provides container orchestration
with horizontal and vertical pod autoscaling.
- **Cloud Run**: A fully managed serverless platform that automatically
scales containers to zero or up based on traffic.
- **Data and caching**
- **Cloud CDN**: Low-latency content delivery network to cache static and
dynamic content closer to end-users.
- **Memorystore**: Managed in-memory data store for Valkey and Redis to
provide sub-millisecond data access.
- **Bigtable**: NoSQL database service for analytical and operational
workloads requiring low latency and high throughput.
- **Spanner**: RDBMS that provides global consistency, high availability,
and horizontal scaling for mission-critical transactional applications.
- **Performance analysis and monitoring**
- **Cloud Trace**: Distributed tracing system that helps identify latency
bottlenecks.
- **Cloud Profiler**: Continuous CPU and memory profiling to identify
resource-heavy application code.
- **Cloud Monitoring**: Provides dashboards and alerts based on
performance KPIs like latency and throughput.
## Workload assessment questions
Ask appropriate questions to understand the performance-related requirements and
constraints of the workload and the user's organization. Choose questions from
the following list:
- **Plan resource allocation**
- When initially provisioning compute resources for a new application,
which approach do you use to determine the required capacity for
expected peak loads?
- Which caching strategies (browser, in-memory, CDN, database) do you
utilize to improve performance and responsiveness?
- How do you optimize the performance of your data storage solutions
(e.g., SSD vs HDD, storage classes) for your applications?
- **Promote modular design**
- Which architectural patterns (microservices, asynchronous messaging,
stateless servers) do you employ to enhance performance and resilience?
- How do you design your application to minimize the impact of failures in
one part of the system on other parts?
- **Continuously monitor and improve performance**
- How frequently do you review and analyze the performance of your
production applications and infrastructure?
- Which tools or techniques (APM, distributed tracing, load testing) do
you use to proactively identify and diagnose performance bottlenecks?
- How do you incorporate performance considerations into your software
development lifecycle (SDLC)?
- **Take advantage of elasticity**
- Which methods do you use to manage and optimize the cost of your cloud
resources while maintaining performance?
- How do you typically handle sudden spikes in traffic or workload on your
applications?
## Validation checklist
Use the following checklist to evaluate the architecture's alignment with
performance optimization recommendations:
- **Resource allocation**
- [ ] Initial provisioning is based on load testing or historical data
rather than general estimates.
- [ ] Caching is implemented at multiple layers (CDN, in-memory, or
browser) to offload backend systems.
- [ ] Storage types (SSD/HDD) and classes are selected based on the
specific I/O requirements of the workload.
- **Modular design**
- [ ] The architecture uses microservices or decoupled components to allow
independent scaling.
- [ ] Circuit breakers or bulkheads are implemented to isolate failures
and prevent performance degradation across the system.
- **Monitoring and continuous improvement**
- [ ] Automated dashboards and alerts are configured for key performance
indicators (KPIs).
- [ ] Distributed tracing and profiling tools are used to identify
code-level bottlenecks.
- [ ] Performance testing (unit and integration) is integrated into the
software development lifecycle.
- **Elasticity**
- [ ] Auto-scaling rules are configured and validated to handle variable
demand.
- [ ] The architecture leverages serverless or managed services to
dynamically match capacity to load.
- [ ] Resource utilization is reviewed regularly to eliminate idle
overhead and balance cost with performance.
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.