# Duo infra cost efficiency

> Duo infra cost efficiency is an open-source agent skill for cloud and infrastructure. Makes cloud and LLM spend attributable per team and feature so waste can be cut. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/HKTITAN/duolingo/tree/main/skills/duo-infra-cost-efficiency
- **Repository:** https://github.com/hktitan/duolingo
- **GitHub stars:** 10
- **License:** MIT
- **Skill name:** duo-infra-cost-efficiency
- **Collection:** https://github.com/HKTITAN/duolingo
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-12-03

## About

This skill guides an agent through the cost side of infrastructure work: tagging spend by dimension at hourly granularity so a cost change can be matched to a deploy window, and getting the figures in front of the engineers who can act on them. It also frames efficiency as removing waste with quality held constant, and pricing technical debt in dollars so leadership can weigh it against feature work.

For cutting, it covers auditing internal call fan-out and cache TTLs, questioning whether strict freshness requirements are really needed before caching is considered, and using deterministic entity-level sampling for analytics queries. The skill is organized as a set of reference notes that it links to, and it hands off the request-path redesign to a separate backend architecture skill and reliability questions to a production reliability skill.

The skill is plain Markdown guidance with no scripts. It assumes access to cost data and deployment timing, along with the ability to change tagging, caching and query setup in the system being reviewed.

## When your agent uses it

> Make infrastructure spend visible, attributable and cuttable without slowing the company down — hourly per-dimension cost tagging, pushing the number into channels engineers already read, defining a win as waste removed rather than spend removed, pricing tech debt in dollars, auditing internal fan-out and cache TTLs, relaxing freshness so caching becomes legal, and deterministic entity-level sampling. Use when someone says our cloud bill is out of control, we cannot tell which team or feature is spending, costs jumped last month and nobody knows why, our LLM spend grows faster than usage, how do we justify infrastructure work to leadership, our analytics queries are slow and expensive, or should we just buy more capacity. For the architectural fix itself, route to duo-backend-architecture.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/HKTITAN/duolingo/tree/HEAD/skills/duo-infra-cost-efficiency)
- [License: MIT](https://github.com/HKTITAN/duolingo/tree/HEAD/skills/duo-infra-cost-efficiency)

## Features

- **Hourly cost attribution:** Breaks spend into tagged dimensions at hourly resolution so changes can be traced to specific deploys and features.
- **Waste-focused efficiency framing:** Defines a win as waste removed with quality unchanged, rather than spend cut at any cost.
- **Tech debt priced in dollars:** Turns maintenance problems into recurring cost figures to make the case for fixing them.
- **Fan-out and cache TTL audit:** Examines how one request spreads into internal calls and how long cached data is kept.
- **Relaxing freshness for caching:** Questions real-time accuracy requirements that may have been inherited and block caching.
- **Entity-level deterministic sampling:** Samples by stable entity keys so cohorts stay complete and queries scan less data.

## Good for

- Find out which team or feature drove a sudden jump in the cloud bill
- Explain why LLM spend is growing faster than usage
- Justify an infrastructure cost project to leadership in dollar terms
- Speed up and cut the cost of slow analytics queries
- Decide whether a cache TTL or freshness requirement can be relaxed
- Review internal service call chains for unnecessary fan-out

## Install

### Claude Code

This skill ships in the `duolingo` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add HKTITAN/duolingo
/plugin install duolingo@duolingo
```

Or copy only this skill to `~/.claude/skills/duo-infra-cost-efficiency`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/HKTITAN/duolingo.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/duo-infra-cost-efficiency &&
cp -R "$tmp/skills/duo-infra-cost-efficiency" ~/.claude/skills/duo-infra-cost-efficiency &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/duo-infra-cost-efficiency` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/duo-infra-cost-efficiency` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/HKTITAN/duolingo.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/duo-infra-cost-efficiency &&
cp -R "$tmp/skills/duo-infra-cost-efficiency" ~/.agents/skills/duo-infra-cost-efficiency &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/duo-infra-cost-efficiency` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/duo-infra-cost-efficiency` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/HKTITAN/duolingo.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/duo-infra-cost-efficiency &&
cp -R "$tmp/skills/duo-infra-cost-efficiency" ~/.cursor/skills/duo-infra-cost-efficiency &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/duo-infra-cost-efficiency` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/HKTITAN/duolingo.git --path skills/duo-infra-cost-efficiency
```

Or copy the folder to `~/.gemini/skills/duo-infra-cost-efficiency` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/duo-infra-cost-efficiency`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/HKTITAN/duolingo.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/duo-infra-cost-efficiency &&
cp -R "$tmp/skills/duo-infra-cost-efficiency" ~/.copilot/skills/duo-infra-cost-efficiency &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/duo-infra-cost-efficiency` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/HKTITAN/duolingo.git
```

Then copy `duolingo/skills/duo-infra-cost-efficiency` into your agent's skills folder as `duo-infra-cost-efficiency`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Duo infra cost efficiency change the architecture for me?

No. It covers attribution, framing and the choice of what to cut. The request-path redesign is handed off to the duo-backend-architecture skill.

### When should an agent use Duo infra cost efficiency?

When someone reports an out-of-control cloud bill, cannot tell which team is spending, sees unexplained cost jumps, notices LLM spend outpacing usage, or asks whether to buy more capacity.

### Does Duo infra cost efficiency run any scripts?

No, the skill has no scripts. It provides guidance and reference notes only.

### How do I install Duo infra cost efficiency in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/duo-infra-cost-efficiency to use it in all your projects, or to .claude/skills/duo-infra-cost-efficiency in one project. Or install the duolingo plugin, which includes it: /plugin marketplace add HKTITAN/duolingo, then /plugin install duolingo@duolingo.

### Does Duo infra cost efficiency run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Duo infra cost efficiency?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Duo infra cost efficiency?

The closest alternatives to Duo infra cost efficiency are Cost optimization, Google cloud waf cost optimization, Cost estimation, Audit and AWS cost optimize.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Cost optimization](https://ai-powered.com/skills/cost-optimization): Cost optimization is an open-source agent skill for cloud and infrastructure.
- [Google cloud waf cost optimization](https://ai-powered.com/skills/google-cloud-waf-cost-optimization): Google cloud waf cost optimization is an open-source agent skill for cloud and infrastructure.
- [Cost estimation](https://ai-powered.com/skills/cost-estimation-aws-solutions): Cost estimation is an open-source agent skill for cloud and infrastructure.
- [Audit](https://ai-powered.com/skills/audit-whitebeardit): Audit is an open-source agent skill for cloud and infrastructure.
- [AWS cost optimize](https://ai-powered.com/skills/aws-cost-optimize): AWS cost optimize is an open-source agent skill for cloud and infrastructure.
- [Cost analysis](https://ai-powered.com/skills/cost-analysis): Cost analysis is an open-source agent skill for cloud and infrastructure.
- [Cost governance](https://ai-powered.com/skills/cost-governance): Cost governance is an open-source agent skill for cloud and infrastructure.
- [Bigquery troubleshooting](https://ai-powered.com/skills/bigquery-troubleshooting): Bigquery troubleshooting is an open-source agent skill for databases.

---
Source: https://ai-powered.com/skills/duo-infra-cost-efficiency
