
Duo backend architecture
Guides an agent through making slow or fragile server requests faster and safer
Duo backend architecture is an open-source agent skill for developer tools. 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 backend architecture
This skill walks an agent through reducing latency and failure risk on a live backend. It starts with auditing a request path for shared dependencies that can be removed, then covers splitting data into precomputed, cached values versus per-caller inputs, keeping database locks short, and instrumenting the failure a fix introduces.
It also covers server-driven UI, where the interface is sent as configuration so changes ship without an app release, and how to version clients by the last config they could parse. Further sections address when optimistic rendering is worth its rollback risk, and how to plan, justify and stage a long migration of a running system.
The material is drawn from Duolingo's published engineering write-ups and is organized as linked reference notes. It is guidance rather than tooling: no scripts are bundled, and it expects a codebase or architecture question to work from.
When your agent uses it
Make a server request fast and hard to break, using Duolingo's published engineering results as the case study. Covers what to delete from the synchronous request path, how to split data into precompute-and-cache versus caller-injected, how long to hold a lock and when to go optimistic, instrumenting the failure mode a fix trades you into, server-driven UI and versioning clients without branching on client version, when optimistic rendering is worth its rollback cost, and how to stage, fund and survive a long runtime migration. Use when someone says our API is slow, p99 latency, this endpoint has too many dependencies, database contention, lock timeouts, optimistic locking, we want to ship UI changes without an app release, server-driven UI, optimistic updates, should we roll back the prediction, how do we sell this migration to leadership, or the migration broke production.
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 12 files (51 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@duolingoOr copy only this skill to ~/.claude/skills/duo-backend-architecture:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/HKTITAN/duolingo.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/duo-backend-architecture &&
cp -R "$tmp/skills/duo-backend-architecture" ~/.claude/skills/duo-backend-architecture &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/duo-backend-architecture inside it instead.
Copy the skill folder to ~/.agents/skills/duo-backend-architecture 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-backend-architecture &&
cp -R "$tmp/skills/duo-backend-architecture" ~/.agents/skills/duo-backend-architecture &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/duo-backend-architecture inside it instead.
Copy the skill folder to ~/.cursor/skills/duo-backend-architecture 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-backend-architecture &&
cp -R "$tmp/skills/duo-backend-architecture" ~/.cursor/skills/duo-backend-architecture &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/duo-backend-architecture inside it instead.
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-backend-architectureOr copy the folder to ~/.gemini/skills/duo-backend-architecture yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/duo-backend-architecture:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/HKTITAN/duolingo.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/duo-backend-architecture &&
cp -R "$tmp/skills/duo-backend-architecture" ~/.copilot/skills/duo-backend-architecture &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/duo-backend-architecture inside it instead.
Get the folder:
git clone --depth 1 https://github.com/HKTITAN/duolingo.gitThen copy duolingo/skills/duo-backend-architecture into your agent's skills folder as duo-backend-architecture. Agents that support SKILL.md read one folder per skill.
What it does
- Request path auditing
- Identifies shared resources in a live request path that add both latency and independent failure risk, and suggests removing them.
- Precompute versus inject
- Separates expensive shared data to precompute and cache from cheap personal data the caller supplies.
- Lock duration control
- Shortens critical sections by moving network calls out of locks and weighing optimistic locking.
- Failure mode instrumentation
- Covers measuring and rehearsing the new failure mode a latency fix introduces.
- Server-driven UI guidance
- Explains shipping interface definitions as server config with per-user data and versioning clients by last good config.
- Optimistic rendering trade-offs
- Helps decide which values are safe to predict on the client and when a loading state is preferable to rollback.
- Migration staging
- Covers slicing a long runtime migration into measurable units with a revert path and a clear business case.
Good for
- Diagnose why an API endpoint has high p99 latency
- Reduce database lock contention in a checkout or write path
- Decide whether an optimistic UI update is worth its rollback cost
- Plan a server-driven UI so interface changes skip app releases
- Stage a multi-quarter backend migration without stopping production
- Pitch a migration's business value to engineering leadership
Duo backend architecture FAQ
What does Duo backend architecture need to run?
It has no scripts and no tool requirements. It is a set of guidance notes that the agent applies to your backend architecture question.
When does Duo backend architecture trigger?
It is meant for requests about slow APIs, p99 latency, lock timeouts, optimistic locking, server-driven UI, optimistic updates, and recovering from a broken migration.
Is Duo backend architecture tied to Duolingo's codebase?
No. It uses Duolingo's published engineering posts as the case study, and the lessons are general backend guidance.
How do I install Duo backend architecture in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/duo-backend-architecture to use it in all your projects, or to .claude/skills/duo-backend-architecture in one project. Or install the duolingo plugin, which includes it: /plugin marketplace add HKTITAN/duolingo, then /plugin install duolingo@duolingo.
Does Duo backend architecture 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 backend architecture?
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 backend architecture?
The closest alternatives to Duo backend architecture are Duo mobile engineering, Debug async UI, Duo production reliability, Backend patterns and Duo ML in production.
Where this comes from
- Description: from the skill's own SKILL.md.
More from HKTITAN/duolingo

Helps an agent set exercise difficulty to a target band and audit whether an adaptive
- Open source
- 10 GitHub stars
- Education and exam prep

Guides growth planning for acquisition, referrals and brand-led marketing without hurting
- Open source
- 10 GitHub stars
- Marketing and SEO

Helps keep learners attempting tasks they think they are bad at
- Open source
- 10 GitHub stars
- Education and exam prep

Guides an agent through localizing a product for new languages, scripts and markets
- Open source
- 10 GitHub stars
- Developer tools

Guides segmenting product users by their declared reason for being there
- Open source
- 10 GitHub stars
- Analytics and data

Guides product teams on progress numbers, unit length and honest timelines that keep users
- Open source
- 10 GitHub stars
- Education and exam prep



