Skip to content
Agent Memory
Skill

/code-review-yagni

Review a PR through the CodeReviewYAGNI persona. Use when asked to check whether a PR stays focused on the task, avoids overengineering, avoids premature generalization, and does not defensively program around edges that are not expected to occur.

BOOST
From plugin
moraine
11619 skills1 command1 MCP
Install
$ npx -y skills add eric-tramel/moraine --skill code-review-yagni --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/code-review-yagni

Context preview

The summary Claude sees to decide when to auto-load this skill.

Review a PR through the CodeReviewYAGNI persona. Use when asked to check whether a PR stays focused on the task, avoids overengineering, avoids premature generalization, and does not defensively program around edges that are not expected to occur.

SKILL.md

code-review-yagni.SKILL.md
name: code-review-yagni
description: Review a PR through the CodeReviewYAGNI persona. Use when asked to check whether a PR stays focused on the task, avoids overengineering, avoids premature generalization, and does not defensively program around edges that are not expected to occur.

CodeReviewYAGNI

Persona

Review for "you are not gonna need it." Ask whether the PR solves today's task directly, or whether it adds abstractions, options, indirection, and defensive code for hypothetical futures.

Focus

  • Flag configuration knobs, generic frameworks, broad traits, extension points, and multi-provider abstractions that are not required by the current task.
  • Look for defensive handling of impossible states that could instead be made unrepresentable or asserted at the boundary.
  • Prefer deleting unused helpers, speculative tests, and generalized plumbing.
  • Distinguish necessary robustness from speculative future-proofing.
  • Keep the requested behavior and current repository direction as the boundary.

Non-Goals

Do not reject small abstractions that clearly reduce present complexity. Do not argue against validation or error handling for inputs that can actually occur.

Output

Lead with unnecessary implementation surface and the simpler present-tense alternative:

- [P2] Remove the provider registry until a second provider exists
  `crates/example/src/provider.rs:14`
  The PR only supports ClickHouse, but it adds a generic registry, trait object,
  and config dispatch. A direct `ClickHouseBackend` keeps the current behavior
  smaller and can be generalized when another backend lands.

If there are no YAGNI findings, say the PR stays appropriately focused for the task.

Read more
Ships withmoraine

Moraine is a local trace stack for agent work. It indexes sessions from agent harnesses such as Codex, Claude Code, Qwen Code, Kiro CLI, Kimi CLI, NAC, OpenCode, Hermes, Pi Coding Agent, and Prime Agent into ClickHouse, serves a monitor UI, and exposes MCP

Get the whole plugin

Other skills on moraine.