yagni-principle

Evaluate feature requests and code for speculative implementations against the YAGNI principle.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/CodeTonight-SA/claude-optim --skill yagni-principle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: yagni-principle
Source: https://github.com/CodeTonight-SA/claude-optim/tree/main/skills/yagni-principle
Command: npx skills add https://github.com/CodeTonight-SA/claude-optim --skill yagni-principle

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers often implement features or abstractions "just in case" they might be needed later, leading to wasted effort, delayed delivery of actual value, and increased code complexity (carry cost). This skill enforces the YAGNI principle to prevent over-engineering.

Core Features & Use Cases

  • Feature Request Evaluation: Guides the assessment of whether functionality is required now by a current user story, or if it's speculative.
  • Code Review Red Flags: Identifies anti-patterns like "Impl" classes, premature feature building, speculative abstractions, and unused configuration options.
  • Cost Analysis: Quantifies the "three costs" of YAGNI violations: cost of building, cost of delay, and cost of carry.
  • Use Case: You're reviewing a feature request or a code change and need to determine if the proposed functionality is truly necessary for the current sprint.

Quick Start

"Evaluate this new feature request using the YAGNI principle." "Review this code for any speculative implementations or over-engineering."