# Duo LLM feature engineering

> Duo LLM feature engineering is an open-source agent skill for developer tools. Makes an LLM feature hold its quality over thousands of calls, not just in a demo. 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-llm-feature-engineering
- **Repository:** https://github.com/hktitan/duolingo
- **GitHub stars:** 10
- **License:** MIT
- **Skill name:** duo-llm-feature-engineering
- **Collection:** https://github.com/HKTITAN/duolingo
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill gives an AI coding agent a set of design patterns for building LLM and agent features that keep working in production. It covers how to structure a prompt as a fixed constraint section plus per-call slots, how to split a long conversation into one narrow prompt per step, and how to isolate high-stakes generation into its own call. It also covers quality control at volume: over-generating candidates, scoring them against named criteria, and preferring curated in-domain examples over adding more instructions.

The guidance is organized as linked reference notes grouped by prompt structure, decomposition, quality bars, and bounding model behaviour, with sibling skills pointing to related topics such as agent infrastructure, reliability, rules and experimentation. The skill itself is written as guidance rather than executable tooling; it ships no scripts.

It is intended for someone who is already building an LLM feature and is seeing drift, rambling conversations or degraded output as rules are added. The patterns are distilled from public engineering writing and are meant to be applied to the reader's own product.

## When your agent uses it

> Make an LLM or agent feature survive its ten-thousandth call — split the prompt into a fixed constraint zone and per-instance slots, decompose a long interaction into one narrow prompt per move, isolate the high-stakes generation into its own call, over-generate and let expert-owned evaluators hold the quality bar, prefer examples from your own corpus over more instructions, and carry memory as extracted facts not replayed transcripts. Use when a prompt works in a demo but drifts in production, when output gets worse as you add rules, when an AI conversation rambles or never ends, or when scaling generated content without losing the bar. Triggers on phrases like prompt template, prompt engineering, my prompt got worse, LLM feature quality, AI content pipeline, agent memory, LLM as a judge, generate variations, hallucination guardrails, chatbot ignores the user.

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

## Features

- **Prompt template structure:** Separates fixed constraints from per-instance slots so operators supply judgement rather than format.
- **Conversation decomposition:** Breaks a long interaction into a small state machine with one narrow prompt per move and a programmed ending.
- **Isolated high-stakes generation:** Moves critical outputs into their own model call so competing rules do not sacrifice the key constraint.
- **Over-generate and filter:** Generates many candidates, scores them against named criteria, and reuses rejects as hard negatives.
- **Memory as extracted facts:** Stores a bounded, typed list of facts at session boundaries instead of replaying full transcripts.
- **Example-led prompt tuning:** Favours curated in-domain examples over additional rules when output quality is poor.

## Good for

- Fix a prompt that works in testing but drifts in production
- Stop a chatbot from ignoring what the user said
- Make an AI conversation end cleanly instead of rambling
- Set up an LLM-as-a-judge step to score generated content
- Scale generated variations without losing quality
- Add memory to an agent without replaying whole transcripts

## 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-llm-feature-engineering`:

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

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

### Codex

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

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

### Cursor

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

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

Or copy the folder to `~/.gemini/skills/duo-llm-feature-engineering` yourself.

### VS Code

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

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

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

### Other agents

Get the folder:

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

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

## FAQ

### What does Duo LLM feature engineering change in my project?

It provides guidance and linked reference notes on structuring prompts, decomposing conversations and holding quality at volume. It does not include scripts that edit code.

### When does Duo LLM feature engineering trigger?

It is meant to apply when a prompt works in a demo but drifts in production, when output worsens as rules are added, when a conversation rambles, or when scaling generated content, and on phrases such as prompt template, prompt engineering and LLM as a judge.

### Does Duo LLM feature engineering need any tools or scripts?

The skill lists no scripts and does not set allowed tools.

### What is the license?

The skill is released under the MIT license.

### How do I install Duo LLM feature engineering in Claude Code?

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

### Does Duo LLM feature engineering 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 LLM feature engineering?

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 LLM feature engineering?

The closest alternatives to Duo LLM feature engineering are Duo AI agent platform, Duo ML in production, LLM evals, Skill creator 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.
- [Duo ML in production](https://ai-powered.com/skills/duo-ml-in-production): Duo ML in production is an open-source agent skill for developer tools.
- [LLM evals](https://ai-powered.com/skills/llm-evals): LLM evals 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.
- [Agentic eval](https://ai-powered.com/skills/agentic-eval): Agentic eval is an open-source agent skill for ai models and llm tooling.
- [Conventions](https://ai-powered.com/skills/conventions-xiaolai): Conventions 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.
- [Patterns](https://ai-powered.com/skills/patterns-xiaolai): Patterns is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/duo-llm-feature-engineering
