yagni

Installation
SKILL.md

YAGNI — You Aren't Gonna Need It

Before Applying

If .agents/stack-context.md exists, read it first. Apply this principle using idiomatic patterns for the detected stack. For framework-specific details, use context7 MCP or web search — don't guess.

Principle

Do not build for hypothetical future requirements. Build what is needed now, and refactor when actual requirements emerge.

Why This Matters in Production

Speculative code is the #1 source of accidental complexity. Every abstraction, configuration option, or extension point you add "just in case" has a real cost: it must be understood, tested, maintained, and debugged. Unused code paths are the most dangerous — they rot silently, give false confidence in test coverage, and create surface area for bugs.

Premature generalization is worse than duplication. Duplication is obvious and easy to fix later. A wrong abstraction is painful to undo because other code grows to depend on it.

Rules

Related skills

More from jordancoin/codingskills

Installs
17
GitHub Stars
1
First Seen
Mar 1, 2026