# Duo ML in production

> Duo ML in production is an open-source agent skill for developer tools. Guides when a learned model beats rules, how to judge it, and how to build generators. 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-ml-in-production
- **Repository:** https://github.com/hktitan/duolingo
- **GitHub stars:** 10
- **License:** MIT
- **Skill name:** duo-ml-in-production
- **Collection:** https://github.com/HKTITAN/duolingo
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill helps an agent weigh whether a trained model should replace a hand-written branching rule set, and if so, how to pick an offline metric that tracks what users actually notice. It covers ranking noisy review queues rather than filtering them, harvesting labels from human review, calibrating thresholds per skill level, and resolving user identity before trusting funnel metrics.

For content generation, it lays out a pattern of building one parameterized primitive, pairing every generator with an inspector and corrector, and assembling instances at request time so leaked outputs are not useful. It also describes staging rollouts slice by slice and publishing coverage alongside per-slice quality.

The material is distilled from Duolingo engineering and product posts and is framed for applying the reasoning to other products. It expects the agent to reason about the user's own data, metrics and pipelines; it does not prescribe specific libraries or languages, and it points to sibling skills for LLM agent orchestration, experimentation, difficulty calibration and production reliability.

## When your agent uses it

> Decide where a learned model beats a hand-written rule tree, judge it on a metric that moves where users actually care, and run a generation pipeline that does not quietly produce errors at scale — ranking noisy queues instead of filtering them, harvesting training labels from the human review step, calibrating thresholds per skill level, resolving identity before trusting any funnel number, and staging rollout as a published coverage curve. Use when replacing years of accumulated branching logic with one model, choosing an offline metric, triaging user reports, building an item bank or a content generator, or asking why your new-user numbers look wrong. Triggers on phrases like should this be a model or rules, ranking model, AUC, which metric should we optimize, cold start for a new segment, candidate generation, generated content at scale, identity resolution, gradual model rollout.

## 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-ml-in-production)
- [License: MIT](https://github.com/HKTITAN/duolingo/tree/HEAD/skills/duo-ml-in-production)

## Features

- **Model versus rules decision:** Guidance on when collapsing accumulated branching logic into one learned call is worth it and how to scope a first version.
- **Metric selection:** Advice on choosing an offline evaluation metric that is sensitive to the outcomes users actually care about.
- **Ranking over filtering:** Approach for reordering noisy submissions and capturing reviewer verdicts as training labels.
- **Per-skill-level calibration:** Method for applying one measurement with separate calibration curves per skill level and a single threshold.
- **Generator and inspector pairing:** Principle that generators, inspectors and correctors are built together to avoid producing errors at scale.
- **Coverage-based rollout:** Staged expansion across slices on live traffic, with coverage published alongside quality per slice.
- **Identity resolution for funnels:** Guidance on fixing fragmented join keys so churn and acquisition numbers are trustworthy.

## Good for

- Decide whether a rule tree for content selection should be replaced by one ranking model
- Pick an offline metric for evaluating a recommendation or ranking model
- Reorder a backlog of user-reported issues by likelihood instead of discarding them
- Plan a gradual rollout of a new model across user segments
- Investigate why new-user retention or acquisition numbers look wrong
- Design a pipeline that generates exercises or items at scale with automated checks

## 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-ml-in-production`:

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

For one project only, put the folder in `.claude/skills/duo-ml-in-production` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/duo-ml-in-production` 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-ml-in-production &&
cp -R "$tmp/skills/duo-ml-in-production" ~/.agents/skills/duo-ml-in-production &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/duo-ml-in-production` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/duo-ml-in-production` 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-ml-in-production &&
cp -R "$tmp/skills/duo-ml-in-production" ~/.cursor/skills/duo-ml-in-production &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/duo-ml-in-production` 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-ml-in-production
```

Or copy the folder to `~/.gemini/skills/duo-ml-in-production` yourself.

### VS Code

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

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

For one project only, put the folder in `.github/skills/duo-ml-in-production` inside it instead.

### Other agents

Get the folder:

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

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

## FAQ

### When does Duo ML in production trigger?

It triggers on requests about whether something should be a model or rules, ranking models, AUC, choosing a metric, cold start for a new segment, candidate generation, generated content at scale, identity resolution, and gradual model rollout.

### Does Duo ML in production cover LLM agent orchestration?

No. The skill states that agent runtimes, workflows and graders belong to a separate sibling skill, while this one covers trained models and generation pipelines.

### What does the skill ask me to produce?

It guides reasoning and design choices rather than running scripts. The skill lists no scripts and does not set allowed tools.

### Where does the guidance come from?

It is distilled from Duolingo engineering and product blog posts, each node carrying its own dated citation.

### How do I install Duo ML in production in Claude Code?

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

### Does Duo ML in production 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 ML in production?

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 ML in production?

The closest alternatives to Duo ML in production are Duo AI agent platform, Skill creator, Duo production reliability, Duo LLM feature engineering and Agentic eval.

## Where this comes from

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

## Alternatives

- [Duo AI agent platform](https://ai-powered.com/skills/duo-ai-agent-platform): Duo AI agent platform is an open-source agent skill for developer tools.
- [Skill creator](https://ai-powered.com/skills/skill-creator): Skill creator is a free agent skill for ai models and llm tooling.
- [Duo production reliability](https://ai-powered.com/skills/duo-production-reliability): Duo production reliability is an open-source agent skill for developer tools.
- [Duo LLM feature engineering](https://ai-powered.com/skills/duo-llm-feature-engineering): Duo LLM feature engineering is an open-source agent skill for developer tools.
- [Agentic eval](https://ai-powered.com/skills/agentic-eval): Agentic eval is an open-source agent skill for ai models and llm tooling.
- [Writing agents](https://ai-powered.com/skills/writing-agents-xiaolai): Writing agents is an open-source agent skill for developer tools.
- [Agentic engineering](https://ai-powered.com/skills/agentic-engineering): Agentic engineering is an open-source agent skill for developer tools.
- [Orchestration](https://ai-powered.com/skills/orchestration-xiaolai): Orchestration is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/duo-ml-in-production
