
Yagni
Guides agents to defer premature code work with concrete, documented revisit triggers
Yagni is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 6
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Yagni
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.
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 1 file (7 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 fff plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add zerotechdebt/ffflow
/plugin install fff@ffflowOr copy only this skill to ~/.claude/skills/yagni:
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.
Copy the skill folder to ~/.agents/skills/yagni to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/yagni to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/zerotechdebt/ffflow.git --path plugin/skills/yagniOr copy the folder to ~/.gemini/skills/yagni yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/yagni:
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.
Get the folder:
git clone --depth 1 https://github.com/zerotechdebt/ffflow.gitThen copy ffflow/plugin/skills/yagni into your agent's skills folder as yagni. Agents that support SKILL.md read one folder per skill.
What it does
- 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
Yagni 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.
More from zerotechdebt/ffflow

Onboards a project onto FFFlow: config, stack setup, then a phased roadmap
- Open source
- 6 GitHub stars
- Developer tools

Runs keep-honest audits on a project and reports drift, stale docs and tech debt
- Open source
- 6 GitHub stars
- Developer tools

Runs another interactive skill unattended, making routine choices from project context
- Open source
- 6 GitHub stars
- Developer tools

Lists and validates the adapter cartridges that FFFlow ports load in a project
- Open source
- 6 GitHub stars
- Developer tools

Extracts a behavioral spec from an unspecified codebase and plans characterization tests
- Open source
- 6 GitHub stars
- Developer tools

Adds GitHub Actions workflows that run FFFlow quality gates on pull requests
- Open source
- 6 GitHub stars
- Developer tools




