# Duo retention

> Duo retention is an open-source agent skill for productivity. Guides an agent through retention design: habit loops, streaks, churn diagnostics. 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-retention
- **Repository:** https://github.com/hktitan/duolingo
- **GitHub stars:** 10
- **License:** MIT
- **Skill name:** duo-retention
- **Collection:** https://github.com/HKTITAN/duolingo
- **Categories:** [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-12-03

## About

This skill gives an AI coding agent a structured set of retention patterns drawn from Duolingo's public handbook and blog posts about streaks, leagues and push notifications. It is organized as a map of linked reference notes, so the agent reads only the topics relevant to the question, such as foundations, behavioral mechanics, social competition, or churn diagnosis.

The material covers the habit loop, streak counters and streak protection, loss aversion, variable rewards, leagues, daily quests, day-N drop-off analysis and notification cadence. The skill asks the agent to translate each pattern to the user's own product rather than copy Duolingo's specifics.

It is plain markdown with no scripts. It works through reading and reasoning, so it needs no tools, languages or API access. It also points to sibling skills for gamification, copywriting, experimentation and product strategy.

## When your agent uses it

> Duolingo-style retention engineering for any product — habit loops, streaks, leagues, churn diagnostics, day-N drop-off, and the discipline of building a "forever product." Use when the user asks how to keep users coming back, debug churn, design a streak system, time push notifications, run a leaderboard, or shift a product's metric from acquisition to retention. Source the Duolingo Handbook (Take the Long View) and blog data posts; translate every pattern to the user's actual product.

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

## Features

- **Habit loop foundations:** Explains the trigger, action, reward and investment cycle that underpins retention work.
- **Streak system design:** Covers daily counters, streak freezes and the loss aversion that makes streaks effective.
- **Leagues and quests:** Describes time-boxed competition with promotion and demotion, plus short-horizon goals.
- **Churn diagnostics:** Shows how to find the day users drop off and what each drop-off shape suggests.
- **Notification discipline:** Addresses the long-term cost of over-notifying and how to set push cadence.
- **Linked sibling skills:** Points to related skills for gamification, copy, experimentation and product strategy.

## Good for

- Design a streak system for a fitness app
- Diagnose why users stop returning after day three
- Plan a weekly leaderboard that keeps people competing
- Decide how often to send push notifications without causing churn
- Shift a product roadmap from acquisition metrics toward retention

## 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-retention`:

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

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

### Codex

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

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

### Cursor

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

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

Or copy the folder to `~/.gemini/skills/duo-retention` yourself.

### VS Code

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

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

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

### Other agents

Get the folder:

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

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

## FAQ

### What does Duo retention need to run?

It has no scripts and no allowed tools set. It is a set of markdown reference notes the agent reads as needed.

### When does Duo retention trigger?

When the user asks how to keep users coming back, debug churn, design a streak, time push notifications, run a leaderboard, or move a metric from acquisition to retention.

### Is Duo retention tied to Duolingo's product?

It draws on Duolingo's handbook and blog data posts, but the instructions ask the agent to translate each pattern to the user's own product.

### Under what license is Duo retention released?

It is released under the MIT license.

### How do I install Duo retention in Claude Code?

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

### Does Duo retention 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 retention?

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 retention?

The closest alternatives to Duo retention are Duo gamification, Duo motivation and attachment, Duo streak mechanics, Duo adoption design and Duolingo.

## Where this comes from

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

## Alternatives

- [Duo gamification](https://ai-powered.com/skills/duo-gamification): Duo gamification is an open-source agent skill for productivity.
- [Duo motivation and attachment](https://ai-powered.com/skills/duo-motivation-and-attachment): Duo motivation and attachment is an open-source agent skill for productivity.
- [Duo streak mechanics](https://ai-powered.com/skills/duo-streak-mechanics): Duo streak mechanics is an open-source agent skill for productivity.
- [Duo adoption design](https://ai-powered.com/skills/duo-adoption-design): Duo adoption design is an open-source agent skill for productivity.
- [Duolingo](https://ai-powered.com/skills/duolingo-hktitan): Duolingo is an open-source agent skill for productivity.
- [Duo product](https://ai-powered.com/skills/duo-product): Duo product is an open-source agent skill for productivity.
- [Hierarchy of engagement](https://ai-powered.com/skills/hierarchy-of-engagement): Hierarchy of engagement is an open-source agent skill for productivity.
- [Duo AI product strategy](https://ai-powered.com/skills/duo-ai-product-strategy): Duo AI product strategy is an open-source agent skill for productivity.

---
Source: https://ai-powered.com/skills/duo-retention
