# Yagni

> Yagni is an open-source agent skill for developer tools. Guides agents to defer premature code work with concrete, documented revisit triggers. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/zerotechdebt/ffflow/tree/main/plugin/skills/yagni
- **Repository:** https://github.com/zerotechdebt/ffflow
- **GitHub stars:** 6
- **License:** Apache-2.0
- **Skill name:** yagni
- **Collection:** https://github.com/zerotechdebt/ffflow
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

Yagni is a review-time rulebook for coding agents that pushes back on building speculative code. When a fix would be premature because the right design depends on a condition not yet reached, the skill directs the agent to leave a TODO that names a specific, observable trigger and the change to make when it fires.

The skill defines two comment formats: a single line for simple deferrals and a multi-line form that records the current shape, why it is adequate now, and what would change later. It rejects vague triggers such as someday or when we have time, and it points the agent toward either fixing the issue now or filing a tracked issue when no concrete trigger exists.

It is meant to be loaded alongside a companion skill, zero-tech-debt, and it has no scripts. It is described as an audit target for an ffflow tech-debt check that flags bare TODOs and vague deferrals. It is available as part of the ffflow Claude Code plugin.

## When your agent uses it

> Review-time discipline — only build what you need. Provides the TODO-with-trigger format that bridges "fix now" (zero-tech-debt) and "we'll get to it" (the smell). Triggers must be concrete inflection points, not vague intentions. Tension partner with zero-tech-debt.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/zerotechdebt/ffflow/tree/HEAD/plugin/skills/yagni)
- [License: Apache-2.0](https://github.com/zerotechdebt/ffflow/tree/HEAD/plugin/skills/yagni)

## Features

- **Trigger-based deferral format:** Defines single-line and multi-line TODO forms that tie a deferred change to a concrete condition.
- **Concrete trigger requirements:** Lists acceptable inflection points such as load thresholds or team size, and rejects vague wording.
- **Over-engineering guardrails:** Warns against speculative abstractions, premature caching and oversized architecture on small projects.
- **Fix-or-defer decision rules:** Explains when deferral is legitimate and when the change should be fixed immediately instead.
- **Deferral quality checklist:** Provides checks for observable triggers, named changes and in-code placement of each deferral.

## Good for

- Decide whether a review comment should be fixed now or deferred with a trigger
- Write a TODO that records when a caching layer should be added
- Remove bare TODO comments that have no concrete revisit condition
- Check a prototype for premature abstractions before merging
- Turn an oversized refactor suggestion into a documented deferral

## Install

### Claude Code

This skill ships in the `fff` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add zerotechdebt/ffflow
/plugin install fff@ffflow
```

Or copy only this skill to `~/.claude/skills/yagni`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/yagni &&
cp -R "$tmp/plugin/skills/yagni" ~/.claude/skills/yagni &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/yagni` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/yagni &&
cp -R "$tmp/plugin/skills/yagni" ~/.agents/skills/yagni &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/yagni` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/yagni &&
cp -R "$tmp/plugin/skills/yagni" ~/.cursor/skills/yagni &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/yagni` 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/zerotechdebt/ffflow.git --path plugin/skills/yagni
```

Or copy the folder to `~/.gemini/skills/yagni` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/yagni &&
cp -R "$tmp/plugin/skills/yagni" ~/.copilot/skills/yagni &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git
```

Then copy `ffflow/plugin/skills/yagni` into your agent's skills folder as `yagni`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Is yagni invoked as a tool?

No. It is a reference rulebook that loads alongside zero-tech-debt during review touchpoints and is not invoked as a tool.

### Which review commands load Yagni?

The listed touchpoints are the code-review and self-review commands, the work-issue review phase, the refactor command, and the audit command's tech-debt cartridge.

### Does Yagni include scripts or extra files?

The skill folder contains one file, SKILL.md, and no scripts.

### What is the license?

The repository is licensed under Apache-2.0.

### How do I install Yagni in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/yagni to use it in all your projects, or to .claude/skills/yagni in one project. Or install the fff plugin, which includes it: /plugin marketplace add zerotechdebt/ffflow, then /plugin install fff@ffflow.

### Does Yagni 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 Yagni?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Yagni?

The closest alternatives to Yagni are Zero tech debt, Code review and quality, Poka yoke, Go defensive coding and Doubt driven development.

## Where this comes from

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

## Alternatives

- [Zero tech debt](https://ai-powered.com/skills/zero-tech-debt): Zero tech debt is an open-source agent skill for developer tools.
- [Code review and quality](https://ai-powered.com/skills/code-review-and-quality): Code review and quality is an open-source agent skill for developer tools.
- [Poka yoke](https://ai-powered.com/skills/poka-yoke): Poka yoke is an open-source agent skill for developer tools.
- [Go defensive coding](https://ai-powered.com/skills/go-defensive-coding): Go defensive coding is an open-source agent skill for developer tools.
- [Doubt driven development](https://ai-powered.com/skills/doubt-driven-development): Doubt driven development is an open-source agent skill for developer tools.
- [Vibe scope guard](https://ai-powered.com/skills/vibe-scope-guard): Vibe scope guard is an open-source agent skill for developer tools.
- [Thermo nuclear code quality review](https://ai-powered.com/skills/thermo-nuclear-code-quality-review-michael-denyer): Thermo nuclear code quality review is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-kripu77): Code review is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/yagni
