Skip to content
Skill

Duo retention

Guides an agent through retention design: habit loops, streaks, churn diagnostics

Duo retention is an open-source agent skill for productivity. 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 retention

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.

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 13 files (41 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-retention:

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.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/duo-retention 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-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.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/duo-retention 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-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.

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

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Duo retention 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.

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