Skip to content
Skill

Duo infra cost efficiency

Makes cloud and LLM spend attributable per team and feature so waste can be cut

Duo infra cost efficiency is an open-source agent skill for cloud and infrastructure. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
10
Last commit
License
MIT
Listing updated

Similar skills

About Duo infra cost efficiency

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 8 files (29 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Duo infra cost efficiency 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.

More from HKTITAN/duolingo

  1. Helps an agent set exercise difficulty to a target band and audit whether an adaptive

    • Open source
    • 10 GitHub stars
    • Education and exam prep
  2. Guides growth planning for acquisition, referrals and brand-led marketing without hurting

    • Open source
    • 10 GitHub stars
    • Marketing and SEO
  3. Helps keep learners attempting tasks they think they are bad at

    • Open source
    • 10 GitHub stars
    • Education and exam prep
  4. Guides an agent through localizing a product for new languages, scripts and markets

    • Open source
    • 10 GitHub stars
    • Developer tools
  5. Guides segmenting product users by their declared reason for being there

    • Open source
    • 10 GitHub stars
    • Analytics and data
  6. Guides product teams on progress numbers, unit length and honest timelines that keep users

    • Open source
    • 10 GitHub stars
    • Education and exam prep