acquire-codebase-knowl…
Use this skill when the user explicitly asks to map, document, or onboard into an existing codebase. Trigger for prompts like…
Analyze AWS resources used in the app (IaC files and/or resources in a target account/region) and optimize costs - creating GitHub issues for identified optimizations.
Claude Code
$ npx -y skills add github/awesome-copilot --skill aws-cost-optimize --agent claude-code
Codex
$ npx skills add github/awesome-copilot --skill aws-cost-optimize -a codex -y
Cursor
$ npx skills add github/awesome-copilot --skill aws-cost-optimize -a cursor -y
Gemini CLI
$ npx skills add github/awesome-copilot --skill aws-cost-optimize -a gemini-cli -y
GitHub Copilot
$ npx skills add github/awesome-copilot --skill aws-cost-optimize -a github-copilot -y
OpenCode
$ npx skills add github/awesome-copilot --skill aws-cost-optimize -a opencode -y
Windsurf
$ npx skills add github/awesome-copilot --skill aws-cost-optimize -a windsurf -y
name: aws-cost-optimize description: 'Analyze AWS resources used in the app (IaC files and/or resources in a target account/region) and optimize costs - creating GitHub issues for identified optimizations.'
This workflow analyzes Infrastructure-as-Code (IaC) files and AWS resources to generate cost optimization recommendations. It creates individual GitHub issues for each optimization opportunity plus one EPIC issue to coordinate implementation, enabling efficient tracking and execution of cost savings initiatives.
**Action**: Retrieve cost optimization best practices before analysis **Tools**: `fetch` to retrieve AWS documentation **Process**: 1. **Load Best Practices**:
**Action**: Dynamically discover and analyze AWS resources and configurations **Tools**: AWS CLI + Local file system access **Process**: 1. **Account & Region Discovery**:
2. **Resource Discovery** (per region):
3. **IaC Detection**:
**Action**: Gather utilization data and verify actual resource costs **Tools**: AWS CLI (CloudWatch, Cost Explorer) **Process**: 1. **CloudWatch Metrics** (last 7 days):
# EC2 CPU utilization
aws cloudwatch get-metric-statistics \
--namespace AWS/EC2 --metric-name CPUUtilization \
--dimensions Name=InstanceId,Value=<id> \
--start-time $(date -u -d '7 days ago' +%Y-%m-%dT%H:%M:%SZ) \
--end-time $(date -u +%Y-%m-%dT%H:%M:%SZ) \
--period 3600 --statistics Average
# Lambda duration
aws cloudwatch get-metric-statistics \
--namespace AWS/Lambda --metric-name Duration \
--dimensions Name=FunctionName,Value=<name> \
--start-time $(date -u -d '7 days ago' +%Y-%m-%dT%H:%M:%SZ) \
--end-time $(date -u +%Y-%m-%dT%H:%M:%SZ) \
--period 86400 --statistics Average,Maximum2. **AWS Cost Explorer**:
aws ce get-cost-and-usage \
--time-period Start=$(date -u -d '30 days ago' +%Y-%m-%d),End=$(date -u +%Y-%m-%d) \
--granularity MONTHLY --metrics BlendedCost \
--group-by Type=DIMENSION,Key=SERVICE3. **Calculate Baseline Metrics**: CPU/Memory averages, Lambda invocation rates, data transfer patterns, and a realistic current monthly total.
**Action**: Analyze resources to identify optimization opportunities **Process**: 1. **Apply Optimization Patterns**:
**Compute**:
**Database**:
**Storage**:
**Network**:
2. **Calculate Priority Score**:
Priority Score = (Value Score × Monthly Savings) / (Risk Score × Implementation Days) High: Score > 20 | Medium: Score 5-20 | Low: Score < 5
**Action**: Present summary and get approval before creating GitHub issues
🎯 AWS Cost Optimization Summary 📊 Analysis Results: • Total Resources Analyzed: X • Current Monthly Cost: $X • Potential Monthly Savings: $Y • Optimization Opportunities: Z • High Priority Items: N 🏆 Recommendations: 1. [Resource]: [Current] → [Target] = $X/month savings - [Risk] | [Effort] ... 💡 This will create Y individual GitHub issues + 1 EPIC issue. ❓ Proceed with creating GitHub issues? (y/n)
Wait for user confirmation before proceeding.
**Action**: Create separate GitHub i
A community-created collection of custom agents, instructions, skills, hooks, workflows, and plugins to supercharge your GitHub Copilot experience.
Use this skill when the user explicitly asks to map, document, or onboard into an existing codebase. Trigger for prompts like…
Run the AgentRC readiness assessment on the current repository and produce a static HTML dashboard at reports/index.html. Wraps…
Generate tailored AI agent instruction files via AgentRC instructions command. Produces .github/copilot-instructions.md (default,…
Help the user pick, write, or apply an AgentRC policy. Policies customise readiness scoring by disabling irrelevant checks,…
Use this skill when the user shares ad campaign performance data and asks what to cut, scale, or test. Trigger for prompts like…
Add educational comments to the file specified, or prompt asking for file to comment if one is not provided.
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI…