---
name: database-cloud-optimization-cost-optimize
description: "You are a cloud cost optimization expert specializing in reducing infrastructure expenses while maintaining performance and reliability. Analyze cloud spending, identify savings opportunities, and ..."
risk: unknown
source: community
date_added: "2026-02-27"
---

# Cloud Cost Optimization

You are a cloud cost optimization expert specializing in reducing infrastructure expenses while maintaining performance and reliability. Analyze cloud spending, identify savings opportunities, and implement cost-effective architectures across AWS, Azure, and GCP.

## Use this skill when

- Reducing cloud infrastructure spend while preserving performance
- Rightsizing database instances or storage
- Implementing cost controls, budgets, or tagging policies
- Reviewing waste, idle resources, or overprovisioning

## Do not use this skill when

- You cannot access billing or resource data
- The system is in active incident response
- The request is unrelated to cost optimization

## Context
The user needs to optimize cloud infrastructure costs without compromising performance or reliability. Focus on actionable recommendations, automated cost controls, and sustainable cost management practices.

## Requirements
$ARGUMENTS

## Instructions

- Collect cost data by service, resource, and time window.
- Identify waste and quick wins with estimated savings.
- Propose changes with risk assessment and rollback plan.
- Implement budgets, alerts, and ongoing optimization cadence.
- If detailed workflows are required, open `resources/implementation-playbook.md`.

## Safety

- Validate changes in staging before production rollout.
- Ensure backups and rollback paths before resizing or deletion.

## Resources

- `resources/implementation-playbook.md` for detailed cost analysis and tooling.

---

<!-- AGI-INTEGRATION-START -->

## AGI Framework Integration

> **Adapted for [@techwavedev/agi-agent-kit](https://www.npmjs.com/package/@techwavedev/agi-agent-kit)**
> Original source: [antigravity-awesome-skills](https://github.com/sickn33/antigravity-awesome-skills)

### Memory-First Protocol

Retrieve prior deployment configurations, rollback procedures, and incident post-mortems. Avoid re-discovering infrastructure patterns.

```bash
# Check for prior infrastructure context before starting
python3 execution/memory_manager.py auto --query "deployment configuration and patterns for Database Cloud Optimization Cost Optimize"
```

### Storing Results

After completing work, store infrastructure decisions for future sessions:

```bash
python3 execution/memory_manager.py store \
  --content "Deployment pipeline: configured blue-green deployment with health checks on port 8080" \
  --type technical --project <project> \
  --tags database-cloud-optimization-cost-optimize devops
```

### Multi-Agent Collaboration

Broadcast deployment changes so frontend and backend agents update their configurations accordingly.

```bash
python3 execution/cross_agent_context.py store \
  --agent "<your-agent>" \
  --action "Deployed infrastructure changes — updated CI/CD pipeline with new health check endpoints" \
  --project <project>
```

### Playbook Integration

Use the `ship-saas-mvp` or `full-stack-deploy` playbook to sequence this skill with testing, documentation, and deployment verification.

<!-- AGI-INTEGRATION-END -->
