Infrastructure Cost Optimization

Infrastructure Cost Optimization

Guides an AI coding agent to cut cloud infrastructure costs through rightsizing, reserved and spot instances, waste cleanup and cost monitoring scripts.

Skill files6 files

references/

scripts/

templates/

SKILL.md89 lines
1
---
2
name: infrastructure-cost-optimization
3
description: >
4
Optimize cloud infrastructure costs through resource rightsizing, reserved
5
instances, spot instances, and waste reduction strategies.
6
---
7
8
# Infrastructure Cost Optimization
9
10
## Table of Contents
11
12
- [Overview](#overview)
13
- [When to Use](#when-to-use)
14
- [Quick Start](#quick-start)
15
- [Reference Guides](#reference-guides)
16
- [Best Practices](#best-practices)
17
18
## Overview
19
20
Reduce infrastructure costs through intelligent resource allocation, reserved instances, spot instances, and continuous optimization without sacrificing performance.
21
22
## When to Use
23
24
- Cloud cost reduction
25
- Budget management and tracking
26
- Resource utilization optimization
27
- Multi-environment cost allocation
28
- Waste identification and elimination
29
- Reserved instance planning
30
- Spot instance integration
31
32
## Quick Start
33
34
Minimal working example:
35
36
```yaml
37
# cost-optimization-setup.yaml
38
apiVersion: v1
39
kind: ConfigMap
40
metadata:
41
name: cost-optimization-scripts
42
namespace: operations
43
data:
44
analyze-costs.sh: |
45
#!/bin/bash
46
set -euo pipefail
47
48
echo "=== AWS Cost Analysis ==="
49
50
# Get daily cost trend
51
echo "Daily costs for last 7 days:"
52
aws ce get-cost-and-usage \
53
--time-period Start=$(date -d '7 days ago' +%Y-%m-%d),End=$(date +%Y-%m-%d) \
54
--granularity DAILY \
55
--metrics "BlendedCost" \
56
--group-by Type=DIMENSION,Key=SERVICE \
57
--query 'ResultsByTime[*].[TimePeriod.Start,Total.BlendedCost.Amount]' \
58
--output table
59
60
# Find unattached resources
61
echo -e "\n=== Unattached EBS Volumes ==="
62
// ... (see reference guides for full implementation)
63
```
64
65
## Reference Guides
66
67
Detailed implementations in the `references/` directory:
68
69
| Guide | Contents |
70
|---|---|
71
| [AWS Cost Optimization Configuration](references/aws-cost-optimization-configuration.md) | AWS Cost Optimization Configuration |
72
| [Kubernetes Cost Optimization](references/kubernetes-cost-optimization.md) | Kubernetes Cost Optimization |
73
| [Cost Monitoring Dashboard](references/cost-monitoring-dashboard.md) | Cost Monitoring Dashboard |
74
75
## Best Practices
76
77
### ✅ DO
78
79
- Follow established patterns and conventions
80
- Write clean, maintainable code
81
- Add appropriate documentation
82
- Test thoroughly before deploying
83
84
### ❌ DON'T
85
86
- Skip testing or validation
87
- Ignore error handling
88
- Hard-code configuration values
89

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,410 prompts

More by @OpenSourceBuffGuy

See all
Cornflower meadow path to a misty sailboat prompt image

Cornflower meadow path to a misty sailboat

Draws a portrait-format colored-pencil scene of a cornflower meadow with a winding path leading to a misty sea, a distant sailboat and a sunset sky.

image-prompt, illustration, landscape, flowers, ocean, dreamy, pastel, golden-hour, vertical-format, nano-banana, sketch, summer, for-artists, wallpaper, soft-lighting, wide-shot, high-angle

Swordswoman faces colossal robed figure in industrial yard prompt image

Swordswoman faces colossal robed figure in industrial yard

Writes a two-scene, 20-second live-action video prompt in which a swordswoman freezes a colossal figure with realistic ice and shatters him with a finishing slash.

video-prompt, seedance, action, martial-arts, visual-effects, multi-shot, cinematic, character-consistency, timed-beats, negative-prompt, guardrails, structured-output, photorealistic, fantasy-world, japan, camera-movement, slow-motion, blue-hour, widescreen, advanced, long-form, for-filmmakers, sound-effects, creatures, warriors

Overhead portrait of a girl lying in snow prompt image

Overhead portrait of a girl lying in snow

Creates an overhead portrait of a girl in a school blazer lying in fresh snow, using a JSON spec that keeps the reference face and sets camera, outfit and soft overcast light.

image-prompt, json-prompt, nano-banana, reference-image, face-reference, negative-prompt, photorealistic, portrait, woman, close-up, high-angle, winter, soft-lighting, natural-light, bokeh, moody, editorial, vertical-format, muted-colors, limited-palette, film-grain, cinematic, structured-output, for-photographers, for-artists

Reviews

Loading reviews…

Discussion

Loading comments…